Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > setup project VS2005 COM+
 

setup project VS2005 COM+

Is there a way, using a setup project VS2005 add COM+ componet on target machine?
  • Moved byMartin Xie - MSFTMSFTWednesday, April 01, 2009 10:25 AMMove it to ClickOnce and Setup Deployment forum for better support.
  •  
MMykhailo  Tuesday, March 31, 2009 11:06 AM

Hi MMykhailo,

Yes and the way is simple. Add the COM+ DLL files into the setup project and set the Register property of the COM+ DLL files to vsdraCOM.To do this, right click the COM+ DLL file in Solution Explorer and choose Properties. In the Properties window, set the Register property to vsdraCOM.

When building the setup project, Visual Studio extractsthe COM registrationentriesand populates the appropriate tables in the MSI package. When installing the resulted MSI package, COM+ components will be installed on the target machine and the registration entries will becopied to the Registry as well, so that the COM+ components are registered on the target machine.

Thanks,
Linda Liu

Linda Liu  Friday, April 03, 2009 9:18 AM

Hi MMykhailo,

Yes and the way is simple. Add the COM+ DLL files into the setup project and set the Register property of the COM+ DLL files to vsdraCOM.To do this, right click the COM+ DLL file in Solution Explorer and choose Properties. In the Properties window, set the Register property to vsdraCOM.

When building the setup project, Visual Studio extractsthe COM registrationentriesand populates the appropriate tables in the MSI package. When installing the resulted MSI package, COM+ components will be installed on the target machine and the registration entries will becopied to the Registry as well, so that the COM+ components are registered on the target machine.

Thanks,
Linda Liu

Linda Liu  Friday, April 03, 2009 9:18 AM

I did this in a setup program that I included in a ClickOnce bootstrapper.

It worked successfully when the program was published to and ran from a disk, but not when published to the web. The program when downloaded from the webfailed to install with the following error:

An error occurred while installing system components for<ClickOnce program name>. Setup cannot continue until all system components have been successfully installed.

The following package files could not be found

C:\Documents and Settings\<window user name>\Local Settings\Temporary Internet Files\Content.IE5\ASL2CVHR\<prerequisite package name>\<setup program>.ms

Any suggestions?

Giggiehurtz  Friday, April 03, 2009 3:32 PM
Linda's answer is incorrect. Setting vsdraCOM does NOT register an assembly for COM+. Linda dear, COM != COM+.
emates  Sunday, August 23, 2009 12:25 PM
did any one find the solution for this problem? i need to register a com+ using the setup project

thanks
Mazin84  Monday, September 14, 2009 11:46 AM

You can use google to search for other answers

Custom Search

More Threads

• problem with debug release mode
• ClickOnce and conditional deployments
• add/remove program icon showing folder icon
• 'Manually' installing a service via MSI
• Accepting serial number in uppercase
• Unable to create test certificate
• Environment.GetFolderPath(Environment.SpecialFolder.Personal) == Null !!!!!
• Window application keep on reinstall itself each time user logon to terminal server.
• URLDownloadToCacheFile error when trying to clickonce install
• How to include access database in the deployment project? Using VS 2005 (vb)