Old 2nd September 2013, 16:36   #1
IdeaD
Junior Member
 
Join Date: Sep 2013
Posts: 2
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.
IdeaD is offline   Reply With Quote
Old 2nd September 2013, 16:44   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
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.
MSG is offline   Reply With Quote
Old 2nd September 2013, 17:00   #3
IdeaD
Junior Member
 
Join Date: Sep 2013
Posts: 2
Yes, it works! I have forgotten to run msiexec. Thank you
IdeaD is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
external executbale, nsis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump