From 282b8495a586ffa34e23e572ebb6da492a7fc214 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 22 Jan 2024 16:46:47 +0100 Subject: [PATCH 1/2] Install NOWT instead of VRY --- windows11.bat | 45 +++++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/windows11.bat b/windows11.bat index b07388c..35bcb32 100644 --- a/windows11.bat +++ b/windows11.bat @@ -250,25 +250,34 @@ ECHO Setting up OpenTabletDriver... XCOPY "%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-main.json" "%LOCALAPPDATA%\OpenTabletDriver\settings.json" /-I /Y :: Install VALORANT rank yoinker -ECHO 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" + +:: Install NOWT +ECHO NOWT... 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" + "$exe = 'NOWT-Installer.exe';" ^ + "$link = 'https://github.com/pwall2222/NOWT/releases/latest/download/' + $exe;" ^ + "$file = Join-Path -Path '%TEMP%' -ChildPath $exe;" ^ + "Invoke-WebRequest -Uri $link -OutFile $file;" ^ + "Start-Process $file '/SUPPRESSMSGBOXES', '/VERYSILENT'" :: Install Deceive ECHO Deceive... From 5b1f1cbbd6bd72c0bf493f85a19e7b24ca89fa78 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 23 Jan 2024 08:42:05 +0100 Subject: [PATCH 2/2] fix vencord installer --- windows/vencord_installer.bat | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/windows/vencord_installer.bat b/windows/vencord_installer.bat index fb5e475..640ce6d 100644 --- a/windows/vencord_installer.bat +++ b/windows/vencord_installer.bat @@ -12,8 +12,7 @@ PowerShell -Command "" ^ "$file = 'vencord.exe';" ^ "$outfile = Join-Path -Path $env:TEMP -ChildPath $file;" ^ "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ - "cd $env:TEMP;" ^ - "ECHO 1| & $outfile -install" + "Start-Process -NoNewWindow $outfile '-install'" IF NOT "%1"=="yes" ( :: Restart Discord