Reference/IfSilent: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "=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 ...")
 
m (<code>, wiki link to Reference/Goto)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=IfSilent=
=IfSilent=


jump_if_silent [jump_if_not]
<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/SilentUninstall|SilentUninstall]], [[Reference/SetSilent|SetSilent]] and by the user passing /S on the command line.
Checks the silent flag, and [[Reference/Goto|jumps]] to <code>jump_if_silent</code> if the installer is silent, otherwise jumps to <code>jump_if_not</code>. The silent flag can be set by [[Reference/SilentInstall|SilentInstall]], [[Reference/SilentUnInstall|SilentUnInstall]], [[Reference/SetSilent|SetSilent]] and by the user passing <code>/S</code> on the command line.


<highlight-nsis>IfSilent +2
<highlight-nsis>IfSilent +2
ExecWait '"$INSTDIR\nonsilentprogram.exe"'</highlight-nsis>
ExecWait '"$INSTDIR\nonsilentprogram.exe"'</highlight-nsis>
''Command introduced with NSIS v2.0''

Latest revision as of 14:56, 11 October 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