Finding RegAsm on target computer when deploying an assembly

G

Guest

I have an COM server in an assembly. When it is deployed on a target computer
it needs to be registred with RegAsm. I created a custom action in the deploy
project, starting RegAsm with the assembly DLL as command argument. It all
works as expected.
To make RegAsm available I installed it from the framework bin directory to
the componentes application folder on the target machine. An custom action
can only refer executables in application folder, user app data folder etc.
It can not refer executables in Windows or in other places then the ones
defined in the deploy project.
The is not well when I installed an framework 1.1 version of RegAsm, but the
target contaings framework 2.0 only! It failes to register the component.

Q1: is there a way to locate the active framework (perhaps the latest) on
the target computer?
Q2: Should I create a BAT-script to do the registration?
Q3: What would it look like, to adress the latest available RegAsm on the
target computer?

Regards,
Kenneth Jonsson
 
P

Phil Wilson

Most of the time you can just drag your assembly into the File System on
Target Machine folder and set its Register property to vsdraCOM, and the
setup will take care of it for you. You might also need to register the type
library. Regasm does this for you, but vsdraCOM does not, so use Tlbimp to
make a type library and drag that into the setup project too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top