Skip to content
⌘ NSIS Forum Archive

Install 3 installers

15 posts

tmorford#

Install 3 installers

Hey I am having a problem installing 3 installers is there any way I can do this, I have not been able to yet.

thanks!
Afrow UK#
Installing 3 installers?
Do you mean installing 3 products? Why not just have 3 Sections or SectionGroups with Sections inside them?

-Stu
tmorford#
yea I need to install 3 products with one install script, they are all installs not just three exe.

thanks.
tmorford#
Oh I ment that I dont want to install just 3 install.exe's I would like to run 3 install.exe's (differnet file names) from one install script.
tmorford#
yea I am new to this, how can I do that? I have tried a couple of different ways it just does not seem to work.

thanks.
Afrow UK#
Have three different Sections and in them execute the installers with ExecWait. If they're InstallShield installers, you'll need to pass an extra switch on the command line to make it wait (usually /sms).

-Stu
tmorford#
ok thanks, I was having trouble seeing the help system but it just seemed to work now, thanks. I will look in to it!
tmorford#
ok thansk for you help I have it installing the three items but how do I set the installer to wait untill the three are installed?
tmorford#
yes I am using the execWait, and its silent
<CODE>
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Setup.exe"
InstallDir "$PROGRAMFILES\CMA VPN"
Icon "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
SilentInstall silent
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""

Section "MainSection" SEC01
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "..\InstallerServiceSetup.exe"
CreateDirectory "$SMPROGRAMS\CMA VPN"
;CreateShortCut "$SMPROGRAMS\CMA VPN\CMA VPN.lnk" "$INSTDIR\InstallerServiceSetup.exe"
;CreateShortCut "$DESKTOP\CMA VPN.lnk" "$INSTDIR\InstallerServiceSetup.exe"
File "..\HCInst.exe"
File "..\WSAMInstNt.exe"
SectionEnd


Section "Install_InstallerServiceSetup.exe" SEC02
ExecWait "$INSTDIR\InstallerServiceSetup.exe /sms"
SectionEnd

Section "Install_HCInst.exe" SEC03
ExecWait "$INSTDIR\HCInst.exe /s"
SectionEnd

Section "Install_WSAMInstNt.exe" SEC04
ExecWait "$INSTDIR\WSAMInstNt.exe /s"
SectionEnd

Section -Post
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\InstallerServiceSetup.exe"
SectionEnd
</CODE>
Afrow UK#
Make sure you keep the parameters seperate from the command path:

Section "Install_InstallerServiceSetup.exe" SEC02
ExecWait '"$INSTDIR\InstallerServiceSetup.exe" /sms'
SectionEnd

Section "Install_HCInst.exe" SEC03
ExecWait '"$INSTDIR\HCInst.exe" /s /sms'
SectionEnd

Section "Install_WSAMInstNt.exe" SEC04
ExecWait '"$INSTDIR\WSAMInstNt.exe" /s /sms'
SectionEnd
You didn't specify that they're all InstallShield installers, so I'll just have to assume they are. Does it wait for InstallerServiceSetup.exe to finish?

-Stu
tmorford#
they are all not one is and the other 2 are nullsoft but and older version I belive I will change it thanks.