Partilhar via


VS Setup project - vsdraCOM sets codebase in registry to point to the SourcePath

Using VS Setup project to deploy an application that uses COM component. The COM component is being registered by setting vsdraCOM. When the application is installed on the target machine the registry codebase for the COM component is pointing to the sourcepath.

 

Using VS Setup project to deploy an application that uses COM component. The COM component is being registered by setting vsdraCOM. When the application is installed on the target machine the registry codebase for the COM component is pointing to the sourcepath.

 

 

We first set the register property for the COM component to DoNotRegister. Used regasm from the Visual Studio 2005 command prompt with the following parameters.

 

Regasm.exe /regfile: /codebase

 

This would generate a reg file under the specified path. Now manually edit the reg file to replace the codebase information and change it to [TARGETDIR]

Save the reg file and do the following in Visual Studio Setup project.

 

Right Click On the setup project goto View and select Registry editor. Right Click on Registry on Target machine and select Import. Point to the modified reg file and rebuild the project.

 

Contributor : Ravi Shankar