Skip to content

Commit 82866d5

Browse files
Fix Windows installation: add 'REINSTALL=ALL' argument to msiexec for proper reinstallation
1 parent 1588830 commit 82866d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ runs:
9797
$msi = "PowerShell-$($env:REQUESTED_VERSION)-win-x64.msi"
9898
$url = "https://github.com/PowerShell/PowerShell/releases/download/v$($env:REQUESTED_VERSION)/$msi"
9999
Invoke-WebRequest -Uri $url -OutFile $msi -UseBasicParsing
100-
Start-Process msiexec.exe -ArgumentList '/i', $msi, '/quiet', '/norestart', '/force' -Wait
100+
Start-Process msiexec.exe -ArgumentList '/i', $msi, '/quiet', '/norestart', 'REINSTALL=ALL' -Wait

0 commit comments

Comments
 (0)