force move-item

This commit is contained in:
Mylloon 2023-11-05 19:54:27 +01:00
parent 1e1d9d351f
commit 6ea1cb73f5
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -167,7 +167,7 @@ PowerShell -Command "" ^
"$archive = '%TEMP%\dsr.zip';" ^
"Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/dsr/releases/download/1.4.0/dsr-win32-x64-1.4.0.zip -OutFile $archive;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\DSR' -Force;" ^
"Move-Item -Path '%ProgramFiles%\DSR\dsr-win32-x64\*' -Destination '%ProgramFiles%\DSR';" ^
"Move-Item -Path '%ProgramFiles%\DSR\dsr-win32-x64\*' -Destination '%ProgramFiles%\DSR' -Force;" ^
"Remove-Item '%ProgramFiles%\DSR\dsr-win32-x64;'"^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\DSR.lnk');" ^