From 0ccfcb28f283df1e1202d8e9a90e1150171eeca0 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 2 Jul 2024 11:23:44 +0200 Subject: [PATCH] split geek --- windows/installers/geek.bat | 16 ++++++++++++++++ windows11.bat | 13 ++----------- 2 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 windows/installers/geek.bat diff --git a/windows/installers/geek.bat b/windows/installers/geek.bat new file mode 100644 index 0000000..65ef717 --- /dev/null +++ b/windows/installers/geek.bat @@ -0,0 +1,16 @@ +@ECHO OFF + +ECHO Geek Uninstaller... +PowerShell -Command "" ^ + "$archive = '%TEMP%\geek.zip';" ^ + "Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^ + "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Geek Uninstaller' -Force;" ^ + "$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()" +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v DisplayName /t REG_SZ /d "Geek Uninstaller" +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Geek Uninstaller" + +IF NOT "%1"=="yes" PAUSE +EXIT /B diff --git a/windows11.bat b/windows11.bat index 4faf5d0..f4fddd9 100644 --- a/windows11.bat +++ b/windows11.bat @@ -237,17 +237,8 @@ PowerShell -Command "Install-Module -Name PSWindowsUpdate -Force" :: === Geek Uninstaller == -ECHO Geek Uninstaller... -PowerShell -Command "" ^ - "$archive = '%TEMP%\geek.zip';" ^ - "Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^ - "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Geek Uninstaller' -Force;" ^ - "$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()" -REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v DisplayName /t REG_SZ /d "Geek Uninstaller" -REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Geek Uninstaller" +PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/geek.bat -OutFile '%TEMP%\geek.bat'" +CMD /c "%TEMP%\geek.bat" yes :: === LosslessCut ==