Last time I did an installer I needed to install the .Net 2.0 runtime prior to the main package. I had to a fair bit of research using Google to find the info I needed. This time around I ended up doing the same searching so I'm making a note in this blog for future reference.
Using InstallShield 11.5 ...
- You have to run the Release Wizard and create a new Product Configuration to include .Net 2.0. The wizard has an option to include .Net 2.0 that appears nowhere else in InstallShield.
- In the Installation Designer, click on the Media/ Releases node and then, in the middle panel, click on the release to configure more .Net install options. Then ...
- In the Command Line to dotnetfx.exe option, put " /q:a /c:\"install /qb\"". This forces a quiet install of the runtime.
- Set Show full user interface when installing .Net framework to Yes.
- Set display .Net Option dialog to No so the user is not given the option to skip installing .Net 2.0.
- Set Delay .Net Reboot to Yes.
Then save everything and build the installation. Now, if the setup.exe is executed on a machine that doesn't have .Net 2.0, the installer will make sure the runtime is installed on the user's machine.