run NSIS installer.exe from commandline
-
I have an installer.exe. That installer is built in NSIS V2.17. I need to run that installer in silent mode from command line. My coding is as below: char regSvrPath1[1024]; strcpy(regSvrPath1, "C:\\Program Files\\Installer.exe"); char regSvrArg1[1024]; strcpy(regSvrArg1, " /S /D=C:\\Program Files\\Installer"); int iI = _spawnl(_P_WAIT, regSvrPath1, regSvrArg1, NULL); When the spawnl statement is executed, it shows me the messagebox, "Please specify the installation type as first parameter: /install /upgrade /remove" I have tried out the arguments as strcpy(regSvrArg1, " /install /S /D=C:\\Program Files\\Installer"); But it is not working.... Can any one please guide me, how to specify install, uninstall or upgrade option from command line??
-
I have an installer.exe. That installer is built in NSIS V2.17. I need to run that installer in silent mode from command line. My coding is as below: char regSvrPath1[1024]; strcpy(regSvrPath1, "C:\\Program Files\\Installer.exe"); char regSvrArg1[1024]; strcpy(regSvrArg1, " /S /D=C:\\Program Files\\Installer"); int iI = _spawnl(_P_WAIT, regSvrPath1, regSvrArg1, NULL); When the spawnl statement is executed, it shows me the messagebox, "Please specify the installation type as first parameter: /install /upgrade /remove" I have tried out the arguments as strcpy(regSvrArg1, " /install /S /D=C:\\Program Files\\Installer"); But it is not working.... Can any one please guide me, how to specify install, uninstall or upgrade option from command line??
- I do beleive you should run the installer with a /S for silent mode. example: myinstaller.exe /S -If this has changed with a new version check your nsis manual PS: You migh also have to add an IsSilent() check in your install script
"Shorter of breath, and one day closer to death." ~Pink Floyd