Use "/Q" argument

This commit is contained in:
Jaex 2022-11-02 23:31:57 +03:00
parent b70d2587a2
commit cb818b0654

View file

@ -258,7 +258,7 @@ private static void CompileISSFile(string fileName)
{
FileName = InnoSetupCompilerPath,
WorkingDirectory = InnoSetupDir,
Arguments = $"\"{fileName}\"",
Arguments = $"/Q \"{fileName}\"",
UseShellExecute = false
};
@ -267,7 +267,7 @@ private static void CompileISSFile(string fileName)
process.WaitForExit();
}
Console.WriteLine("Setup file compiled.");
Console.WriteLine("Setup file compiled: " + fileName);
}
else
{
@ -372,6 +372,16 @@ private static void CreateFolder(string source, string destination, SetupJobs jo
if (job == SetupJobs.CreatePortable)
{
FileHelpers.CreateEmptyFile(Path.Combine(destination, "Portable"));
}
else if (job == SetupJobs.CreateMicrosoftStoreFolder || job == SetupJobs.CreateMicrosoftStoreDebugFolder)
{
FileHelpers.CopyAll(MicrosoftStorePackageFilesDir, destination);
}
Console.WriteLine("Folder created: " + destination);
if (job == SetupJobs.CreatePortable)
{
CreateZipFile(destination, PortableZipPath);
}
else if (job == SetupJobs.CreateDebug)
@ -382,12 +392,6 @@ private static void CreateFolder(string source, string destination, SetupJobs jo
{
CreateZipFile(destination, SteamZipPath);
}
else if (job == SetupJobs.CreateMicrosoftStoreFolder || job == SetupJobs.CreateMicrosoftStoreDebugFolder)
{
FileHelpers.CopyAll(MicrosoftStorePackageFilesDir, destination);
}
Console.WriteLine("Folder created.");
}
private static void CreateZipFile(string source, string archivePath)