Solved

Visual Studio .NET Framework Bootstrapper Plug-in/MDAC install fails

Posted on 2004-04-21
6
1,178 Views
Last Modified: 2012-05-04
I am using the bootstapper plugin with VS2003. I have setup the MDAC launch condition as specified at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/vsredistdeploy1_1.asp. like this
1. Make sure that the Visual Studio .NET Framework Bootstrapper Plug-in is installed.
2. Select the Setup project in Solution Explorer. From the View menu, point to Editor and choose Launch Conditions.
3. Select the Requirements on Target Machine node. From the Action menu, choose Add Registry Launch Condition.
4. Select the Search for RegistryEntry1 node. In the Properties window, select the RegKey property and type Software\Microsoft\DataAccess.
5. Select the Root property and select vsdrrHKLM.
6. Select the Value property and type FullInstallVer.
7. Select the Property property and type MDACSEARCH.
8. In the Launch Conditions Editor, select the Condition1 node. In the Properties window, select the Condition property and select MDACSEARCH>="2.6".
9. Select the Setup project in Solution Explorer. On the Project menu, choose Properties.
10.Set the Bootstrapper property to Windows Installer Bootstrapper.

My problem is that if MDAC is already installed on the target machine the MDAC bootrapper fails. For instance if I try to install on a machine that has MDAC 2.7 installed the MDAC fails with the error message specified in my launch condition. If MDAC is not installed on the target machine the MDAC installs fine, the PC reboots, and then the setup continues, and now the MDAC launch condition fails. It seems that if MDAC is already installed the setup fails. I am using the setup.exe and not the msi file to install. Can anyone help me with this problem?
Thanks!
0
Comment
Question by:myester
6 Comments
 
LVL 8

Expert Comment

by:nishikanth
ID: 10885537
you must not use a launch condition

The condition detects whether the set up continues are not....

check this

http://www.microsoft.com/downloads/details.aspx?FamilyId=66350891-D15B-446B-BD69-F7F849224A00&displaylang=en
0
 
LVL 8

Expert Comment

by:nishikanth
ID: 10885544
pls include it as a merge module and install it

just like you do the .net distributable file
0
 

Author Comment

by:myester
ID: 10887205
Nishikanth
I know about the bootstrapper sample, but the Visual Studio .NET Framework Bootstrapper Plug-in does all of that for your when you build the application. Both the .NET Framework redistributable and MDAC will be packaged with the Setup.exe for the Setup project when it is built.  I followed the instructions verbatim from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/vsredistdeploy1_1.asp. As I said earlier if MDAC is not on the target PC the MDAC installs fine, but if MDAC is already installed it fails. Here are the instructions for the Plug-in from the Microsoft site:

Installing the .NET Framework with a Setup Project
Setup projects in Visual Studio .NET 2003 can be used to install the .NET Framework with your application, but only if you have installed the optional Visual Studio .NET Framework Bootstrapper Plug-in on your development computer.

Note   The Visual Studio .NET Framework Bootstrapper Plug-in is available for download from the Download Center.

The Visual Studio .NET Framework Bootstrapper Plug-in modifies the behavior of the Setup project's Bootstrapper property to include the .NET Framework bootstrapper as well as the Windows Installer bootstrapper. The .NET Framework redistributable and the appropriate Language pack are then packaged with your application; a launch condition checks for the correct version of the .NET Framework at install time and if necessary, installs it before installing your application.

Note   The Visual Studio .NET Framework Bootstrapper Plug-in doesn't modify the Web bootstrapper. Setting the Bootstrapper property to Web Bootstrapper will only install the Windows Installer Bootstrapper.
In addition, if your application requires data access, you can install the Microsoft Data Access Components (MDAC) with your setup.

The Visual Studio .NET Framework Bootstrapper Plug-in also supports installing localized versions of the .NET Framework for each of the eight languages supported by Visual Studio .NET. You must install a separate version of the plug-in for each language that you wish to support; these can be downloaded from the same location as the English version. The Localization property of the Setup project determines which version of the framework will be bootstrapped. For more information, see Installing Localized Applications.

To make sure that the plug-in is installed

From the Control Panel, click on Add or Remove Programs.
In the Add or Remove Programs dialog box, check the Currently installed programs list for Microsoft Visual Studio .NET 2003 Bootstrapper Plug-in.
If Microsoft Visual Studio .NET 2003 Bootstrapper Plug-in is not listed, you will need to download and install the Visual Studio .NET Framework Bootstrapper Plug-in from the Download Center.

Note   You can also uninstall the Visual Studio .NET Framework Bootstrapper Plug-in by selecting it from the list and clicking Remove.
To install the .NET Framework with a Setup project

Make sure that the Visual Studio .NET Framework Bootstrapper Plug-in is installed.
Select the Setup project in Solution Explorer. On the Project menu, choose Properties.
Set the Bootstrapper property to Windows Installer Bootstrapper.
The .NET Framework redistributable will be packaged with the Setup.exe for the Setup project when it is built.

Note   The .NET Framework launch condition must also be enabled; it is enabled by default for any project that references the .NET Framework. To check for the launch condition, from the View menu, point to Editor and choose Launch Conditions, then look for a launch condition named .Net Framework.
To install MDAC with a Setup project

Make sure that the Visual Studio .NET Framework Bootstrapper Plug-in is installed.
Select the Setup project in Solution Explorer. From the View menu, point to Editor and choose Launch Conditions.
Select the Requirements on Target Machine node. From the Action menu, choose Add Registry Launch Condition.
Select the Search for RegistryEntry1 node. In the Properties window, select the RegKey property and type Software\Microsoft\DataAccess.
Select the Root property and select vsdrrHKLM.
Select the Value property and type FullInstallVer.
Select the Property property and type MDACSEARCH.
In the Launch Conditions Editor, select the Condition1 node. In the Properties window, select the Condition property and select MDACSEARCH>="2.6".
Select the Setup project in Solution Explorer. On the Project menu, choose Properties.
Set the Bootstrapper property to Windows Installer Bootstrapper.
Both the .NET Framework redistributable and MDAC will be packaged with the Setup.exe for the Setup project when it is built.

0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 11135303
PAQed, with points refunded (500)

Computer101
E-E Admin
0
 

Expert Comment

by:epihandy
ID: 12842576
Message to Myester, I can open  a new question and give you 500points for helping me out...
On similar problem....
Thanx!
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question