MSnet
25th November 2007 23:57 UTC
Install exe in NSIS
Hello,
How can I make it so that if the end user selects .net framework in the files to install part of the installation it will launch the .net framework exe I included in the installation instead of installing the exe into the install path making the user have to do it manually?
Thanks
Afrow UK
26th November 2007 00:38 UTC
Something like this:
SetOutPath $PLUGINSDIR
File dotnetfx.exe
ExecWait `"$PLUGINSDIR\dotnetfx.exe" /q:a /c:"install.exe /noaspupgrade /q"` $R0
That will perform a silent installation. You can check the value of $R0 with StrCmp or ${If} to determine if the installation was successful. $R0 will be 0 on success.
Stu