这看起来真的很奇怪。我安装了一个程序(通过 WiX 安装程序),我正在尝试以编程方式卸载它(使用 c#),所以我使用 msiexec.exe /x{product-code-GUID}。该程序已卸载,但仍显示在控制面板中(添加/删除程序)。当我查看注册表时,我在 HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ 下看到了该程序,但它不在该产品作为其产品代码的 GUID 下。它位于一个看似随机的 GUID 下,甚至在 .msi 中都不存在。任何人都知道为什么以及如何知道 GUID 是什么,以便我可以以编程方式将其删除?
我想我可以安装我需要卸载和检查注册表并使用那里的 GUID 的每个版本。这会起作用,但我想了解为什么 GUID 与产品代码不匹配。
太平洋时间 2-15-19 上午 9:21 更新:
好的 - 我记录了卸载,这是日志的结尾。它似乎已经成功完成,但它仍然出现在控制面板中:
MSI (s) (10:E4) [09:16:22:812]: Note: 1: 1724
MSI (s) (10:E4) [09:16:22:812]: Product: Product Name -- Removal completed successfully.
MSI (s) (10:E4) [09:16:22:812]: Windows Installer removed the product.
Product Name: Product Name. Product Version: 1.21.4. Product Language: 1033.
Manufacturer: . Removal success or error status: 0.
MSI (s) (10:E4) [09:16:22:870]: Deferring clean up of packages/files, if any
exist
MSI (s) (10:E4) [09:16:22:870]: MainEngineThread is returning 0
MSI (s) (10:80) [09:16:22:871]: RESTART MANAGER: Session closed.
MSI (s) (10:80) [09:16:22:871]: No System Restore sequence number for this
installation.
=== Logging stopped: 2/15/2019 9:16:22 ===
MSI (s) (10:80) [09:16:22:892]: User policy value 'DisableRollback' is 0
MSI (s) (10:80) [09:16:22:892]: Machine policy value 'DisableRollback' is 0
MSI (s) (10:80) [09:16:22:892]: Incrementing counter to disable shutdown.
Counter after increment: 0
MSI (s) (10:80) [09:16:22:892]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (10:80) [09:16:22:894]: Note: 1: 2265 2: 3: -2147287035
MSI (s) (10:80) [09:16:22:894]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (10:80) [09:16:22:894]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (10:80) [09:16:22:894]: Post-install cleanup: removing installer file 'C:\Windows\Installer\c8de6843.msi'
MSI (s) (10:80) [09:16:22:896]: Post-install cleanup: removing installer file 'C:\Windows\Installer\{2DE751D3-33F4-4C3E-BD12-63E7F7F0A3C9}\icon.ico'
MSI (s) (10:80) [09:16:22:896]: Post-install cleanup: removing installer folder 'C:\Windows\Installer\{2DE751D3-33F4-4C3E-BD12-63E7F7F0A3C9}\' (if empty)
MSI (s) (10:80) [09:16:22:896]: Note: 1: 2318 2:
MSI (s) (10:80) [09:16:22:897]: Destroying RemoteAPI object.
MSI (s) (10:B4) [09:16:22:897]: Custom Action Manager thread ending.
MSI (c) (78:7C) [09:16:22:898]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (78:7C) [09:16:22:898]: MainEngineThread is returning 0
=== Verbose logging stopped: 2/15/2019 9:16:22 ===