untested: clean download artefact after use

This commit is contained in:
Mylloon 2024-01-23 10:31:34 +01:00
parent e050d31fe7
commit c5b652c90f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 23 additions and 11 deletions

View file

@ -12,7 +12,8 @@ PowerShell -Command "" ^
"$file = 'vencord.exe';" ^ "$file = 'vencord.exe';" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $file;" ^ "$outfile = Join-Path -Path $env:TEMP -ChildPath $file;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"Start-Process -NoNewWindow $outfile '-install'" "Start-Process -NoNewWindow $outfile '-install';" ^
"Remove-Item -Force $outfile"
IF NOT "%1"=="yes" ( IF NOT "%1"=="yes" (
:: Restart Discord :: Restart Discord

View file

@ -166,7 +166,9 @@ PowerShell -Command "" ^
"$shortcut = '%APPDATA%\Microsoft\Windows\Start Menu\Programs\W10Privacy.lnk';" ^ "$shortcut = '%APPDATA%\Microsoft\Windows\Start Menu\Programs\W10Privacy.lnk';" ^
"$bytes = [System.IO.File]::ReadAllBytes($shortcut);" ^ "$bytes = [System.IO.File]::ReadAllBytes($shortcut);" ^
"$bytes[0x15] = $bytes[0x15] -bor 0x20;" ^ "$bytes[0x15] = $bytes[0x15] -bor 0x20;" ^
"[System.IO.File]::WriteAllBytes($shortcut, $bytes)" "[System.IO.File]::WriteAllBytes($shortcut, $bytes);" ^
"Remove-Item -Force $archive;" ^
"Remove-Item -Force $file"
:: Install Geek Uninstaller :: Install Geek Uninstaller
ECHO Geek Uninstaller... ECHO Geek Uninstaller...
@ -193,7 +195,8 @@ PowerShell -Command "" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\LosslessCut.lnk');" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\LosslessCut.lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\LosslessCut\LosslessCut.exe';" ^ "$Shortcut.TargetPath = '%ProgramFiles%\LosslessCut\LosslessCut.exe';" ^
"$Shortcut.Save()" "$Shortcut.Save();" ^
"Remove-Item -Force $archive"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v DisplayName /t REG_SZ /d "LosslessCut" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v DisplayName /t REG_SZ /d "LosslessCut"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\LosslessCut" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\LosslessCut"
@ -211,7 +214,8 @@ PowerShell -Command "" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\DSR.lnk');" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\DSR.lnk');" ^
"$Shortcut.TargetPath = '%LOCALAPPDATA%\DSR\dsr.exe';" ^ "$Shortcut.TargetPath = '%LOCALAPPDATA%\DSR\dsr.exe';" ^
"$Shortcut.Save()" "$Shortcut.Save();" ^
"Remove-Item -Force $archive"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr" /f /v DisplayName /t REG_SZ /d "DSR" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr" /f /v DisplayName /t REG_SZ /d "DSR"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\DSR" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\DSR"
@ -222,13 +226,15 @@ CMD /c "!local!\vencord_installer.bat" yes
:: Install OpenTabletDriver :: Install OpenTabletDriver
ECHO OpenTabletDriver... ECHO OpenTabletDriver...
PowerShell -Command "" ^ PowerShell -Command "" ^
"Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile '%TEMP%\OpenTabletDriver.win-x64.zip';" ^ "$archive = '%TEMP%\OpenTabletDriver.win-x64.zip';" ^
"Expand-Archive -Path '%TEMP%\OpenTabletDriver.win-x64.zip' -DestinationPath '%ProgramFiles%\OpenTabletDriver' -Force;" ^ "Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile $archive;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\OpenTabletDriver' -Force;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\OpenTabletDriver.lnk');" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\OpenTabletDriver.lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\OpenTabletDriver\OpenTabletDriver.UX.Wpf.exe';" ^ "$Shortcut.TargetPath = '%ProgramFiles%\OpenTabletDriver\OpenTabletDriver.UX.Wpf.exe';" ^
"$Shortcut.WorkingDirectory = '%ProgramFiles%\OpenTabletDriver';" ^ "$Shortcut.WorkingDirectory = '%ProgramFiles%\OpenTabletDriver';" ^
"$Shortcut.Save()" "$Shortcut.Save();" ^
"Remove-Item -Force $archive"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTabletDriver" /f /v DisplayName /t REG_SZ /d "OpenTabletDriver" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTabletDriver" /f /v DisplayName /t REG_SZ /d "OpenTabletDriver"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTabletDriver" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\OpenTabletDriver" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTabletDriver" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\OpenTabletDriver"
@ -266,7 +272,8 @@ XCOPY "%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-main.json" "%LOCALAPPDAT
:: "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\VRY.lnk');" ^ :: "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\VRY.lnk');" ^
:: "$Shortcut.WorkingDirectory = '%LOCALAPPDATA%\VALORANT-rank-yoinker';" ^ :: "$Shortcut.WorkingDirectory = '%LOCALAPPDATA%\VALORANT-rank-yoinker';" ^
:: "$Shortcut.TargetPath = '%LOCALAPPDATA%\VALORANT-rank-yoinker\vry.exe';" ^ :: "$Shortcut.TargetPath = '%LOCALAPPDATA%\VALORANT-rank-yoinker\vry.exe';" ^
:: "$Shortcut.Save()" :: "$Shortcut.Save();" ^
:: "Remove-Item -Force $archive"
:: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\vry" /f /v DisplayName /t REG_SZ /d "VALORANT-rank-yoinker" :: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\vry" /f /v DisplayName /t REG_SZ /d "VALORANT-rank-yoinker"
:: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\vry" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\VALORANT-rank-yoinker" :: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\vry" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\VALORANT-rank-yoinker"
@ -277,7 +284,8 @@ PowerShell -Command "" ^
"$link = 'https://github.com/pwall2222/NOWT/releases/latest/download/' + $exe;" ^ "$link = 'https://github.com/pwall2222/NOWT/releases/latest/download/' + $exe;" ^
"$file = Join-Path -Path '%TEMP%' -ChildPath $exe;" ^ "$file = Join-Path -Path '%TEMP%' -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile $file;" ^ "Invoke-WebRequest -Uri $link -OutFile $file;" ^
"Start-Process $file '/SUPPRESSMSGBOXES', '/VERYSILENT'" "Start-Process $file '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^
"Remove-Item -Force $file"
:: Install Deceive :: Install Deceive
ECHO Deceive... ECHO Deceive...
@ -306,7 +314,8 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v
:: "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^ :: "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
:: "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ :: "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
:: "cd $env:TEMP;" ^ :: "cd $env:TEMP;" ^
:: "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Topgrade' -Force" :: "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Topgrade' -Force;" ^
:: "Remove-Item -Force $outfile"
:: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Topgrade" /f /v DisplayName /t REG_SZ /d "Topgrade" :: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Topgrade" /f /v DisplayName /t REG_SZ /d "Topgrade"
:: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Topgrade" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Topgrade" :: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Topgrade" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Topgrade"
@ -324,7 +333,9 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v
:: "cd $env:TEMP;" ^ :: "cd $env:TEMP;" ^
:: "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^ :: "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^
:: "$exe = $env:TEMP + '\' + $file.Substring(0, $file.Length - 3) + 'exe';" ^ :: "$exe = $env:TEMP + '\' + $file.Substring(0, $file.Length - 3) + 'exe';" ^
:: "Start-Process $exe /S" :: "Start-Process $exe /S;" ^
:: "Remove-Item -Force $outfile;" ^
:: "Remove-Item -Force $exe"
:: === Miscellaneous == :: === Miscellaneous ==
:: Rename shortcut for Minecraft :: Rename shortcut for Minecraft