Merge branch 'main' of git.mylloon.fr:Anri/confOS

This commit is contained in:
Mylloon 2023-08-18 03:32:08 +02:00
commit c9492b483f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 43 additions and 28 deletions

View file

@ -28,5 +28,5 @@ DEL %HOMEPATH%\Desktop\Spotify.lnk 2>NUL
ie4uinit -show ie4uinit -show
ECHO Suppression du raccourci du bureau ECHO Suppression du raccourci du bureau
IF NOT "%1"=="noskip" PAUSE IF NOT "%1"=="yes" PAUSE
EXIT /B EXIT /B

View file

@ -15,5 +15,5 @@ PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^
"$Shortcut.Arguments = '--profile ""ANRI GAMING (PROFIL)"""" --multi';" ^ "$Shortcut.Arguments = '--profile ""ANRI GAMING (PROFIL)"""" --multi';" ^
"$Shortcut.Save()" "$Shortcut.Save()"
IF NOT "%1"=="noskip" PAUSE IF NOT "%1"=="yes" PAUSE
EXIT /B EXIT /B

View file

@ -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

View file

@ -10,7 +10,7 @@ fltmc >NUL 2>&1 || (
:: === Install Spotify == :: === Install Spotify ==
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'" PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'"
DEL "%APPDATA%\Spotify" 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" PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
:: Start as administrator :: Start as administrator
@ -114,20 +114,11 @@ for %%i in (!games!) do (
!pmi! %%i !pmi! %%i
) )
:: Install Vencord :: === Install WSL ==
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
wsl --install --no-launch wsl --install --no-launch
wsl --unregister Ubuntu wsl --unregister Ubuntu
:: Install Geek Uninstaller :: === Install Geek Uninstaller ==
PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^ PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^
"Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^ "Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Geek Uninstaller';" ^ "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 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" 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';" ^ PowerShell -Command "$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;" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $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 DisplayName /t REG_SZ /d "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 ==
PowerShell -Command "$archive = '%TEMP%\dsr.zip';" ^ PowerShell -Command "$archive = '%TEMP%\dsr.zip';" ^
"Invoke-WebRequest -Uri https://git.mylloon.fr/attachments/9fa1cf45-ce58-443a-a061-596051405336 -OutFile $archive;" ^ "Invoke-WebRequest -Uri https://git.mylloon.fr/attachments/9fa1cf45-ce58-443a-a061-596051405336 -OutFile $archive;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\DSR';" ^ "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/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_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/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 == :: === Install OpenTabletDriver ==
:: Download :: Download
@ -235,18 +230,18 @@ PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPa
:: 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
:: Startup OBS replay buffer :: :: Startup OBS replay buffer
PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^ :: PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\OBS.lnk');" ^ :: "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\OBS.lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\obs-studio\bin\64bit\obs64.exe';" ^ :: "$Shortcut.TargetPath = '%ProgramFiles%\obs-studio\bin\64bit\obs64.exe';" ^
"$Shortcut.WorkingDirectory = '%ProgramFiles%\obs-studio\bin\64bit';" ^ :: "$Shortcut.WorkingDirectory = '%ProgramFiles%\obs-studio\bin\64bit';" ^
"$Shortcut.Arguments = '--disable-missing-files-check --minimize-to-tray " ^ :: "$Shortcut.Arguments = '--disable-missing-files-check --minimize-to-tray " ^
"--startreplaybuffer --profile ""ReplayBuffer"""" --scene ""ReplayBuffer""""';" ^ :: "--startreplaybuffer --profile ""ReplayBuffer"""" --scene ""ReplayBuffer""""';" ^
"$Shortcut.Save()" :: "$Shortcut.Save()"
:: Default shortcut should start default profile :: :: Default shortcut should start default profile
CALL %HOMEPATH%\Documents\Local\fix_obs_shortcut.bat noskip :: CALL %HOMEPATH%\Documents\Local\fix_obs_shortcut.bat yes
:: Allow system to go in sleep mode when OBS is running :: :: Allow system to go in sleep mode when OBS is running
powercfg -requestsoverride process obs64.exe display system awaymode :: powercfg -requestsoverride process obs64.exe display system awaymode
:: Setup WindowsAutoNightMode :: Setup WindowsAutoNightMode
MKDIR %APPDATA%\AutoDarkMode 2>NUL MKDIR %APPDATA%\AutoDarkMode 2>NUL