Solved

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

Posted on 2004-04-21
6
1,165 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
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 …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now