Archive: Running third-part executables in the main executable


Running third-part executables in the main executable
I am new to NSIS. I have differents components to put in an executable. For example: Python, R, etc. and my main executable (MyApp.exe).With this code, it just copies the Python.exe and R.exe to the installation path and not installing them:

Section -SETTINGS
SetOutPath $INSTDIR
SectionEnd

Section "Python" SEC01
File "python-275.msi"
ExecWait '"$INSTDIR\python-275.msi" /passive'
SectionEnd

Section "MyApp" SEC05
File MyApp.exe
SectionEnd

Thank you for your kind help.


You should probably run msiexec with the msi file as a parameter. Or perhaps it doesn't have sufficient access rights? Try grabbing the return code, and checking the error flag (IfErrors).

Also, consider using $PLUGINSDIR for your temporary files.


Yes, it works! I have forgotten to run msiexec. Thank you