This commit is contained in:
Mylloon 2023-11-07 04:19:43 +01:00
parent d90cfe53ee
commit 378d757522
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -300,6 +300,27 @@ RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Mine
:: "$exe = $env:TEMP + '\' + $file.Substring(0, $file.Length - 3) + 'exe';" ^
:: "Start-Process $exe /S"
:: === Install VALORANT rank yoinker ==
ECHO VALORANT rank yoinker...
PowerShell -Command "" ^
"$repo = 'zayKenyon/VALORANT-rank-yoinker';" ^
"$releases = \"https://api.github.com/repos/$repo/releases\";" ^
"$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name;" ^
"$file = \"VALORANT-rank-yoinker_$tag.zip\";" ^
"$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^
"$archive = 'vry.zip';" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"cd $env:TEMP;" ^
"Expand-Archive -Path $archive -DestinationPath '%LOCALAPPDATA%\VALORANT-rank-yoinker' -Force;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\VRY.lnk');" ^
"$Shortcut.WorkingDirectory = '%LOCALAPPDATA%\VALORANT-rank-yoinker';" ^
"$Shortcut.TargetPath = '%LOCALAPPDATA%\VALORANT-rank-yoinker\vry.exe';" ^
"$Shortcut.Save()"
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"
:: Setup WindowsAutoNightMode
ECHO WindowsAutoNightMode configuration...
MKDIR %APPDATA%\AutoDarkMode 2>NUL