?
Solved

Running RegAsm for an MSI install build with Visual Studio 2008

Posted on 2009-03-30
8
Medium Priority
?
1,976 Views
Last Modified: 2013-11-14
I'm a newbie to Installs in general. I used VIsual Studio 2008 to create an installation for a .Net object that needs to be registered in the system using RegAsm. (It is an Office Add-in.) The install that was created copies all the files correctly, but doesn't run RegAsm.

How do you instruct the MSI to run RegAsm?

Mr. Google didn't seem to know this one... yet.

I suspect there may be additional complications with the security model of Vista, but what I'm mostly interested now is just how to run RegAsm after the MSI copies all the files to where they need to be.

Thanks!! The command line is in the Code.
%SystemRoot%\Microsoft.Net\Framework\v2.0.50727\RegAsm.exe RtdServer.dll /codebase

Open in new window

0
Comment
Question by:KellyTDDGuy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 500 total points
ID: 24028775
Most likely, all you need to do is correctly specify the property "Register" for the assembly - request COM registration.

For more details, look at http://mail.simple-talk.com/content/print.aspx?article=276
0
 

Author Comment

by:KellyTDDGuy
ID: 24029560
In the web page it talks about running Tlbexp. Is there a way to run the Tlbexp other than as a Post Build step on the DLL to install? I try to avoid post build steps when I can as they are somewhat difficult to maintain.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24029633
You run Tlbexp manually, produce the .tlb file, then include the resulting .tlb file in your installation.
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 

Author Comment

by:KellyTDDGuy
ID: 24029694
But if I change the interface, I have to run it again, right? I might not remember to do so at the appropriate time, leading to hard-to-understand issues later. Or am I missing something?

-Kelly
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24029798
> But if I change the interface, I have to run it again, right?

right. I thought you mentioned post-build of the setup project; if you meant instead post-build of the assembly itself, then yes, this is reasonable. You can probably specify it in the project properties/compile/build events.
0
 

Author Comment

by:KellyTDDGuy
ID: 24029835
No, I meant in the post build of the assembly itself. I was just wondering if there was a property to instruct the build process to emit a tlb file, rather than having to do the post build step.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 24030634
I would look at the available switches of the command-line compiler. If compiler can do that, it probably would be one of the options.
0
 

Author Closing Comment

by:KellyTDDGuy
ID: 31567491
I suspected it should be easy... This url is similar to the one you pointed to, but had a bit more information and was better written.
http://www.simple-talk.com/dotnet/visual-studio/build-and-deploy-a-.net-com-assembly/

Thanks for your help. I have it working now!

-Kelly
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question