在 Wix 中卸载后运行 devve.exe/setup [英] Running devenve.exe /setup after uninstall in Wix

查看:11
本文介绍了在 Wix 中卸载后运行 devve.exe/setup的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为 MVVM Light 开发安装程序(MSI、Wix),但遇到了问题.我需要在安装和卸载时运行 devenv.exe/setup 以将模板添加/删除到新建项目"菜单.虽然我们在安装时确定了语法,但我们无法找到在卸载时运行它的正确语法.

I am working on an installer (MSI, Wix) for MVVM Light and have an issue. I need to run devenv.exe /setup on install and on uninstall to add/remove templates to the New Project menu. While we nailed the syntax on install, we are unable to find the correct syntax to run this on uninstall.

这就是我们所拥有的:

<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>

谁能指出正确的语法是什么?

Can anyone indicate what the correct syntax would be?

谢谢!洛朗

推荐答案

这是 WiX 附带的功能.将所有创作和您的自定义 RegistrySearch 替换为:

This is functionality that comes with WiX. Replace all that authoring and your custom RegistrySearch with:

<CustomActionRef Id="VS2010Setup" />

这篇关于在 Wix 中卸载后运行 devve.exe/setup的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆