Archive: Call another installer


Call another installer
I know this question has probably been asked a million times but I did some searching and could not find the answer. Im writing an installer(Call it Program 1) that requires another program(Call it Program 2) to already be installed. I wrote program 2 and and its installer also. I also know how to check if program 2 has been installed already. What is the easiest way to include program 2's installer in program 1's installer? Do I have to copy program 2's installer script into program 1's installer script? Or is it possible to actually include compiled installer for program 2 in program 1's script?


Yeah, just pack up program 2's installer when you compile program 1, unpack it at runtime, and run it silently (/S option) when running program 1's installer.


Well I cant really run it silently because it requires user interaction. Also when you say "pack" do you mean the script of the compiled .exe file?


Originally posted by patelb
Well I cant really run it silently because it requires user interaction. Also when you say "pack" do you mean the script of the compiled .exe file?
He means in the script. Like:

Section
File /oname=$PLUGINSDIR\SomeInstaller.exe "C:\Redist\SomeInstaller.exe"
ExecWait '"$PLUGINSDIR\SomeInstaller.exe" Arguments'
Delete "$PLUGINSDIR\SomeInstaller.exe"
SectionEnd


If the installer has no silent mode, you must rely on the user to do the required interaction. A messagebox like "We will install XYZ now, which is required for this product" could help to inform the user...