download topgrade

This commit is contained in:
Mylloon 2023-11-05 14:35:29 +01:00
parent d41df2819a
commit 79cb5da7be
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -21,6 +21,7 @@ fltmc >NUL 2>&1 || (
) )
:: Executed as admin user :: Executed as admin user
ECHO Register entry...
:: === Right click of Windows 10 == :: === Right click of Windows 10 ==
REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
@ -73,6 +74,7 @@ SET ^"cpp_libs=^
Microsoft.VCRedist.2013.x86 Microsoft.VCRedist.2013.x64 ^ Microsoft.VCRedist.2013.x86 Microsoft.VCRedist.2013.x64 ^
Microsoft.VCRedist.2015+.x86 Microsoft.VCRedist.2015+.x64" Microsoft.VCRedist.2015+.x86 Microsoft.VCRedist.2015+.x64"
ECHO C++ libraries...
for %%i in (!cpp_libs!) do ( for %%i in (!cpp_libs!) do (
!pmi! %%i !pmi! %%i
) )
@ -84,6 +86,7 @@ SET ^"net_libs=^
Microsoft.DotNet.DesktopRuntime.6 Microsoft.DotNet.SDK.6 ^ Microsoft.DotNet.DesktopRuntime.6 Microsoft.DotNet.SDK.6 ^
Microsoft.DotNet.DesktopRuntime.7 Microsoft.DotNet.SDK.7" Microsoft.DotNet.DesktopRuntime.7 Microsoft.DotNet.SDK.7"
ECHO .NET libraries...
for %%i in (!net_libs!) do ( for %%i in (!net_libs!) do (
!pmi! %%i !pmi! %%i
) )
@ -92,6 +95,7 @@ for %%i in (!net_libs!) do (
SET ^"java_jdk=^ SET ^"java_jdk=^
EclipseAdoptium.Temurin.8.JDK EclipseAdoptium.Temurin.17.JDK" EclipseAdoptium.Temurin.8.JDK EclipseAdoptium.Temurin.17.JDK"
ECHO JDK...
for %%i in (!java_jdk!) do ( for %%i in (!java_jdk!) do (
!pmi! %%i !pmi! %%i
) )
@ -105,6 +109,7 @@ SET ^"apps=^
OBSProject.OBSStudio Xournal++.Xournal++ Microsoft.PowerToys ^ OBSProject.OBSStudio Xournal++.Xournal++ Microsoft.PowerToys ^
OpenWhisperSystems.Signal KDE.KDEConnect Armin2208.WindowsAutoNightMode" OpenWhisperSystems.Signal KDE.KDEConnect Armin2208.WindowsAutoNightMode"
ECHO Apps...
for %%i in (!apps!) do ( for %%i in (!apps!) do (
!pmi! %%i !pmi! %%i
) )
@ -114,15 +119,18 @@ SET ^"games=^
Peppy.Osu! RiotGames.LeagueOfLegends.EUW RiotGames.Valorant.EU Valve.Steam ^ Peppy.Osu! RiotGames.LeagueOfLegends.EUW RiotGames.Valorant.EU Valve.Steam ^
HeroicGamesLauncher.HeroicGamesLauncher PrismLauncher.PrismLauncher" HeroicGamesLauncher.HeroicGamesLauncher PrismLauncher.PrismLauncher"
ECHO Games...
for %%i in (!games!) do ( for %%i in (!games!) do (
!pmi! %%i !pmi! %%i
) )
:: === Install WSL == :: === Install WSL ==
ECHO WSL...
wsl --install --no-launch wsl --install --no-launch
wsl --unregister Ubuntu wsl --unregister Ubuntu
:: === Install Geek Uninstaller == :: === Install Geek Uninstaller ==
ECHO Geek Uninstaller...
PowerShell -Command "" ^ PowerShell -Command "" ^
"$archive = '%TEMP%\geek.zip';" ^ "$archive = '%TEMP%\geek.zip';" ^
"Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^ "Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^
@ -135,6 +143,7 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v Di
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Geek Uninstaller" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Geek Uninstaller"
:: === Install LosslessCut == :: === Install LosslessCut ==
ECHO LosslessCut...
PowerShell -Command "" ^ PowerShell -Command "" ^
"$archive = 'LosslessCut-win-x64.7z';" ^ "$archive = 'LosslessCut-win-x64.7z';" ^
"$link = 'https://github.com/mifi/lossless-cut/releases/latest/download/' + $archive;" ^ "$link = 'https://github.com/mifi/lossless-cut/releases/latest/download/' + $archive;" ^
@ -150,6 +159,7 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\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"
:: === Install DSR == :: === Install DSR ==
ECHO DSR...
PowerShell -Command "" ^ PowerShell -Command "" ^
"$archive = '%TEMP%\dsr.zip';" ^ "$archive = '%TEMP%\dsr.zip';" ^
"Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/dsr/releases/download/1.4.0/dsr-win32-x64-1.4.0.zip -OutFile $archive;" ^ "Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/dsr/releases/download/1.4.0/dsr-win32-x64-1.4.0.zip -OutFile $archive;" ^
@ -168,6 +178,7 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr" /f /v Ins
TIMEOUT 5 TIMEOUT 5
TASKKILL /im firefox.exe /F TASKKILL /im firefox.exe /F
ECHO Firefox configuration...
FOR /F %%i IN ('dir /B /S ^"%APPDATA%\Mozilla\Firefox\Profiles\*.default-release^"') DO SET "vbc=%%i" FOR /F %%i IN ('dir /B /S ^"%APPDATA%\Mozilla\Firefox\Profiles\*.default-release^"') DO SET "vbc=%%i"
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.mozilla/firefox/user.js -OutFile '!vbc!\user.js'" PowerShell -Command "Invoke-WebRequest -Uri !repo!/.mozilla/firefox/user.js -OutFile '!vbc!\user.js'"
@ -182,6 +193,7 @@ ECHO Installe les pilotes, pour connaitre la liste des pilotes, utilise UserDiag
ECHO Pour NVidia, utilise NVC et DDU ECHO Pour NVidia, utilise NVC et DDU
:: === W10Privacy == :: === W10Privacy ==
ECHO W10Privacy...
PowerShell -Command "Invoke-WebRequest -Uri !repo!/W10Privacy.ini -OutFile '%HOMEPATH%\Downloads\W10Privacy.ini'" PowerShell -Command "Invoke-WebRequest -Uri !repo!/W10Privacy.ini -OutFile '%HOMEPATH%\Downloads\W10Privacy.ini'"
ECHO Ensuite, utilise W10Privacy avec le fichier present dans %HOMEPATH%\Downloads. ECHO Ensuite, utilise W10Privacy avec le fichier present dans %HOMEPATH%\Downloads.
PowerShell -Command "" ^ PowerShell -Command "" ^
@ -196,8 +208,8 @@ PowerShell -Command "" ^
"[System.IO.File]::WriteAllBytes($shortcut, $bytes)" "[System.IO.File]::WriteAllBytes($shortcut, $bytes)"
:: === Modules == :: === Modules ==
PowerShell -Command "Install-PackageProvider -Name NuGet -Force" :: PowerShell -Command "Install-PackageProvider -Name NuGet -Force"
PowerShell -Command "Install-Module -Name PSWindowsUpdate -Force" :: PowerShell -Command "Install-Module -Name PSWindowsUpdate -Force"
:: === Scripts == :: === Scripts ==
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/ctmpf.bat -OutFile '%HOMEPATH%\Documents\Local\ctmpf.bat'" PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/ctmpf.bat -OutFile '%HOMEPATH%\Documents\Local\ctmpf.bat'"
@ -210,6 +222,7 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/vencord_installer.bat
CMD /c "%HOMEPATH%\Documents\Local\vencord_installer.bat" yes CMD /c "%HOMEPATH%\Documents\Local\vencord_installer.bat" yes
:: === Install OpenTabletDriver == :: === Install 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'" ^ "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'" ^ "Expand-Archive -Path '%TEMP%\OpenTabletDriver.win-x64.zip' -DestinationPath '%ProgramFiles%\OpenTabletDriver'" ^
@ -232,6 +245,20 @@ PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/VoiDPlugin
:: Extract plugin :: Extract plugin
PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPath '%LOCALAPPDATA%\OpenTabletDriver\Plugins\Windows Ink'" PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPath '%LOCALAPPDATA%\OpenTabletDriver\Plugins\Windows Ink'"
:: === Install Topgrade ==
ECHO Topgrade...
PowerShell -Command "" ^
"$repo = 'topgrade-rs/topgrade';" ^
"$releases = \"https://api.github.com/repos/$repo/releases\";" ^
"$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name;" ^
"$file = \"topgrade-$tag-x86_64-pc-windows-msvc.zip\";" ^
"$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^
"$archive = 'topgrade.zip';" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"cd $env:TEMP;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Topgrade'"
:: === Miscellaneous == :: === Miscellaneous ==
:: Rename shortcut for Minecraft :: Rename shortcut for Minecraft
RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Minecraft.lnk RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Minecraft.lnk
@ -250,10 +277,12 @@ RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Mine
:: powercfg -requestsoverride process obs64.exe display system awaymode :: powercfg -requestsoverride process obs64.exe display system awaymode
:: Setup WindowsAutoNightMode :: Setup WindowsAutoNightMode
ECHO WindowsAutoNightMode configuration...
MKDIR %APPDATA%\AutoDarkMode 2>NUL MKDIR %APPDATA%\AutoDarkMode 2>NUL
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/WindowsAutoNightMode/config.yaml -OutFile '%APPDATA%\AutoDarkMode\config.yaml'" PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/WindowsAutoNightMode/config.yaml -OutFile '%APPDATA%\AutoDarkMode\config.yaml'"
"%LOCALAPPDATA%\Programs\AutoDarkMode\AutoDarkModeApp.exe" "%LOCALAPPDATA%\Programs\AutoDarkMode\AutoDarkModeApp.exe"
ECHO ""
ECHO Fais un tour des parametres Windows, apres avoir fait toutes les mises a jour disponible sur le PC. ECHO Fais un tour des parametres Windows, apres avoir fait toutes les mises a jour disponible sur le PC.
ECHO Enfin, redemarre l'ordinateur ECHO Enfin, redemarre l'ordinateur