I am using SUF 9.5.2.0 on Windows 10 x64. Under Advanced Project settings, "Enable silent/unattended install" is checked. However when I build and run the installer with parameter /SILENT it is still not running in Silent Mode. In the OnStartup Action section I even put debug output showing the value of _SilentInstall and it is false. Is this a known issue? Am I doing something wrong?
Announcement
Collapse
No announcement yet.
/SILENT does not work in SUF 9.5.2.0
Collapse
X
-
Please note that the correct command line argument is /S, not /SILENT... There was an issue in previous releases, and any command line argument starting with /S would trigger silent install, and this could cause unexpected behavior. This is was corrected in version 9.5.2.0.
Ulrich
-
It is working exactly as expected in my tests. I suggest that you create a new, empty installer, and place this at the beginning of the On Pre Install event script:
Code:local sArgs = ""; for i,v in pairs(_CommandLineArgs) do sArgs = sArgs .. v .. " "; end SetupData.WriteToLogFile("Info\tCommand line args: " .. sArgs .. "\r\n", true); SetupData.WriteToLogFile("Info\t_SilentInstall: " .. tostring(_SilentInstall) .. "\r\n", true);
Code:[08/16/2018 17:24:40] Notice Start project event: On Startup [08/16/2018 17:24:40] Info Command line args: C:\Users\ULRICH~1\AppData\Local\Temp\_ir_sf_temp_0\irsetup.exe /S __IRCT:3 [08/16/2018 17:24:40] Info _SilentInstall: true [08/16/2018 17:24:40] Success Run project event: On Startup [08/16/2018 17:24:40] Success Free space check on drive: C:\
Code:[08/16/2018 17:25:06] Notice Start project event: On Startup [08/16/2018 17:25:06] Info Command line args: C:\Users\ULRICH~1\AppData\Local\Temp\_ir_sf_temp_0\irsetup.exe /SILENT __IRCT:3 [08/16/2018 17:25:06] Info _SilentInstall: false [08/16/2018 17:25:06] Success Run project event: On Startup [08/16/2018 17:25:06] Success Display screen: Welcome to Setup
Ulrich
Comment
Comment