NSIS Home > NSIS Discussion Forum > NSIS Archive > NSIS Programmer's Reference
  NSIS Programmer's Reference

  MakeNSIS usage

Explains the MakeNSIS command line syntax.


Syntax

Makensis [/Vx] [/Olog] [/LICENSE] [/PAUSE] [/NOCONFIG] [/CMDHELP [command]] [/HDRINFO] [/NOCD]
         [/Ddefine[=value] ...] ["/Xcommand parameter" ...] [[-] filename [...]]

The syntax of the MakeNSIS command line is:

Part Description
/Vx This sets the verbosity of the output. The following values can be used for x, the default is 4:
0 No output.
1 Errors only.
2 Warnings and errors only.
3 Information, warnings and errors only.
4 Everything (information, warnings, errors and the processed script).
/Olog This will tell the compiler to write it's output to the file specified at log, instead of to the screen.
/LICENSE This will display a keen license page.
/PAUSE When this switch is used, MakeNSIS will pause before quitting. This is useful when executing directly from Windows, since Windows will close the DOS-box as soon as the program is finished.
/NOCONFIG By default, the file nsisconf.nsh in the NSIS directory is included at the beginning of the script to set the installer defaults. When you use this switch, the nsisconf.nsh file will not be included.
/CMDHELP [command] This prints very basic usage information about the NSIS instruction command (if specified), or all NSIS instruction (if command is not specified).
/HDRINFO This prints out information on what options Makensis was compiled with.
/NOCD By default, the current directory is changed to that where the script filename resides. When this switch is used, the current directory is not changed.
/Ddefine[=value] You may use this parameter multiple times. When used, it adds define (with value value, if specified) to the globally defined list. This works the same as using the !define instruction at the beginning of your script.
/Xcommand parameter You may use this parameter multiple times. When used, the instruction command and its parameters parameter will be executed. For example: "/XAutoCloseWindow false"
[-] filename You may use this parameter multiple times. Specify here the script that has to be compiled. When you specify more than one script, they are treated as one concatenated script. Specifying a dash (-) for the script name will tell MakeNSIS to use the standard input as a source.

Notes


Remarks


See Also

!define instruction