diff --git a/windows/blockthespot.bat b/windows/blockthespot.bat index fd58cc6..bbb0b92 100644 --- a/windows/blockthespot.bat +++ b/windows/blockthespot.bat @@ -28,5 +28,5 @@ DEL %HOMEPATH%\Desktop\Spotify.lnk 2>NUL ie4uinit -show ECHO Suppression du raccourci du bureau -IF NOT "%1"=="noskip" PAUSE +IF NOT "%1"=="yes" PAUSE EXIT /B diff --git a/windows/fix_obs_shortcut.bat b/windows/fix_obs_shortcut.bat index c55c608..e552542 100644 --- a/windows/fix_obs_shortcut.bat +++ b/windows/fix_obs_shortcut.bat @@ -15,5 +15,5 @@ PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^ "$Shortcut.Arguments = '--profile ""ANRI GAMING (PROFIL)"""" --multi';" ^ "$Shortcut.Save()" -IF NOT "%1"=="noskip" PAUSE +IF NOT "%1"=="yes" PAUSE EXIT /B diff --git a/windows/vencord_installer.bat b/windows/vencord_installer.bat new file mode 100644 index 0000000..152d104 --- /dev/null +++ b/windows/vencord_installer.bat @@ -0,0 +1,20 @@ +@ECHO OFF + +ECHO Ferme Discord +TASKKILL /im Discord.exe /F + +ECHO Installe Vencord +PowerShell -Command "$link = 'https://github.com/Vencord/Installer/releases/latest/download/VencordInstallerCli.exe';" ^ + "$file = 'vencord.exe';" ^ + "$outfile = Join-Path -Path $env:TEMP -ChildPath $file;" ^ + "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ + "cd $env:TEMP;" ^ + "ECHO 1| & $outfile -install" + +IF NOT "%1"=="yes" ( + :: Restart Discord + "%LOCALAPPDATA%\Discord\Update.exe" + + PAUSE +) +EXIT /B diff --git a/windows11.bat b/windows11.bat index 5173b30..0afdcd6 100644 --- a/windows11.bat +++ b/windows11.bat @@ -10,7 +10,7 @@ fltmc >NUL 2>&1 || ( :: === Install Spotify == PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'" DEL "%APPDATA%\Spotify" - ECHO Y| CMD /c "%HOMEPATH%\Documents\Local\blockthespot.bat" noskip + ECHO Y| CMD /c "%HOMEPATH%\Documents\Local\blockthespot.bat" yes PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue" :: Start as administrator @@ -114,20 +114,11 @@ for %%i in (!games!) do ( !pmi! %%i ) -:: Install Vencord -TASKKILL /im Discord.exe /F -PowerShell -Command "$link = 'https://github.com/Vencord/Installer/releases/latest/download/VencordInstallerCli.exe';" ^ - "$file = 'vencord.exe';" ^ - "$outfile = Join-Path -Path $env:TEMP -ChildPath $file;" ^ - "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ - "cd $env:TEMP;" ^ - "ECHO 1| & $outfile -install" - -:: Install WSL +:: === Install WSL == wsl --install --no-launch wsl --unregister Ubuntu -:: Install Geek Uninstaller +:: === Install Geek Uninstaller == PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^ "Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^ "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Geek Uninstaller';" ^ @@ -138,7 +129,7 @@ PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v DisplayName /t REG_SZ /d "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 == PowerShell -Command "$archive = 'LosslessCut-win-x64.7z';" ^ "$link = 'https://github.com/mifi/lossless-cut/releases/latest/download/' + $archive;" ^ "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^ @@ -152,7 +143,7 @@ PowerShell -Command "$archive = 'LosslessCut-win-x64.7z';" ^ 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" -:: Install DSR +:: === Install DSR == PowerShell -Command "$archive = '%TEMP%\dsr.zip';" ^ "Invoke-WebRequest -Uri https://git.mylloon.fr/attachments/9fa1cf45-ce58-443a-a061-596051405336 -OutFile $archive;" ^ "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\DSR';" ^ @@ -205,6 +196,10 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/ctmpf.bat -OutFile '% PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/update.bat -OutFile '%HOMEPATH%\Documents\Local\update.bat'" PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_nvidia_wsl.bat -OutFile '%HOMEPATH%\Documents\Local\fix_nvidia_wsl.bat'" PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_obs_shortcut.bat -OutFile '%HOMEPATH%\Documents\Local\fix_obs_shortcut.bat'" +PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/vencord_installer.bat -OutFile '%HOMEPATH%\Documents\Local\vencord_installer.bat'" + +:: === Install Vencord == +CMD /c "%HOMEPATH%\Documents\Local\vencord_installer.bat" yes :: === Install OpenTabletDriver == :: Download @@ -235,18 +230,18 @@ PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPa :: Rename shortcut for Minecraft RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Minecraft.lnk -:: Startup OBS replay buffer -PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^ - "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\OBS.lnk');" ^ - "$Shortcut.TargetPath = '%ProgramFiles%\obs-studio\bin\64bit\obs64.exe';" ^ - "$Shortcut.WorkingDirectory = '%ProgramFiles%\obs-studio\bin\64bit';" ^ - "$Shortcut.Arguments = '--disable-missing-files-check --minimize-to-tray " ^ - "--startreplaybuffer --profile ""ReplayBuffer"""" --scene ""ReplayBuffer""""';" ^ - "$Shortcut.Save()" -:: Default shortcut should start default profile -CALL %HOMEPATH%\Documents\Local\fix_obs_shortcut.bat noskip -:: Allow system to go in sleep mode when OBS is running -powercfg -requestsoverride process obs64.exe display system awaymode +:: :: Startup OBS replay buffer +:: PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^ +:: "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\OBS.lnk');" ^ +:: "$Shortcut.TargetPath = '%ProgramFiles%\obs-studio\bin\64bit\obs64.exe';" ^ +:: "$Shortcut.WorkingDirectory = '%ProgramFiles%\obs-studio\bin\64bit';" ^ +:: "$Shortcut.Arguments = '--disable-missing-files-check --minimize-to-tray " ^ +:: "--startreplaybuffer --profile ""ReplayBuffer"""" --scene ""ReplayBuffer""""';" ^ +:: "$Shortcut.Save()" +:: :: Default shortcut should start default profile +:: CALL %HOMEPATH%\Documents\Local\fix_obs_shortcut.bat yes +:: :: Allow system to go in sleep mode when OBS is running +:: powercfg -requestsoverride process obs64.exe display system awaymode :: Setup WindowsAutoNightMode MKDIR %APPDATA%\AutoDarkMode 2>NUL