Skip to content

Commit 8bd5aa9

Browse files
committed
refactor(build-release.yml): fix uninstall issues
1 parent a0c81c6 commit 8bd5aa9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,17 @@ jobs:
105105
106106
[Run]
107107
Filename: "{app}\ServerRegistrationManager.exe"; Parameters: "install ""{app}\FunscriptPreviewHandler.dll"" -codebase"; Flags: runhidden
108-
Filename: "{cmd}"; Parameters: "/c taskkill /im explorer.exe /f && start explorer.exe"; Flags: runhidden postinstall; Description: "Restart Explorer to apply changes"
108+
Filename: "{cmd}"; Parameters: "/c taskkill /im explorer.exe /f && timeout /t 2 && start explorer.exe"; Flags: runhidden postinstall; Description: "Restart Explorer to apply changes"
109109
110110
[UninstallRun]
111111
Filename: "{app}\ServerRegistrationManager.exe"; Parameters: "uninstall ""{app}\FunscriptPreviewHandler.dll"""; Flags: runhidden
112+
Filename: "{cmd}"; Parameters: "/c taskkill /im explorer.exe /f && timeout /t 2 && start explorer.exe"; Flags: runhidden
113+
114+
[UninstallDelete]
115+
Type: files; Name: "{app}\FunscriptPreviewHandler.dll"; DelayIfExists: true
116+
Type: files; Name: "{app}\Newtonsoft.Json.dll"; DelayIfExists: true
117+
Type: files; Name: "{app}\SharpShell.dll"; DelayIfExists: true
118+
Type: dirifempty; Name: "{app}"
112119
"@
113120
114121
Set-Content -Path "installer.iss" -Value $innoScript
@@ -130,6 +137,5 @@ jobs:
130137
bin/Release/FunscriptPreviewHandler.dll
131138
bin/Release/Newtonsoft.Json.dll
132139
bin/Release/SharpShell.dll
133-
bin/Release/ServerRegistrationManager.exe
134140
Output/FunscriptPreviewHandler-Setup.exe
135141
draft: true

0 commit comments

Comments
 (0)