Menu

#548 Command line options of generated installers

2.0 Series
open
nobody
None
5
2018-06-17
2018-06-16
No

Hi,

NSIS generated installers should contain a command line option like "/h", "/help" or "/?" which informs the user about the possible command line options (e.g. /S /NCRC and /D).

And if I do a silent install (installer.exe /S) - there should be a way to select, which components should be installed (e.g. "/C 1,2,5" to install the first, second and fifth component or something similar). Currently one can only do the default installation silent, correct?

Best regards, Wolfgang

Discussion

  • Anders

    Anders - 2018-06-16

    You can parse parameters on your own if you want to:

    !include FileFunc.nsh
    !include LogicLib.nsh
    Function .onInit
    ${GetParameters} $0
    ClearErrors
    ${GetOptions} $0 "/help" $1
    ${IfNot} ${Errors}
        MessageBox MB_ICONINFORMATION "Blah blah blah"
    ${EndIf}
    FunctionEnd
    
     
  • Wolfgang Dautermann

    Thank you, I will try that.

     

Log in to post a comment.

MongoDB Logo MongoDB