ksmith93
Posts: 10
Joined: Wed Sep 13, 2006 5:14 pm

Installing Windows Installer 3.0 + .NET FW 2.0 + My App

Are there best practices and recommendations for using AI to install an app which requires the .NET Framework 2.0 *and* Windows Installer 3.0? The installation of .NET FW 2.0 requires WI 3.0.

(Please see also this link http://www.advancedinstaller.com/forums ... php?t=1530 for contextual info and cross-reference.)

One scenario where this would manifest itself is when deploying a .NET 2.0 app to a Windows 2000 SP4 target machine. A Windows 2000 SP4 target machine may not have Windows Installer 3.0 on it. The installation of .NET FW 2.0 requires Windows Installer 3.0.

Although I cannot say for sure, my instincts tell me that this may get tricky because (a.) installation of WI 3.0 may require a system restart and (b.) installation of .NET FW 2.0 implies the use of WI so if we were to proceed with a custom action to perform the .NET FW 2.0 installation from within our own AI install, we may hit difficulties. There is a possibility that my instincts are wrong, and there is indeed a crisp, clean set of best practices for this deployment scenario.

My ultimate goal is to build a AI project which deploys WI 3.0 + .NET FW 2.0 + my app. My app does not require WI 3.0, nor does AI, but the .NET FW 2.0 does indeed.

Thank you for your time, and for a great product in AI.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

You should consider the following aspects:

1. If WI 3.0 is a required Prerequisite, then select the checkbox "Force installation of this prerequisite" in the "Install Conditions" tab of the "Edit Prerequisite" dialog. If possible, use WI 3.1 instead of 3.0 because it fixes several issues.

2. In the event of a reboot, the setup will be relaunched upon reboot, because the bootstrapper writes a registry value under the "RunOnce" key when Prerequisites are installed.

3. Installing .NET Framework must be done with a Prerequisite, not with a Custom Action.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”