Reputation: 22114
I have created a MSI which also includes the installer file for crystal report (CRRedist2008_x86.msi). I would like to execute the crystal report MSI along with the main installer. I understand, I have to use some kind of Custom Action, but I am not sure about the exact way to go about this.
Perhaps the steps would be
i) Let the main installation finish ii) Execute the "CRRedist2008_x86.msi" using the command msiexec [I am not sure how to do this]
Could someone provide me guidance on how to achieve this?
Upvotes: 1
Views: 1095
Reputation: 22446
Your best bet is to use a bootstrapper (I've heard good things about the free dotNetInstaller, or there are commercial alternatives available)
Then configure your bootstrapper to do the following:
For example, with the bootstrapper I use we check for
If they're not present, they're then downloaded off the net and installed automatically. This all happens before the main install starts.
Hope that helps :)
Upvotes: 2
Reputation: 21426
There are two approaches for this:
Add the Crystal Reports installer as a prerequisite. Most setup authoring tools support this and it's the recommended method.
Create a custom action which launches the second installer. Windows Installer doesn't have a predefined custom action for launching other MSIs as regular files, but you can try creating a custom EXE which uses ShellExecute to launch the MSI file.
To run another MSI installer at the installation end you need to schedule it after InstallFinalize action and run it with the msidbCustomActionTypeAsync and msidbCustomActionTypeContinue flags: http://msdn.microsoft.com/en-us/library/aa368071(VS.85).aspx
Upvotes: 1