Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-04-21
6
Medium Priority
?
1,227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

597 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