Skip to content
⌘ NSIS Forum Archive

Install exe in NSIS

2 posts

MSnet#

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#
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