add deceive

This commit is contained in:
Mylloon 2023-11-07 04:25:47 +01:00
parent 378d757522
commit 8baef13d0c
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -321,6 +321,21 @@ PowerShell -Command "" ^
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"
:: === Install Deceive ==
ECHO Deceive...
MKDIR "%ProgramFiles%\Deceive" 2>NUL
PowerShell -Command "" ^
"$exe = 'Deceive.exe';" ^
"$link = 'https://github.com/molenzwiebel/Deceive/releases/latest/download/' + $exe;" ^
"$outfile = Join-Path -Path '%ProgramFiles%\Deceive' -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Deceive.lnk');" ^
"$Shortcut.TargetPath = \"%ProgramFiles%\Deceive\$exe\";" ^
"$Shortcut.Save()"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v DisplayName /t REG_SZ /d "Deceive"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Deceive"
:: Setup WindowsAutoNightMode :: Setup WindowsAutoNightMode
ECHO WindowsAutoNightMode configuration... ECHO WindowsAutoNightMode configuration...
MKDIR %APPDATA%\AutoDarkMode 2>NUL MKDIR %APPDATA%\AutoDarkMode 2>NUL