我正在为MVVM Light安装一个安装程序(MSI,Wix)并遇到问题.我需要在安装和卸载时运行devenv.exe/setup以将模板添加/删除到New Project菜单.虽然我们在安装时确定了语法,但我们无法找到在卸载时运行此语法的正确语法.
这就是我们所拥有的:
<InstallExecuteSequence>
<Custom Action='UpdateVS2010Templates'
After='InstallFiles'>VS2010EXISTS</Custom>
<Custom Action='UpdateVS2010TemplatesUninstall'
After='RemoveFiles'>REMOVE = "All"</Custom>
</InstallExecuteSequence>
Run Code Online (Sandbox Code Playgroud)
同
<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>
Run Code Online (Sandbox Code Playgroud)
任何人都可以指出正确的语法是什么?
谢谢!洛朗
这是WiX附带的功能.将所有创作和您的自定义RegistrySearch替换为:
<CustomActionRef Id="VS2010Setup" />
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
850 次 |
| 最近记录: |