为什么 Windows Installer 在删除过程中不会使用 .msi 文件中的 UI? [英] Why won't Windows Installer use the UI in the .msi file during removal?

查看:26
本文介绍了为什么 Windows Installer 在删除过程中不会使用 .msi 文件中的 UI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人能够让 Windows Installer 在删除过程中使用 InstallUISequence 表?

Has anyone been able to get Windows Installer to use the InstallUISequence table during removal?

我从 Visual Studio msi 生成器生成的 MSI 文件开始,将其反编译为 WiX 源代码并手工制作,但在删除过程中我无法让安装程序使用我的 UI.它坚持使用 Windows Installer 提供的默认 UI.

I started with an MSI file produced by the Visual Studio msi builder, decompiled it into WiX source code and handcrafted it, but I cannot get the installer to use my UI during removal. It insists on using a default UI provided by Windows Installer.

我还分析了几个 MSI 文件,但一直找不到 Windows Installer 在删除过程中使用提供的 UI 的位置.

I have also analyzed several MSI files, and I have been unable to find one where Windows Installer will use the provided UI during removal.

我在删除过程中捕获了 msiexec 日志,果然,Windows Installer 似乎忽略了 InstallUISequence 表.

I captured the msiexec logs during removal, and sure enough, Windows Installer appears to be ignoring the InstallUISequence table.

似乎 msiexec 在删除期间以最少的 UI 运行.如果我在删除过程中指定/qf 开关(使用完整 UI),则 Windows Installer 会从 .msi 文件中获取 UI.但是,这对普通用户没有帮助,因为她不会从 msiexec 中删除.

It seems that msiexec runs with minimal UI during removal. If I specify the /qf switch (use full UI) during removal, then Windows Installer does take the UI from the .msi file. However, this doesn't help the regular user, because she won't do the removal from msiexec.

有谁知道如何说服 Windows Installer 默认使用 MSI 文件中的 UI?

Does anyone know of a way to convince Windows Installer to use the UI in the MSI file by default?

推荐答案

从添加/删除程序"中删除应用程序时,这将始终以基本"用户界面运行.

When removing an application from Add/Remove Programs, this will always run with "basic" UI.

您不能让卸载以完整的 UI 运行,您能做的最好的事情就是阻止删除并强制人们修改"(它确实与 UI 一起运行)并从那里删除.

You can't make uninstall run with full UI, the best you can do is prevent removal and force people to 'modify' (which does run with UI) and remove from there.

无论您做什么,仍然无法阻止某人右键单击原始 MSI 并选择删除",这将始终使用基本 UI 运行.

Whatever you do, there's still no way to prevent someone right clicking on the original MSI and selecting 'Remove', this will always run with basic UI.

这篇关于为什么 Windows Installer 在删除过程中不会使用 .msi 文件中的 UI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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