473,394 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Finding RegAsm on target computer when deploying an assembly

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
2 2872
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Kevin Flanagan | last post by:
This can be reproduced with VS.NET as follows. Create a new ATL project with default wizard settings (dll, attributed). To the 'module' attribute, add a specifier 'version = "1.10" ' alongside the...
2
by: Andy Bates | last post by:
Hi - I have a C# .NET assembly that exposes a COM interface (basically has an interface and class with Guid attributes). If I compile this under VS.NET (with the "Register for COM Interop"...
1
by: Dev | last post by:
Good morning sirs, I'm new on deploying .NET application, and now I need to deploy one. I will try myself to find information about the installing of the framework (if you have some...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, TlbExp.exe and Regasm.exe tools aid us in exporting assembly information to a type library so that non .Net Applications or unmanaged code use this type library information to call...
0
by: sureshmylavarapu | last post by:
Hi all, I have an assembly dll. while trying to register it using regasm regasm x:\source\qryserver\NVserver\bin\debug\NVServer.dll. I had successfully registered the same on other machines,...
2
by: xamman | last post by:
hi there, i am trying to use a .NET assembly from a Cscript.exe .vbs (i.e. from COM) and could not get my .vbs to use my .net dll (gives a 'file not found error') unless i used the /codebase...
4
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I am debugging and learning MSDN C# COM server sample. http://msdn2.microsoft.com/en-us/library/aa645738(vs.71).aspx I am using Regasm to generate Windows Registry scripts,...
3
by: Lou | last post by:
I know I can make an ActiveX dll in .NET and it uses interop. So I end up with 2 files, the .dll and the interop file. I also know I need to use Regasm or something like that to register the .dll...
1
by: sharadjoshi.bengaluru | last post by:
Hi, As per my knowledge, to deploy an assembly in GAC of local PC, we use the gacutil. My question is if we wish to deploy our assembly in a target pc and also wish that the assembly appears in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.