Download geek uninstaller to program files and add a shortcut

This commit is contained in:
Mylloon 2023-05-18 13:31:42 +02:00
parent 5004885bc3
commit 07ab009f2b
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -123,7 +123,11 @@ wsl --unregister Ubuntu
:: Install Geek Uninstaller :: Install Geek Uninstaller
PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^ PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^
"Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^ "Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^
"Expand-Archive -Path $archive -DestinationPath $env:HOMEPATH\Documents\Local" "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Geek Uninstaller';" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Geek Uninstaller.lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\Geek Uninstaller\geek.exe';" ^
"$Shortcut.Save()"
:: === Firefox configuration == :: === Firefox configuration ==
"%ProgramFiles%\Mozilla Firefox\firefox.exe" "%ProgramFiles%\Mozilla Firefox\firefox.exe"