我正在为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>
有人能指出正确的语法是什么吗?
谢谢! Laurent