Reference/IfSilent: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
mNo edit summary |
m (fix broken wiki links/syntax & <highlight-nsis>) |
||
Line 1: | Line 1: | ||
=IfSilent= | =IfSilent= | ||
<highlight-nsis>jump_if_silent [jump_if_not]</highlight-nsis> | |||
Checks the silent flag, and jumps to jump_if_silent if the installer is silent, otherwise jumps to jump_if_not. The silent flag can be set by [[Reference/SilentInstall|SilentInstall]], [[Reference/ | Checks the silent flag, and jumps to jump_if_silent if the installer is silent, otherwise jumps to jump_if_not. The silent flag can be set by [[Reference/SilentInstall|SilentInstall]], [[Reference/SilentUnInstall|SilentUnInstall]], [[Reference/SetSilent|SetSilent]] and by the user passing /S on the command line. | ||
<highlight-nsis>IfSilent +2 | <highlight-nsis>IfSilent +2 |
Revision as of 11:07, 12 May 2017
IfSilent
jump_if_silent [jump_if_not]
Checks the silent flag, and jumps to jump_if_silent if the installer is silent, otherwise jumps to jump_if_not. The silent flag can be set by SilentInstall, SilentUnInstall, SetSilent and by the user passing /S on the command line.
IfSilent +2 ExecWait '"$INSTDIR\nonsilentprogram.exe"'
Command introduced with NSIS v2.0