【发布时间】:2011-07-07 08:24:28
【问题描述】:
我正在为 MVVM Light 安装安装程序(MSI、Wix),但遇到了问题。我需要在安装和卸载时运行 devenv.exe /setup 以将模板添加/删除到新项目菜单。虽然我们在安装时确定了语法,但我们无法找到在卸载时运行它的正确语法。
这就是我们所拥有的:
<InstallExecuteSequence>
<Custom Action='UpdateVS2010Templates'
After='InstallFiles'>VS2010EXISTS</Custom>
<Custom Action='UpdateVS2010TemplatesUninstall'
After='RemoveFiles'>REMOVE = "All"</Custom>
</InstallExecuteSequence>
与
<CustomAction Id="UpdateVS2010Templates"
Impersonate="no"
Execute="deferred"
Directory="INSTALLLOCATION"
ExeCommand='"[VS10INSTALL]\Common7\IDE\DEVENV.EXE" /SETUP'
Return='ignore' >
</CustomAction>
<CustomAction Id="UpdateVS2010TemplatesUninstall"
Impersonate="no"
Execute="deferred"
Directory="INSTALLLOCATION"
ExeCommand='"[VS10INSTALL]\Common7\IDE\DEVENV.EXE" /SETUP'
Return='ignore' >
</CustomAction>
谁能指出正确的语法是什么?
谢谢! 洛朗
【问题讨论】:
-
更多信息:我尝试执行一个虚拟的自定义操作(MessageBox.Show 几乎),它适用于安装,但不适用于卸载。所以实际上没有执行的是自定义操作,而不是设置命令本身。