I\'m using the following NSIS script:
Name \"My app wrapper\"
Outfile \"MyAppSetup.exe\"
InstallDir $TEMP\\MyApp\\Install
Function .onInit
SetSilent silent
Funct
Section
InitPluginsDir
SetOutPath "$pluginsdir\MyApp\Install" ;It is better to put stuff in $pluginsdir, $temp is shared
File installer.msi
File setup.exe
ExecWait '"$pluginsdir\MyApp\Install\setup.exe"' ;You should always use full paths and proper quotes
SetOutPath $exedir ;Change current dir so $temp and $pluginsdir is not locked by our open handle
SectionEnd