Skip to content
⌘ NSIS Forum Archive

/S /s / Auto for silent install

5 posts

sLeX#edited

/S /s / Auto for silent install

Hi,
is it possible to use /S, /s and /Auto for silent install ?

so long
Afrow UK#
/s makes the installer silent already, but for /auto
you can do this in your .onInit function...
Function .onInit
Push $R0

Call GetParamaters
Pop $R0

Push $R0
Push "/auto"
Call StrStr
Pop $R0

StrCmp $R0 "" +2
SetSilent silent

Pop $R0
FunctionEnd
Both functions are in the NSIS documents section C.4

-Stu
sLeX#edited
Thank you very much... but i guess i´ve got a problem here


Error: resolving install function "GetParameters" in function ".onInit"
Note: uninstall functions must begin with "un.", and install functions must not
Error - aborting creation process