AppVeyor now have InnoSetup installed so no need to download

This commit is contained in:
Jaex 2017-05-02 19:25:53 +03:00
parent 80e150c93c
commit 2cb679a63a

View file

@ -163,24 +163,8 @@ private static void CompileSetup()
CompileISSFile("ShareX-setup.iss"); CompileISSFile("ShareX-setup.iss");
} }
private static void InstallInnoSetup()
{
string innoSetupFilename = Helpers.DownloadFile("http://files.jrsoftware.org/is/5/innosetup-5.5.9.exe");
Console.WriteLine("Installing InnoSetup.");
Process.Start(innoSetupFilename, "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-").WaitForExit();
Console.WriteLine("InnoSetup installed.");
}
private static void CompileISSFile(string filename) private static void CompileISSFile(string filename)
{ {
if (AppVeyor && !File.Exists(InnoSetupCompilerPath))
{
InstallInnoSetup();
}
if (File.Exists(InnoSetupCompilerPath)) if (File.Exists(InnoSetupCompilerPath))
{ {
Console.WriteLine("Compiling setup file: " + filename); Console.WriteLine("Compiling setup file: " + filename);