我已經構建了一個包含自定義託管引導程序應用程序的WiX捆綁軟件,並且沒有意識到我必須實施用於卸載的邏輯。如何強制卸載已損壞的Wix捆綁軟件
現在我已經安裝了一個不能卸載的軟件包版本。
是否有一個乾淨的方法來刪除此捆綁?我已經嘗試在C:\ ProgramData \ Package Cache文件夾中找到緩存的包.exe,並將其替換爲固定版本,但不幸的是,它仍然不會實際卸載,並且不會從已安裝的程序視圖中刪除條目在控制面板中。
當我檢查該更新包中的MSI日誌文件,unistallation過程中,我看到鉸像這樣的句子:
[1014:1B44][2016-08-08T01:13:02]i300: Apply begin
[1014:1B44][2016-08-08T01:13:02]i010: Launching elevated engine process.
[1014:1B44][2016-08-08T01:13:06]i011: Launched elevated engine process.
[1014:1B44][2016-08-08T01:13:06]i012: Connected to elevated engine.
[10F8:1AD4][2016-08-08T01:13:06]i358: Pausing automatic updates.
[10F8:1AD4][2016-08-08T01:13:12]w308: Automatic updates could not be paused due to error: 0x80070422. Continuing...
[10F8:1AD4][2016-08-08T01:13:12]i360: Creating a system restore point.
[10F8:1AD4][2016-08-08T01:13:16]i361: Created a system restore point.
[10F8:1AD4][2016-08-08T01:13:16]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{598ba570-f8c8-43c5-8aa9-b7d26f3e6124}, options: 0x0, disable resume: No
[10F8:1AD4][2016-08-08T01:13:16]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{598ba570-f8c8-43c5-8aa9-b7d26f3e6124}, resume: Active, restart initiated: No, disable resume: No
[10F8:1AD4][2016-08-08T01:13:16]i329: Removed package dependency provider: {27C17010-A6C4-4087-8EB7-8DCB45DC7D7E}, package: MyPackage1
[10F8:1AD4][2016-08-08T01:13:16]i326: Removed dependency: {598ba570-f8c8-43c5-8aa9-b7d26f3e6124} on package provider: {C12FA53F-22FA-4979-8C63-0B6850F59A16}, package MyPackage2
[10F8:1AD4][2016-08-08T01:13:16]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{598ba570-f8c8-43c5-8aa9-b7d26f3e6124}, resume: None, restart: None, disable resume: No
[10F8:1AD4][2016-08-08T01:13:16]i352: Removing cached bundle: {598ba570-f8c8-43c5-8aa9-b7d26f3e6124}, from path: C:\ProgramData\Package Cache\{598ba570-f8c8-43c5-8aa9-b7d26f3e6124}\
[10F8:1AD4][2016-08-08T01:13:16]w354: Unable to remove cached bundle: {598ba570-f8c8-43c5-8aa9-b7d26f3e6124}, from path: C:\ProgramData\Package Cache\{598ba570-f8c8-43c5-8aa9-b7d26f3e6124}\, reason: 0x80070003. Continuing...
[10F8:1AD4][2016-08-08T01:13:16]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{598ba570-f8c8-43c5-8aa9-b7d26f3e6124}, resume: None, restart initiated: No, disable resume: No
[1014:1B44][2016-08-08T01:13:16]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No
在虛擬機環境中測試安裝程序的主要原因之一=] –
@BrianSutherland感謝您提供的*富有洞察力的*評論 - 足夠有趣我在虛擬機中測試但忘記了快照 –