We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

dcorbitt
Posts: 6
Joined: Wed Jan 08, 2014 11:09 pm

RegAsm

I’d like to understand better how to use RegAsm.

I have both the dll and tlb files, and I would typically register with a commandline like this:

PATH\Regasm.exe APPPATH\OBJECTNAME.dll /tlb:APPPATH\OBJECTNAME.tlb /codebase

I thought one option would be under “Files and Folders,” rt-click on the DLL and choose properties, then Registration tab, but I couldn’t tell from the help file if any option handled my specific RegAsm parameters. (RegAsm has more available parameters than there are options in that window, and I couldn't determine the mapping, so to speak.)

As an alternate approach, I tried creating a custom action, of type “Launch exe with working directory,” but I couldn’t get it to execute sequentially after copying the files, so that it was failing to register because the files weren't yet there. I chose as my Execution Time, “After the system has been successfully modified,” and placed it in the “Install Execution Stage” after “Add Resources.” For file path, I used
[WindowsFolder]Microsoft.NET\Framework\v4.0.30319\RegAsm.exe
For commandline,
"[SubFolder_Dir]Company.Product.dllname.dll /tlb:[SubFolder_Dir]Company.Product.dllname.tlb /codebase"
dcorbitt
Posts: 6
Joined: Wed Jan 08, 2014 11:09 pm

Re: RegAsm

I created a custom action of type "Launch File" for RegAsm and moved it to after "Finish Execution" under "Install Execution Stage." That seems to have worked.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: RegAsm

Hello,

I'm glad you got this working. If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”