public void SaveSettings()
{
Configuration c = ConfigurationManager.OpenExeConfiguration("hMailServer builder.exe");
c.AppSettings.Settings["SourcePath"].Value = SourcePath;
c.AppSettings.Settings["BuildNumber"].Value = BuildNumber.ToString();
c.AppSettings.Settings["Version"].Value = Version;
c.AppSettings.Settings["VSPath"].Value = VSPath;
c.AppSettings.Settings["InnoSetupPath"].Value = InnoSetupPath;
c.AppSettings.Settings["SubversionPath"].Value = SubversionPath;
c.AppSettings.Settings["MSBuildPath"].Value = MSBuildPath;
c.Save(ConfigurationSaveMode.Modified);
}