I\'m using the following NSIS script:
Name \"My app wrapper\"
Outfile \"MyAppSetup.exe\"
InstallDir $TEMP\\MyApp\\Install
Function .onInit
SetSilent silent
Funct
This is another way to do it
Function .onInit
InitPluginsDir
File /oname=$PLUGINSDIR\test.exe "test.exe"
FunctionEnd
Section "Exec file" SecFile
nsExec::Exec $PLUGINSDIR\test.exe
SectionEnd
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
I don't know if it would solve your problem but I would write :
Exec $TEMP\MyApp\Instal\setup.exe
Are you sure that $TEMP is pointing to C:/Temp? Did you check it?