I want to use regasm.exe to register a .net dll as a COM object. I am running into a problem which is causing the intstaller to not work. I believe it is because the file I want to register has not made it to the installed directory by the time I want to run the command. But there error log does not say enough about the install error for me to know. Any ideas, how to make sure the file is moved to "program files" before I run the custom command?
Here is what I am using:
<InstallExecuteSequence>
<Custom Action='comReg' After='InstallFinalize'>NOT REMOVE</Custom>
<Custom Action='comUnreg' Before='RemoveFiles'>REMOVE</Custom>
</InstallExecuteSequence>
<CustomAction Id='comReg' Directory='INSTALLDIR'
ExeCommand='"[WindowsFolder]Microsoft.NET\Framework\v2.0.50727\regasm.exe" "[INSTALLDIR]my.dll"' Return='check' />
<CustomAction Id='comUnreg' Directory='INSTALLDIR' ExeCommand='"[WindowsFolder]Microsoft.NET\Framework\v2.0.50727\regasm.exe" /u "[INSTALLDIR]my.dll"' Return='check' />