NSIS ifSilent not set

446 Views Asked by At

I'm calling my NSIS compiled setup.exe file with /S option, so that the 'silent' internal variable is set automatically. Here is my .onInstSuccess function. I want to skip an Exec command if silent. For some reason the exe is always invoked even if I pass in /S in my setup.exe

Here is my onInstSuccess function

Function .onInstSuccess
    IfSilent +2 0
    Exec '"$INSTDIR\Tools\CobraConfigure.exe"'
FunctionEnd
1

There are 1 best solutions below

0
On BEST ANSWER

Works fine for me. Are you doing SetSilent normal anywhere in your script?