From 07ab009f2b63ebd7a42defa5ce7e847c98208fcf Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 May 2023 13:31:42 +0200 Subject: [PATCH] Download geek uninstaller to program files and add a shortcut --- windows11.bat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/windows11.bat b/windows11.bat index fae21d8..fc21250 100644 --- a/windows11.bat +++ b/windows11.bat @@ -123,7 +123,11 @@ wsl --unregister Ubuntu :: Install Geek Uninstaller PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^ "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 == "%ProgramFiles%\Mozilla Firefox\firefox.exe"