sql_learner
sql_learner

Reputation: 49

NSIS ifSilent not set

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

Answers (1)

Anders
Anders

Reputation: 101736

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

Upvotes: 2

Related Questions