Command line Argument in exe

Discussion in 'Programming' started by visweswaran28, Dec 16, 2009.

  1. #1
    Hi, I want to create an installer using NSIS, In which, that installer should accept command line arguments.

    for eg:

    Let us consider, I have an installer, It contains two exe's, If I run that installer directly, then that should ask the user which exes has to execute. else if I run through command prompt, then that should have capable to accept my command line argument.. In that command line itself I mentioned which one has to install

    command line arguments means.

    myinstaller_name.exe -firstexe_name

    Can Any one help me..
     
    visweswaran28, Dec 16, 2009 IP
  2. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This can be easily done with Flexera InstallShield (Early names after acquisition of the InstallShield Corporation are Macrovision, Acresso, etc...)

    Since you use NSIS you will have to find it in their documentation. (I'm not sure you'll be able to give custom command-line arguments with NSIS)
     
    NeoCambell, Dec 16, 2009 IP
  3. shall

    shall Member

    Messages:
    111
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #3
    Or you can use Inno Setup, which is free http://www.jrsoftware.org/.

    But also not sure if it supports command line input
     
    shall, Dec 20, 2009 IP