By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,483 Members | 1,045 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,483 IT Pros & Developers. It's quick & easy.

Finding RegAsm on target computer when deploying an assembly

P: n/a
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

Dec 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Kenneth,

Please see the post at:
http://groups.google.com/group/micro...0a8ec5aa083ef1

I think it will be useful for your case.

Regards,
Sebastian Wain
--
http://www.nektra.com

Kenneth Jonsson wrote:
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


Dec 15 '05 #2

P: n/a
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.
--
Phil Wilson [MVP Windows Installer]
----
"Kenneth Jonsson" <Ke************@discussions.microsoft.com> wrote in
message news:0C**********************************@microsof t.com...
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

Dec 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.