【发布时间】:2016-08-09 10:48:57
【问题描述】:
我正在尝试使用 WIX 安装程序使用 RegAsm 命令注册我的 COM 插件。但我做不到。它对WixNetFxExtension 的NETFRAMEWORK40FULLINSTALLROOTDIR 甚至NETFRAMEWORK40CLIENTINSTALLROOTDIR 显示空白。
这是自定义操作的代码:
<CustomAction Id="RegisterUsingRegAsm" Directory="PROOFIX_ADDIN" Execute="deferred" Impersonate="no" Return="check"
ExeCommand='"[NETFRAMEWORK40FULLINSTALLROOTDIR]regasm.exe" "[PROOFIX_ADDIN]Proofix.View.dll" /codebase' />
当我尝试对路径 C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe 进行硬编码时。它工作正常...
这是序列信息:
<InstallExecuteSequence>
<Custom Action="RegisterUsingRegAsm" Before="InstallFinalize" />
</InstallExecuteSequence>
这是为安装程序生成的日志:
操作:RegisterUsingRegAsm,位置: C:\Users\naveed.butt\AppData\Local\Optimentor\Proofix\,命令: “regasm.exe” “C:\Users\naveed.butt\AppData\Local\Optimentor\Proofix\Proofix.View.dll” /代码库
【问题讨论】:
标签: installation wix setup-project