我想使用regasm.exe将一个.net dll注册为COM对象。我遇到了一个问题,导致安装程序无法正常工作。我认为这是因为我想要注册的文件在我运行命令之前还没有到达安装目录。但错误日志并没有提供足够的信息让我知道安装错误的原因。有什么办法可以确保在运行自定义命令之前将文件移动到“program files”吗?
以下是我正在使用的内容:
以下是我正在使用的内容:
<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' />