我想使用regasm.exe注册.net DLL作为COM对象。我遇到了一个问题,导致intstaller无法正常工作。我相信这是因为我想要注册的文件在我想运行该命令的时候没有进入安装的目录。但是有错误日志没有足够说明安装错误让我知道。任何想法,如何确保文件在运行自定义命令之前移动到“程序文件”?如何使用WiX注册DLL到COM后安装
这里是我使用的是什么:
<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' />
顺便说一句,我得到了上面的工作方式,我想通过用“Installed”替换前几行中的“REMOVE”一词。 – Jono 2009-09-15 15:50:31