Skip to content

Commit 89b9d99

Browse files
committed
refactor(build-release.yml): restart explorer.exe properly
1 parent 9983e82 commit 89b9d99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ 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 && timeout /t 2 && start explorer.exe"; Flags: runhidden postinstall; Description: "Restart Explorer to apply changes"
108+
Filename: "powershell.exe"; Parameters: "-NoProfile -ExecutionPolicy Bypass -Command ""Stop-Process -Name explorer -Force; Start-Sleep -Seconds 2; 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
112+
Filename: "powershell.exe"; Parameters: "-NoProfile -ExecutionPolicy Bypass -Command ""Stop-Process -Name explorer -Force; Start-Sleep -Seconds 2; explorer.exe"""; Flags: runhidden
113113
114114
[UninstallDelete]
115115
Type: files; Name: "{app}\FunscriptPreviewHandler.dll";

0 commit comments

Comments
 (0)