Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9168177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:34:10+00:00 2026-06-17T15:34:10+00:00

How to make a Nullsoft Scriptable Install System (NSIS) installer silent? From Wikipedia: Nullsoft

  • 0

How to make a Nullsoft Scriptable Install System (NSIS) installer silent?

From Wikipedia:

“Nullsoft Scriptable Install System (NSIS), est un logiciel libre contrôlable par script, qui permet la création d’installateurs pour Windows. Il a été initialement développé par Nullsoft, la société créatrice de Winamp. NSIS est une alternative aux produits commerciaux, comme InstallShield.

The NSIS compiler program makensis compiles scripts like the following example into executable installation programs. Each line in the script contains a single command.”

# Example script

Name "Example1"
OutFile "example1.exe"
InstallDir "$PROGRAMFILES\Example1"
Page Directory
Page InstFiles
Section
  SetOutPath $INSTDIR
  File ..\makensis.exe
SectionEnd  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:34:11+00:00Added an answer on June 17, 2026 at 3:34 pm

    Command line usage

    1. MakeNSIS usage

    Compile a NSIS (.nsi) script o generate installer

    makensis [option | script.nsi | - [...]]
    

    Example

    makensis.exe myscript.nsi
    

    2. Installer usage

    Some options

    • /S runs the installer or uninstaller silently
    • /D sets the default installation directory ($INSTDIR), overriding InstallDir and InstallerDirRegKey. It must be the last parameter used in the command line and must not contain any quotes, even if the path contains spaces. Only absolute paths are supported.

    Examples

    installer.exe /S
    
    installer.exe /S /D=C:\Program Files\NSIS
    

    Silent installers / uninstallers

    • To check whether installer is silent, use IfSilent

    • To skip some insructions in silent mode (user interaction, creation of window), use jump instruction

    Example

    IfSilent +2 0 
        MessageBox MB_OK|MB_ICONINFORMATION 'This is a "non silent" installer'
    

    In this example, message box is displayed iif installer is silent. +2 means that nex instruction is skipped if IfSilent is true. 0 means hat compiler should go to next instruction if IfSilent is false.

    • To set an installer in silent mode (just for a while), use SetSilent in .onInit method. Options are silent for silent mode and normal for non silent mode.

    • To set installer | unsinstaller silent, you can also use

      SilentInstall silent

      SilentUnInstall silent

    • In silent mode, all screens from installer itself are not displayed. However, message boxes and all other screens not flagged with SF_SELECTED may be displayed. To make installer fully silent, use either instruction jump (in general), or flag /SD IDOK | IDCANCEL (for OK|CANCEL messsage boxes).

      MessageBox MB_OK|MB_ICONINFORMATION "This is not a silent installer" /SD IDOK

    Here, if silent mode is on, message box is not displayed and behaves as with user OK.
    Beware of the options order there

    MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "Application is running. Please close it first." /SD IDCANCEL  IDOK OK IDCANCEL CANCEL 
    
    • If some information should be gathered from user in silent mode, some more options can be passed to function .onInit with GetOptions,

    like here:

    !include FileFunc.nsh
    !insertmacro GetParameters
    !insertmacro GetOptions
    
    Function .onInit
      ${GetParameters} $R0
      ClearErrors
      ${GetOptions} $R0 /USERNAME= $0
    FunctionEnd
    

    References

    NSIS silent install 1

    NSIS silent install 2

    NSIS silent install 3

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I develop an installer of library of COM objects using NSIS (Nullsoft installer) v2.0.
I make an AJAX request to a PHP script which returns a number from
Make a window without using class System.Windows.Forms.Form? Continuing from one of my previous questions,
make order portfolie contacts vacancies about company I add style for it in jquery-script:
I make my own GUI see here but system is taking too much resources
I make an AJAX POST request to a PHP script on my server. That
I make android application that read textfile.txt from resource/raw. And it's work fine. Here
I make a small jquery script. When you scroll on the page and your
I make a simple application to take recipe info from websites like allrecipes.com. I'm
I make a range datepicker with from date and to date. Here code: From

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.