2023-04-05 12:36:58 +02:00
|
|
|
@ECHO OFF
|
|
|
|
SETLOCAL ENABLEDELAYEDEXPANSION
|
2022-09-30 03:33:13 +02:00
|
|
|
|
2023-05-17 16:55:47 +02:00
|
|
|
SET "repo=https://git.mylloon.fr/Anri/confOS/raw/branch/main"
|
|
|
|
|
2023-05-17 16:56:08 +02:00
|
|
|
:: Executed as normal user
|
2023-05-18 01:05:56 +02:00
|
|
|
MKDIR %HOMEPATH%\Documents\Local 2>NUL
|
2023-05-17 19:05:36 +02:00
|
|
|
|
2023-05-18 01:05:56 +02:00
|
|
|
fltmc >NUL 2>&1 || (
|
2023-05-17 16:55:47 +02:00
|
|
|
:: === Install Spotify ==
|
2023-05-17 19:05:36 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -OutFile '%HOMEPATH%\Documents\Local\blockthespot.bat'"
|
2023-05-17 16:55:47 +02:00
|
|
|
DEL "%APPDATA%\Spotify"
|
2023-05-30 14:28:04 +02:00
|
|
|
ECHO Y| CMD /c "%HOMEPATH%\Documents\Local\blockthespot.bat" noskip
|
2023-05-17 19:15:37 +02:00
|
|
|
PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
|
2023-05-17 16:55:47 +02:00
|
|
|
|
|
|
|
:: Start as administrator
|
2023-04-05 12:38:43 +02:00
|
|
|
PowerShell Start -Verb RunAs '%0' 2>NUL || (
|
2023-04-05 12:36:58 +02:00
|
|
|
EXIT 1
|
2022-09-30 03:33:13 +02:00
|
|
|
)
|
2023-04-05 12:36:58 +02:00
|
|
|
EXIT 0
|
2022-09-30 03:33:13 +02:00
|
|
|
)
|
2023-05-17 16:56:08 +02:00
|
|
|
:: Executed as admin user
|
2022-09-30 03:33:13 +02:00
|
|
|
|
2022-10-17 21:16:25 +02:00
|
|
|
:: === Right click of Windows 10 ==
|
2023-05-18 13:45:03 +02:00
|
|
|
REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
|
2022-09-30 03:33:13 +02:00
|
|
|
|
2022-10-17 21:16:25 +02:00
|
|
|
:: === Disabling widgets ==
|
2023-05-18 13:47:37 +02:00
|
|
|
REG ADD "HKLM\Software\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f
|
2022-09-30 03:33:13 +02:00
|
|
|
|
2023-05-16 16:01:13 +02:00
|
|
|
:: === Disabling hibernation (prevents computer to really shutdown) ==
|
2023-05-18 13:47:37 +02:00
|
|
|
REG ADD "HKLM\System\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f
|
2022-09-30 03:33:13 +02:00
|
|
|
powercfg /H off
|
|
|
|
|
2023-05-16 16:01:13 +02:00
|
|
|
:: === Disabling the SysMain service (preload some apps in memory) ==
|
2022-09-30 03:33:13 +02:00
|
|
|
sc stop "SysMain" & sc config "SysMain" start=disabled
|
|
|
|
|
2022-10-17 21:16:25 +02:00
|
|
|
:: === Added confirmation when trashing ==
|
2023-05-18 13:47:37 +02:00
|
|
|
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v ConfirmFileDelete /t REG_DWORD /d 1 /f
|
2022-09-30 03:33:13 +02:00
|
|
|
|
2022-10-17 21:16:25 +02:00
|
|
|
:: === Don't create a Zone:Identify ==
|
2023-05-18 13:47:37 +02:00
|
|
|
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v SaveZoneInformation /t REG_DWORD /d 1 /f
|
2022-09-30 03:33:13 +02:00
|
|
|
|
2022-10-17 21:16:25 +02:00
|
|
|
:: === Disables memory integrity ==
|
|
|
|
:: see https://support.microsoft.com/en-us/windows/options-to-optimize-gaming-performance-in-windows-11-a255f612-2949-4373-a566-ff6f3f474613
|
2023-05-18 13:47:37 +02:00
|
|
|
REG ADD "HKLM\System\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v Enabled /t REG_DWORD /d 0 /f
|
2022-10-08 02:14:38 +02:00
|
|
|
|
2022-12-21 00:54:54 +01:00
|
|
|
:: === Disables sticky keys ==
|
2023-05-18 13:45:03 +02:00
|
|
|
REG ADD "HKCU\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 506 /f
|
2022-12-21 00:54:54 +01:00
|
|
|
|
2023-01-10 10:56:21 +01:00
|
|
|
:: === Inverts the default shortcuts for changing input language and keyboard layout ==
|
2023-05-18 13:45:03 +02:00
|
|
|
REG ADD "HKCU\Keyboard Layout\toggle" /v "Hotkey" /t REG_SZ /d 1 /f
|
|
|
|
REG ADD "HKCU\Keyboard Layout\toggle" /v "Language Hotkey" /t REG_SZ /d 2 /f
|
2023-01-10 10:56:21 +01:00
|
|
|
|
2023-05-16 15:53:50 +02:00
|
|
|
:: === Disable Game Bar ==
|
2023-05-18 13:47:37 +02:00
|
|
|
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 0 /f
|
|
|
|
REG ADD "HKCU\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 0 /f
|
2023-05-16 15:53:50 +02:00
|
|
|
|
2023-05-17 13:07:33 +02:00
|
|
|
:: === Edge tweaks ==
|
2023-05-18 13:47:37 +02:00
|
|
|
REG ADD "HKLM\Software\Policies\Microsoft\Edge" /v HubsSidebarEnabled /t REG_DWORD /d 0 /f
|
|
|
|
REG ADD "HKLM\Software\Policies\Microsoft\Edge" /v ShowRecommendationsEnabled /t REG_DWORD /d 0 /f
|
2023-05-17 13:07:33 +02:00
|
|
|
|
2023-04-23 10:46:38 +02:00
|
|
|
:: === WinGet ==
|
2022-10-17 21:16:25 +02:00
|
|
|
:: Auto accept ToT
|
2023-04-05 12:38:43 +02:00
|
|
|
ECHO Y | winget list >NUL
|
2023-04-23 10:50:56 +02:00
|
|
|
SET "pmi=winget install -he"
|
2023-04-23 10:46:38 +02:00
|
|
|
|
2023-05-18 01:19:20 +02:00
|
|
|
:: C++ libraries
|
2023-05-17 11:19:39 +02:00
|
|
|
SET ^"cpp_libs=Microsoft.VCRedist.2005.x86 Microsoft.VCRedist.2005.x64 ^
|
|
|
|
Microsoft.VCRedist.2008.x86 Microsoft.VCRedist.2008.x64 ^
|
|
|
|
Microsoft.VCRedist.2010.x86 Microsoft.VCRedist.2010.x64 ^
|
|
|
|
Microsoft.VCRedist.2012.x86 Microsoft.VCRedist.2012.x64 ^
|
|
|
|
Microsoft.VCRedist.2013.x86 Microsoft.VCRedist.2013.x64 ^
|
|
|
|
Microsoft.VCRedist.2015+.x86 Microsoft.VCRedist.2015+.x64"
|
|
|
|
|
|
|
|
for %%i in (!cpp_libs!) do (
|
|
|
|
!pmi! %%i
|
|
|
|
)
|
|
|
|
|
2023-05-18 01:19:20 +02:00
|
|
|
:: .NET libraries
|
2023-05-18 01:32:05 +02:00
|
|
|
SET ^"net_libs=Microsoft.DotNet.DesktopRuntime.3_1 Microsoft.DotNet.SDK.3_1 ^
|
|
|
|
Microsoft.DotNet.DesktopRuntime.5 Microsoft.DotNet.SDK.5 ^
|
|
|
|
Microsoft.DotNet.DesktopRuntime.6 Microsoft.DotNet.SDK.6 ^
|
|
|
|
Microsoft.DotNet.DesktopRuntime.7 Microsoft.DotNet.SDK.7"
|
2023-05-18 01:19:20 +02:00
|
|
|
|
|
|
|
for %%i in (!net_libs!) do (
|
|
|
|
!pmi! %%i
|
|
|
|
)
|
2023-05-18 01:19:32 +02:00
|
|
|
|
|
|
|
:: Java dev kits
|
2023-07-20 23:19:44 +02:00
|
|
|
SET ^"java_jdk=EclipseAdoptium.Temurin.8.JDK EclipseAdoptium.Temurin.17.JDK"
|
2023-05-18 01:19:32 +02:00
|
|
|
|
2023-07-06 17:21:31 +02:00
|
|
|
for %%i in (!java_jdk!) do (
|
2023-05-18 01:19:32 +02:00
|
|
|
!pmi! %%i
|
|
|
|
)
|
|
|
|
|
2023-04-23 10:46:38 +02:00
|
|
|
:: Applications
|
2023-05-17 16:47:05 +02:00
|
|
|
SET ^"apps=Discord.Discord Mozilla.Firefox 7zip.7zip Valve.Steam Parsec.Parsec ^
|
2023-04-23 10:46:38 +02:00
|
|
|
voidtools.Everything.Lite VideoLAN.VLC File-New-Project.EarTrumpet ^
|
|
|
|
Microsoft.VisualStudioCode GIMP.GIMP DuongDieuPhap.ImageGlass ^
|
|
|
|
ONLYOFFICE.DesktopEditors HeroicGamesLauncher.HeroicGamesLauncher ^
|
2023-05-17 13:01:06 +02:00
|
|
|
OBSProject.OBSStudio Xournal++.Xournal++ Microsoft.PowerToys ^
|
2023-04-23 10:46:38 +02:00
|
|
|
OpenWhisperSystems.Signal HandBrake.HandBrake Front.scrcpy+ ^
|
2023-05-18 16:18:14 +02:00
|
|
|
KDE.KDEConnect PrismLauncher.PrismLauncher Microsoft.PowerShell"
|
2023-04-23 10:46:38 +02:00
|
|
|
|
|
|
|
for %%i in (!apps!) do (
|
2023-04-23 10:50:56 +02:00
|
|
|
!pmi! %%i
|
2023-04-23 10:46:38 +02:00
|
|
|
)
|
|
|
|
|
2023-05-18 15:19:02 +02:00
|
|
|
:: Games
|
|
|
|
SET ^"games=Peppy.Osu! RiotGames.LeagueOfLegends.EUW RiotGames.Valorant.EU"
|
|
|
|
|
|
|
|
for %%i in (!games!) do (
|
|
|
|
!pmi! %%i
|
|
|
|
)
|
|
|
|
|
2023-05-17 16:47:05 +02:00
|
|
|
:: 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"
|
|
|
|
|
2022-10-08 02:14:38 +02:00
|
|
|
:: Install WSL
|
2023-05-17 13:06:17 +02:00
|
|
|
wsl --install --no-launch
|
|
|
|
wsl --unregister Ubuntu
|
2022-09-30 03:33:13 +02:00
|
|
|
|
2023-05-17 19:05:55 +02:00
|
|
|
:: Install Geek Uninstaller
|
|
|
|
PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^
|
|
|
|
"Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^
|
2023-05-18 13:31:42 +02:00
|
|
|
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Geek Uninstaller';" ^
|
|
|
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
|
|
|
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Geek Uninstaller.lnk');" ^
|
|
|
|
"$Shortcut.TargetPath = '%ProgramFiles%\Geek Uninstaller\geek.exe';" ^
|
|
|
|
"$Shortcut.Save()"
|
2023-05-18 13:42:33 +02:00
|
|
|
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"
|
2023-05-17 19:05:55 +02:00
|
|
|
|
2023-05-19 11:11:08 +02:00
|
|
|
:: 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;" ^
|
|
|
|
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
|
|
|
|
"cd $env:TEMP;" ^
|
|
|
|
"& $env:ProgramFiles\7-Zip\7z.exe x $archive -o'%ProgramFiles%\LosslessCut';" ^
|
|
|
|
"$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()"
|
|
|
|
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"
|
|
|
|
|
2022-10-17 21:16:25 +02:00
|
|
|
:: === Firefox configuration ==
|
2023-01-04 11:44:51 +01:00
|
|
|
"%ProgramFiles%\Mozilla Firefox\firefox.exe"
|
2023-07-06 19:46:38 +02:00
|
|
|
TIMEOUT 5
|
2023-02-17 17:13:11 +01:00
|
|
|
TASKKILL /im firefox.exe /F
|
2022-10-17 20:50:34 +02:00
|
|
|
|
2023-04-05 12:36:58 +02:00
|
|
|
FOR /F %%i IN ('dir /B /S ^"%APPDATA%\Mozilla\Firefox\Profiles\*.default-release^"') DO SET "vbc=%%i"
|
2023-05-17 13:14:19 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.mozilla/firefox/user.js -OutFile '!vbc!\user.js'"
|
2022-10-17 20:50:34 +02:00
|
|
|
|
2023-05-17 13:14:19 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.mozilla/firefox/extensions/Dark-Reader-Settings.json -OutFile '%HOMEPATH%\Downloads\Dark-Reader-Settings.json'"
|
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.mozilla/firefox/extensions/SponsorBlockConfig.json -OutFile '%HOMEPATH%\Downloads\SponsorBlockConfig.json'"
|
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.mozilla/firefox/extensions/auto-tab-discard-preferences.json -OutFile '%HOMEPATH%\Downloads\auto-tab-discard-preferences.json'"
|
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.mozilla/firefox/extensions/libredirect-settings.json -OutFile '%HOMEPATH%\Downloads\libredirect-settings.json'"
|
2023-02-17 17:49:24 +01:00
|
|
|
ECHO La configuration des differents Addons de Firefox est presente dans le dossier %HOMEPATH%\Downloads.
|
2022-10-16 23:57:37 +02:00
|
|
|
|
2023-05-17 19:05:48 +02:00
|
|
|
:: === Drivers ==
|
2023-05-17 13:11:47 +02:00
|
|
|
ECHO Installe les pilotes, pour connaitre la liste des pilotes, utilise UserDiag https://userdiag.com/download
|
2023-05-17 19:05:48 +02:00
|
|
|
ECHO Pour NVidia, utilise NVC et DDU
|
2022-10-16 23:57:37 +02:00
|
|
|
|
2022-10-17 21:16:25 +02:00
|
|
|
:: === W10Privacy ==
|
2023-05-17 13:14:19 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/W10Privacy.ini -OutFile '%HOMEPATH%\Downloads\W10Privacy.ini'"
|
2023-05-17 17:49:47 +02:00
|
|
|
ECHO Ensuite, utilise W10Privacy avec le fichier present dans %HOMEPATH%\Downloads.
|
|
|
|
PowerShell -Command "$archive = '%TEMP%\W10Privacy.zip';" ^
|
|
|
|
"Invoke-WebRequest -Uri https://www.w10privacy.de/app/download/12302828636/W10Privacy.zip -OutFile $archive;" ^
|
|
|
|
"Expand-Archive -Path $archive -DestinationPath $env:TEMP;" ^
|
|
|
|
"$file = $env:TEMP + '\\' + (Get-ChildItem $env:TEMP\W10Privacy*.exe).BaseName + '.exe';" ^
|
2023-05-17 18:09:11 +02:00
|
|
|
"Start-Process $file /S -NoNewWindow -Wait -PassThru;" ^
|
2023-05-17 18:11:54 +02:00
|
|
|
"$shortcut = '%APPDATA%\Microsoft\Windows\Start Menu\Programs\W10Privacy.lnk';" ^
|
2023-05-17 18:09:11 +02:00
|
|
|
"$bytes = [System.IO.File]::ReadAllBytes($shortcut);" ^
|
|
|
|
"$bytes[0x15] = $bytes[0x15] -bor 0x20;" ^
|
|
|
|
"[System.IO.File]::WriteAllBytes($shortcut, $bytes)"
|
2022-10-16 23:57:37 +02:00
|
|
|
|
2022-12-16 12:44:51 +01:00
|
|
|
:: === Modules ==
|
2023-02-17 17:13:11 +01:00
|
|
|
PowerShell -Command "Install-PackageProvider -Name NuGet -Force"
|
|
|
|
PowerShell -Command "Install-Module -Name PSWindowsUpdate -Force"
|
2022-12-16 12:44:51 +01:00
|
|
|
|
2022-12-24 16:16:58 +01:00
|
|
|
:: === Scripts ==
|
2023-05-17 13:14:19 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/ctmpf.bat -OutFile '%HOMEPATH%\Documents\Local\ctmpf.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'"
|
2023-05-30 14:24:15 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_obs_shortcut.bat -OutFile '%HOMEPATH%\Documents\Local\fix_obs_shortcut.bat'"
|
2022-12-24 16:16:58 +01:00
|
|
|
|
2023-03-31 17:33:49 +02:00
|
|
|
:: === Install OpenTabletDriver ==
|
2023-01-04 11:44:42 +01:00
|
|
|
:: Download
|
2023-05-18 01:24:27 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile '%TEMP%\OpenTabletDriver.win-x64.zip'"
|
2023-01-04 11:44:42 +01:00
|
|
|
:: Extract
|
2023-05-18 01:24:27 +02:00
|
|
|
PowerShell -Command "Expand-Archive -Path '%TEMP%\OpenTabletDriver.win-x64.zip' -DestinationPath '%ProgramFiles%\OpenTabletDriver'"
|
2023-01-04 11:44:42 +01:00
|
|
|
:: Create shortcut
|
2023-05-18 01:44:26 +02:00
|
|
|
PowerShell -Command "$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()"
|
2023-05-18 13:42:33 +02:00
|
|
|
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"
|
2023-01-04 11:44:42 +01:00
|
|
|
|
2023-01-04 12:16:11 +01:00
|
|
|
:: WindowsInk
|
2023-05-18 01:24:27 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/vmulti-bin/releases/download/v1.0/Driver.zip -OutFile '%TEMP%\Driver-VMulti.zip'"
|
2023-01-04 12:16:11 +01:00
|
|
|
:: Extract
|
2023-05-18 01:24:27 +02:00
|
|
|
PowerShell -Command "Expand-Archive -Path '%TEMP%\Driver-VMulti.zip' -DestinationPath '%TEMP%\Driver-VMulti'"
|
2023-01-04 12:16:11 +01:00
|
|
|
:: Install driver
|
2023-05-18 01:24:27 +02:00
|
|
|
CALL %TEMP%\Driver-VMulti\64\install_hiddriver.bat
|
2023-01-04 12:16:11 +01:00
|
|
|
:: Download plugin
|
2023-05-18 01:24:27 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/VoiDPlugins/releases/latest/download/WindowsInk.zip -OutFile '%TEMP%\WindowsInk.zip'"
|
2023-01-04 12:16:11 +01:00
|
|
|
:: Extract plugin
|
2023-05-18 01:24:27 +02:00
|
|
|
PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPath '%LOCALAPPDATA%\OpenTabletDriver\Plugins\Windows Ink'"
|
2023-01-04 12:16:11 +01:00
|
|
|
|
2022-11-13 13:03:40 +01:00
|
|
|
:: === Miscellaneous ==
|
|
|
|
:: Rename shortcut for Minecraft
|
2023-02-17 17:13:11 +01:00
|
|
|
RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Minecraft.lnk
|
2022-11-13 13:03:40 +01:00
|
|
|
|
2023-05-09 11:03:03 +02:00
|
|
|
:: Startup OBS replay buffer
|
2023-05-09 11:04:24 +02:00
|
|
|
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';" ^
|
2023-05-29 15:24:59 +02:00
|
|
|
"$Shortcut.Arguments = '--disable-missing-files-check --minimize-to-tray " ^
|
|
|
|
"--startreplaybuffer --profile ""ReplayBuffer"""" --scene ""ReplayBuffer""""';" ^
|
2023-05-09 11:59:13 +02:00
|
|
|
"$Shortcut.Save()"
|
|
|
|
:: Default shortcut should start default profile
|
2023-05-30 14:28:04 +02:00
|
|
|
CALL %HOMEPATH%\Documents\Local\fix_obs_shortcut.bat noskip
|
2023-05-30 14:24:15 +02:00
|
|
|
:: Allow system to go in sleep mode when OBS is running
|
2023-05-22 17:28:10 +02:00
|
|
|
powercfg -requestsoverride process obs64.exe display system awaymode
|
2023-05-09 11:03:03 +02:00
|
|
|
|
2023-05-17 13:11:47 +02:00
|
|
|
ECHO Fais un tour des parametres Windows, apres avoir fait toutes les mises a jour disponible sur le PC.
|
2023-02-17 17:49:24 +01:00
|
|
|
ECHO Enfin, redemarre l'ordinateur
|
2022-10-08 02:14:38 +02:00
|
|
|
|
2023-02-17 17:13:11 +01:00
|
|
|
PAUSE
|
2023-04-05 12:42:54 +02:00
|
|
|
EXIT /B
|