private static bool ConfigureInstallationFile(string installationFile, string version, string build, bool x64) { if (!File.Exists(installationFile)) { Console.WriteLine("Installation file {0} was not found.", installationFile); return(false); } Console.WriteLine("Writing install version and output name to {0}", installationFile); if (x64) { Ini.Write(installationFile, "Setup", "AppVerName", string.Format("hMailServer {0}-B{1}-x64", version, build)); Ini.Write(installationFile, "Setup", "OutputBaseFilename", string.Format("hMailServer-{0}-B{1}-x64", version, build)); } else { Ini.Write(installationFile, "Setup", "AppVerName", string.Format("hMailServer {0}-B{1}-x86", version, build)); Ini.Write(installationFile, "Setup", "OutputBaseFilename", string.Format("hMailServer-{0}-B{1}-x86", version, build)); } return(true); }