Reputation: 49
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
Upvotes: 1
Views: 488
Reputation: 101736
Works fine for me. Are you doing SetSilent normal
anywhere in your script?
Upvotes: 2