If some information should be gathered from user in silent mode, some more options can be passed to function.Please close it first." /SD IDCANCEL IDOK OK IDCANCEL CANCEL Here, if silent mode is on, message box is not displayed and behaves as with user OK.īeware of the options order there MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "Application is running. MessageBox MB_OK|MB_ICONINFORMATION "This is not a silent installer" /SD IDOK To make installer fully silent, use either instruction jump (in general), or flag /SD IDOK | IDCANCEL (for OK|CANCEL messsage boxes). However, message boxes and all other screens not flagged with SF_SELECTED may be displayed. In silent mode, all screens from installer itself are not displayed. To set installer | unsinstaller silent, you can also use Options are silent for silent mode and normal for non silent mode. To set an installer in silent mode (just for a while), use SetSilent in. 0 means hat compiler should go to next instruction if IfSilent is false. +2 means that nex instruction is skipped if IfSilent is true. In this example, message box is displayed iif installer is silent. MessageBox MB_OK|MB_ICONINFORMATION 'This is a "non silent" installer' To skip some insructions in silent mode (user interaction, creation of window), use jump instruction To check whether installer is silent, use IfSilent Installer.exe /S /D=C:\Program Files\NSIS It must be the last parameter used in the command line and must not contain any quotes, even if the path contains spaces. /D sets the default installation directory ($INSTDIR), overriding InstallDir and InstallerDirRegKey./S runs the installer or uninstaller silently.Compile a NSIS (.nsi) script o generate installer makensis ]