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"
FOLLOW US
Get the latest news in Application Packaging