Skip to content

Commit 3c8c1aa

Browse files
authored
fix: Resolve uninstall failures caused by the $version directory being in use
1 parent e3787cc commit 3c8c1aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bucket/7zip.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
"Codecs",
6060
"Formats"
6161
],
62+
"pre_uninstall": [
63+
"Stop-Process -Name 'explorer' -Force -ErrorAction SilentlyContinue",
64+
"Start-Sleep -Milliseconds 1500"
65+
],
6266
"uninstaller": {
6367
"script": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" *> $null }"
6468
},

0 commit comments

Comments
 (0)