Ema
30th April 2008 17:10 UTC
use custom parameters
HI all,
is it possible to launche the ngenerate installer with some parameters. Let's say I want to launch an executable at the end of the install but with some custo parameter.
Something like
http://nsis.sourceforge.net/Which_co...ure_installers
but it will have to change the
!define MUI_FINISHPAGE_RUN "$INSTDIR\${MYAPP_EXE}"
Is it possible?
Thanks in advance
ex:
setup.exe -port 10
at the end of the install will launch
MYAPP_EXE -port 10
kichik
2nd May 2008 00:09 UTC
Define MUI_FINISHPAGE_RUN_PARAMETERS as a variable and modify that variable according to the command line.
Ema
5th May 2008 08:40 UTC
Thanks, what I don't know is how to read a parameter in the NSIS script, I know how to pass a parameter when generating the installer but not when the installer generated is launched.
kichik
5th May 2008 19:08 UTC
The command line is saved in $COMMANDLINE. You can use GetParameters and GetOptions from the useful headers to parse it easily.