Archive: SilentInstall and the /S command line switch.


SilentInstall and the /S command line switch.
Halfway through composing my question here, I was struck by a thought and now have the answer. I thought I might share my "insight" with you and perhaps provide a suggestion for improving the docs.

I've been round the houses trying to work out why I couldn't get the /s command line switch to run my installer in silent mode. Read all the archive examples, searched the forum etc....

Can I suggest the following changes to the docs? (My comment in red)

4.8.1.33 SilentInstall

normal|silent|silentlog

Specifies whether or not the installer should be silent. If it is 'silent' or 'silentlog', all sections that have the SF_SELECTED flag are installed quietly (you can set this flag using see SectionSetFlags), with no screen output from the installer itself (MessageBoxes are still displayed on error, and the script can still display whatever it wants). Note that if this is set to 'normal' and the user runs the installer with /S on the command line, it will behave as if SilentInstall 'silent' was used. Note the /S switch is upper case - /s with a lower case 'S' will not work! Note: see also LogSet.
;)

Added a note.


Thanks kichik. Hopefully this will help other Monday-morning-hackers to avoid the same muddle-headedness.