diff --git a/windows/vencord_installer.bat b/windows/vencord_installer.bat index 640ce6d..6a0d8c0 100644 --- a/windows/vencord_installer.bat +++ b/windows/vencord_installer.bat @@ -12,7 +12,8 @@ PowerShell -Command "" ^ "$file = 'vencord.exe';" ^ "$outfile = Join-Path -Path $env:TEMP -ChildPath $file;" ^ "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ - "Start-Process -NoNewWindow $outfile '-install'" + "Start-Process -NoNewWindow $outfile '-install';" ^ + "Remove-Item -Force $outfile" IF NOT "%1"=="yes" ( :: Restart Discord diff --git a/windows11.bat b/windows11.bat index 35bcb32..2ae0765 100644 --- a/windows11.bat +++ b/windows11.bat @@ -166,7 +166,9 @@ PowerShell -Command "" ^ "$shortcut = '%APPDATA%\Microsoft\Windows\Start Menu\Programs\W10Privacy.lnk';" ^ "$bytes = [System.IO.File]::ReadAllBytes($shortcut);" ^ "$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 ECHO Geek Uninstaller... @@ -193,7 +195,8 @@ PowerShell -Command "" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\LosslessCut.lnk');" ^ "$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 InstallLocation /t REG_SZ /d "%ProgramFiles%\LosslessCut" @@ -211,7 +214,8 @@ PowerShell -Command "" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\DSR.lnk');" ^ "$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 InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\DSR" @@ -222,13 +226,15 @@ CMD /c "!local!\vencord_installer.bat" yes :: Install OpenTabletDriver ECHO OpenTabletDriver... PowerShell -Command "" ^ - "Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile '%TEMP%\OpenTabletDriver.win-x64.zip';" ^ - "Expand-Archive -Path '%TEMP%\OpenTabletDriver.win-x64.zip' -DestinationPath '%ProgramFiles%\OpenTabletDriver' -Force;" ^ + "$archive = '%TEMP%\OpenTabletDriver.win-x64.zip';" ^ + "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;" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\OpenTabletDriver.lnk');" ^ "$Shortcut.TargetPath = '%ProgramFiles%\OpenTabletDriver\OpenTabletDriver.UX.Wpf.exe';" ^ "$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 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.WorkingDirectory = '%LOCALAPPDATA%\VALORANT-rank-yoinker';" ^ :: "$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 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;" ^ "$file = Join-Path -Path '%TEMP%' -ChildPath $exe;" ^ "Invoke-WebRequest -Uri $link -OutFile $file;" ^ - "Start-Process $file '/SUPPRESSMSGBOXES', '/VERYSILENT'" + "Start-Process $file '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^ + "Remove-Item -Force $file" :: Install 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;" ^ :: "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ :: "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 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;" ^ :: "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^ :: "$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 == :: Rename shortcut for Minecraft