Skip to content
⌘ NSIS Forum Archive

Execute two Installer(exe) into one exe

11 posts

jeyamj#

Execute two Installer(exe) into one exe

Dear all,

I have two Installer(exe) files setup1.exe and setup2.exe separately.

I want to make one execution Installer called multisetup.exe.

When I am going to install the multisetup.exe, the above setup1.exe and setup2.exe should be automatically installed in my system.

I have put my setup1.exe and setup2.exe files in C:\, How could I mention the directory in the nsi script.

And My kindly request is that,can you please give me an example of nsi script regarding this.

If you can answer me, you will be appreciated.

Thanks a lot in Advance,

jeyamj
Red Wine#
Those two setup1.exe and setup2.exe should be packaged into multisetup.exe or should be distributed (e.g. cd/dvd) in the respective folder aside with multisetup.exe?
jmohan#
Originally posted by Red Wine
Those two setup1.exe and setup2.exe should be packaged into multisetup.exe or should be distributed (e.g. cd/dvd) in the respective folder aside with multisetup.exe?
Please give me the answer as follows:

(1)How to pack two setup files

(2)Can I execute the two setup files simultaneously when I click packaged exe.

Thanks in Advance,

jeyamj
Red Wine#
I'm a bit confused here...
jmohan and jeyamj are you both the same person?

Anyway, there's another thread discussing the same subject:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
fabian.rap.more#
Put this in the same directory as the two files


Name "MutiExec"
Code "MultiExec.exe"

SilentInstall silent

Section
SetOutPath $Temp
File "file1.exe"
ExecWait $temp\file1.exe
Sleep 2000
Delete $temp\file1.exe

File "file2.exe"
ExecWait $temp\file2.exe
Sleep 2000
Delete $temp\file2.exe
SectionEnd
Red Wine#
@ fabian.rap.more
Instead of sleep which is useless at this point, you may want to get the return value of the executed program and continue according to that value. 😉
fabian.rap.more#
Never thought of that. I used sleep because sometimes when I used this script the installer was still running for some reason
Joel#
Originally posted by Red Wine
I'm a bit confused here...
jmohan and jeyamj are you both the same person?

Anyway, there's another thread discussing the same subject:

http://forums.winamp.com/showthread....hreadid=291695
I do thing that are the same person. Weird
jmohan#edited
Originally posted by Joel
I do thing that are the same person. Weird

thank you joel, it is working.

I am sorry. i don't know about jeyamj. He arised same question in this forum. I think , he wants the exe executing in some way.
Anyway,

Thanks,
J. Mohan
jmohan#
Originally posted by fabian.rap.more
jmohan thanking us for jeyamj ???

You are so definatelty the same person

sorry, I am also confused.

Anyway, the questions and answers are benefited for all.