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-11-05 14:51:37 +01:00
|
|
|
SET "local=%HOMEPATH%\Documents\Local"
|
2024-10-01 20:05:23 +02:00
|
|
|
SET "startmenu=%APPDATA%\Microsoft\Windows\Start Menu\Programs"
|
2023-05-17 16:55:47 +02:00
|
|
|
|
2023-11-07 04:51:01 +01:00
|
|
|
MKDIR "!local!" 2>NUL
|
2023-05-17 19:05:36 +02:00
|
|
|
|
2024-04-08 19:33:13 +02:00
|
|
|
:: => NO-ADMIN RIGHTS <=
|
|
|
|
|
2023-05-18 01:05:56 +02:00
|
|
|
fltmc >NUL 2>&1 || (
|
2024-07-02 11:16:26 +02:00
|
|
|
ECHO Please wait until the administrator popup appears.
|
2023-11-07 04:43:34 +01:00
|
|
|
|
2024-02-09 21:53:17 +01:00
|
|
|
:: === Update winget to latest version ==
|
|
|
|
PowerShell -Command "" ^
|
|
|
|
"Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile winget.msixbundle;" ^
|
|
|
|
"Add-AppPackage -ForceApplicationShutdown .\winget.msixbundle;" ^
|
|
|
|
"del .\winget.msixbundle"
|
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
2024-07-02 11:09:22 +02:00
|
|
|
:: === Scripts from ./windows directory ==
|
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/update.bat -OutFile '!local!\update.bat'"
|
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/clean.bat -OutFile '!local!\ctmpf.bat'"
|
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/spotify.bat -OutFile '!local!\blockthespot.bat'"
|
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/vencord.bat -OutFile '!local!\vencord_installer.bat'"
|
2024-11-27 17:27:31 +01:00
|
|
|
@REM PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_nvidia_wsl.bat -OutFile '!local!\fix_nvidia_wsl.bat'"
|
2024-07-02 11:09:22 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_mihoyo_shortcut.bat -OutFile '!local!\fix_mihoyo_shortcut.bat'"
|
2024-08-20 17:41:42 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/start_obs_as_shadowplay.bat -OutFile '%LOCALAPPDATA%\start_obs_as_shadowplay.bat'"
|
2024-11-27 17:23:33 +01:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/reg_fixes.bat -OutFile '!local!\reg_fixes.bat'"
|
2024-07-02 11:09:22 +02:00
|
|
|
|
|
|
|
|
2023-09-13 11:51:35 +02:00
|
|
|
:: === Install Spotify ==
|
|
|
|
DEL "%APPDATA%\Spotify"
|
2024-07-02 11:09:22 +02:00
|
|
|
:: Use already downloaded script
|
2023-11-05 14:51:37 +01:00
|
|
|
ECHO Y| CMD /c "!local!\blockthespot.bat" yes
|
2023-09-13 11:51:35 +02:00
|
|
|
PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
|
2024-10-28 18:47:46 +01:00
|
|
|
:: Defender exclusion
|
|
|
|
PowerShell -Command "Add-MpPreference -ExclusionPath '%APPDATA%\Spotify'"
|
2023-09-13 11:51:35 +02:00
|
|
|
|
|
|
|
:: Start as administrator
|
2024-07-02 11:12:26 +02:00
|
|
|
PowerShell Start -Verb RunAs "%0 noskipadmin" 2>NUL || (
|
2023-09-13 11:51:35 +02:00
|
|
|
EXIT 1
|
|
|
|
)
|
|
|
|
EXIT 0
|
2022-09-30 03:33:13 +02:00
|
|
|
)
|
|
|
|
|
2024-04-08 19:33:13 +02:00
|
|
|
|
|
|
|
:: => ADMIN RIGHTS <=
|
2024-04-08 17:54:06 +02:00
|
|
|
|
2024-07-02 11:13:58 +02:00
|
|
|
IF NOT "%1"=="noskipadmin" (
|
|
|
|
ECHO You have to run the script as normal user first.
|
|
|
|
|
|
|
|
PAUSE
|
|
|
|
EXIT 0
|
|
|
|
)
|
2024-07-02 11:12:26 +02:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
:: === Registery modifications ==
|
2024-11-27 17:23:33 +01:00
|
|
|
CMD /c "!local!\reg_fixes.bat" yes
|
2024-10-23 22:53:23 +02:00
|
|
|
|
|
|
|
|
2024-04-17 16:30:56 +02:00
|
|
|
:: === Install optional features ==
|
|
|
|
PowerShell -Command "" ^
|
|
|
|
"Get-WindowsCapability -Online -Name 'App.WirelessDisplay.Connect*' | Add-WindowsCapability -Online"
|
|
|
|
|
|
|
|
|
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
|
2024-05-16 23:49:18 +02:00
|
|
|
SET "pmi=winget install --silent --exact"
|
2023-04-23 10:46:38 +02:00
|
|
|
|
2023-05-18 01:19:20 +02:00
|
|
|
:: C++ libraries
|
2023-09-13 11:51:35 +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"
|
2023-05-17 11:19:39 +02:00
|
|
|
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO C++ libraries...
|
2023-05-17 11:19:39 +02:00
|
|
|
for %%i in (!cpp_libs!) do (
|
2023-09-13 11:51:35 +02:00
|
|
|
!pmi! %%i
|
2023-05-17 11:19:39 +02:00
|
|
|
)
|
|
|
|
|
2023-05-18 01:19:20 +02:00
|
|
|
:: .NET libraries
|
2023-09-13 11:51:35 +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 ^
|
2023-12-26 23:07:58 +01:00
|
|
|
Microsoft.DotNet.DesktopRuntime.7 Microsoft.DotNet.SDK.7 ^
|
|
|
|
Microsoft.DotNet.DesktopRuntime.8 Microsoft.DotNet.SDK.8"
|
2023-05-18 01:19:20 +02:00
|
|
|
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO .NET libraries...
|
2023-05-18 01:19:20 +02:00
|
|
|
for %%i in (!net_libs!) do (
|
2023-09-13 11:51:35 +02:00
|
|
|
!pmi! %%i
|
2023-05-18 01:19:20 +02:00
|
|
|
)
|
2023-05-18 01:19:32 +02:00
|
|
|
|
2023-04-23 10:46:38 +02:00
|
|
|
:: Applications
|
2023-09-13 11:51:35 +02:00
|
|
|
SET ^"apps=^
|
2024-11-27 17:26:21 +01:00
|
|
|
Mozilla.Firefox M2Team.NanaZip GIMP.GIMP sylikc.JPEGView KDE.Kdenlive ^
|
2024-11-20 01:10:36 +01:00
|
|
|
voidtools.Everything.Lite clsid2.mpc-hc Obsidian.Obsidian Parsec.Parsec ^
|
2024-10-12 17:45:05 +02:00
|
|
|
Microsoft.VisualStudioCode Bitwarden.Bitwarden HandBrake.HandBrake ^
|
2024-07-24 11:23:59 +02:00
|
|
|
TheDocumentFoundation.LibreOffice Armin2208.WindowsAutoNightMode ^
|
2024-01-28 17:46:47 +01:00
|
|
|
OBSProject.OBSStudio Xournal++.Xournal++ Microsoft.PowerToys KDE.KDEConnect ^
|
2024-05-12 14:54:32 +02:00
|
|
|
OpenWhisperSystems.Signal TenacityTeam.Tenacity Microsoft.PowerShell"
|
2023-04-23 10:46:38 +02:00
|
|
|
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO Apps...
|
2023-04-23 10:46:38 +02:00
|
|
|
for %%i in (!apps!) do (
|
2023-09-13 11:51:35 +02:00
|
|
|
!pmi! %%i
|
2023-04-23 10:46:38 +02:00
|
|
|
)
|
|
|
|
|
2023-09-13 11:51:35 +02:00
|
|
|
SET ^"games=^
|
2024-02-12 10:25:02 +01:00
|
|
|
RiotGames.LeagueOfLegends.EUW RiotGames.Valorant.EU Valve.Steam ^
|
2024-03-15 18:26:51 +01:00
|
|
|
HeroicGamesLauncher.HeroicGamesLauncher PrismLauncher.PrismLauncher ^
|
2024-10-02 13:53:32 +02:00
|
|
|
ppy.osu pizzaboxer.Bloxstrap"
|
2023-05-18 15:19:02 +02:00
|
|
|
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO Games...
|
2023-05-18 15:19:02 +02:00
|
|
|
for %%i in (!games!) do (
|
2023-09-13 11:51:35 +02:00
|
|
|
!pmi! %%i
|
2023-05-18 15:19:02 +02:00
|
|
|
)
|
|
|
|
|
2024-04-08 19:33:13 +02:00
|
|
|
|
2023-08-11 14:27:37 +02:00
|
|
|
:: === Install WSL ==
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO WSL...
|
2023-11-05 17:33:27 +01:00
|
|
|
wsl --install --no-distribution
|
2022-09-30 03:33:13 +02:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
2024-04-29 13:23:08 +02:00
|
|
|
:: === Activate Windows ==
|
2024-10-02 18:40:57 +02:00
|
|
|
:: https://massgrave.dev/command_line_switches#uses-in-powershell-one-liner
|
|
|
|
PowerShell -Command "" ^
|
|
|
|
"& ([ScriptBlock]::Create((irm https://get.activated.win )))" ^
|
|
|
|
"/HWID"
|
2024-04-29 13:23:08 +02:00
|
|
|
|
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
:: === Modules for Windows Update ==
|
2023-11-07 04:43:34 +01:00
|
|
|
PowerShell -Command "Install-PackageProvider -Name NuGet -Force"
|
|
|
|
PowerShell -Command "Install-Module -Name PSWindowsUpdate -Force"
|
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
2024-04-08 17:55:48 +02:00
|
|
|
:: === Geek Uninstaller ==
|
2024-07-02 11:23:44 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/geek.bat -OutFile '%TEMP%\geek.bat'"
|
|
|
|
CMD /c "%TEMP%\geek.bat" yes
|
2023-05-17 19:05:55 +02:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === LosslessCut ==
|
2024-07-02 12:15:42 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/losslesscut.bat -OutFile '%TEMP%\losslesscut.bat'"
|
|
|
|
CMD /c "%TEMP%\losslesscut.bat" yes
|
2024-04-08 17:54:06 +02:00
|
|
|
|
2024-10-02 18:36:59 +02:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
:: === DSR ==
|
2024-07-02 12:15:42 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/dsr.bat -OutFile '%TEMP%\dsr.bat'"
|
|
|
|
CMD /c "%TEMP%\dsr.bat" yes
|
2024-04-08 17:54:06 +02:00
|
|
|
|
2024-10-02 18:36:59 +02:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
:: === Vencord ==
|
2024-04-18 01:17:58 +02:00
|
|
|
:: Use already downloaded script
|
2023-11-05 14:51:37 +01:00
|
|
|
CMD /c "!local!\vencord_installer.bat" yes
|
2022-12-24 16:16:58 +01:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === OpenTabletDriver ==
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO OpenTabletDriver...
|
2023-09-13 11:51:35 +02:00
|
|
|
PowerShell -Command "" ^
|
2024-01-23 10:31:34 +01:00
|
|
|
"$archive = '%TEMP%\OpenTabletDriver.win-x64.zip';" ^
|
2024-02-10 03:17:58 +01:00
|
|
|
"Invoke-WebRequest -Uri https://github.com/OpenTabletDriver/OpenTabletDriver/releases/latest/download/OpenTabletDriver.win-x64.zip -OutFile $archive;" ^
|
2024-01-23 10:31:34 +01:00
|
|
|
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\OpenTabletDriver' -Force;" ^
|
2023-09-13 11:51:35 +02:00
|
|
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
2024-10-01 20:05:23 +02:00
|
|
|
"$Shortcut = $WshShell.CreateShortcut('!startmenu!\OpenTabletDriver.lnk');" ^
|
2023-09-13 11:51:35 +02:00
|
|
|
"$Shortcut.TargetPath = '%ProgramFiles%\OpenTabletDriver\OpenTabletDriver.UX.Wpf.exe';" ^
|
|
|
|
"$Shortcut.WorkingDirectory = '%ProgramFiles%\OpenTabletDriver';" ^
|
2024-01-23 10:31:34 +01:00
|
|
|
"$Shortcut.Save();" ^
|
|
|
|
"Remove-Item -Force $archive"
|
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-11-07 04:43:34 +01:00
|
|
|
:: WindowsInk for OpenTabletDriver
|
|
|
|
ECHO WindowsInk support for OpenTabletDriver...
|
2023-11-23 17:21:24 +01:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/vmulti-bin/releases/download/v1.0/VMulti.Driver.zip -OutFile '%TEMP%\VMulti-Driver.zip'"
|
2023-11-05 19:44:03 +01:00
|
|
|
PowerShell -Command "Expand-Archive -Path '%TEMP%\VMulti-Driver.zip' -DestinationPath '%TEMP%\VMulti-Driver' -Force"
|
2023-11-07 04:51:01 +01:00
|
|
|
CALL "%TEMP%\VMulti-Driver\install_hiddriver.bat"
|
2023-11-23 17:21:24 +01:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/VoiDPlugins/releases/latest/download/WindowsInk.zip -OutFile '%TEMP%\WindowsInk.zip'"
|
2023-11-05 19:44:03 +01:00
|
|
|
PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPath '%LOCALAPPDATA%\OpenTabletDriver\Plugins\Windows Ink' -Force"
|
2023-01-04 12:16:11 +01:00
|
|
|
|
2023-11-11 19:46:14 +01:00
|
|
|
:: Presets of OpenTabletDriver
|
|
|
|
ECHO Downloading OpenTabletDriver presets...
|
2024-10-01 20:40:03 +02:00
|
|
|
MKDIR "%LOCALAPPDATA%\OpenTabletDriver\Presets" 2>NUL
|
2023-11-23 17:21:24 +01:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/opentabletdriver/vertical-main.json -OutFile '%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-main.json'"
|
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/opentabletdriver/vertical-second.json -OutFile '%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-second.json'"
|
2023-11-11 19:42:31 +01:00
|
|
|
|
2023-11-11 19:53:41 +01:00
|
|
|
:: Settings of OpenTabletDriver, using 'vertical-main.json' as default settings
|
|
|
|
ECHO Setting up OpenTabletDriver...
|
|
|
|
XCOPY "%LOCALAPPDATA%\OpenTabletDriver\Presets\vertical-main.json" "%LOCALAPPDATA%\OpenTabletDriver\settings.json" /-I /Y
|
|
|
|
|
2024-03-14 15:48:48 +01:00
|
|
|
:: Start minimized at startup
|
|
|
|
PowerShell -Command "" ^
|
|
|
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
2024-10-01 20:05:23 +02:00
|
|
|
"$Shortcut = $WshShell.CreateShortcut('!startmenu!\Startup\OpenTabletDriver.lnk');" ^
|
2024-03-14 15:48:48 +01:00
|
|
|
"$Shortcut.TargetPath = '%ProgramFiles%\OpenTabletDriver\OpenTabletDriver.UX.Wpf.exe';" ^
|
|
|
|
"$Shortcut.WorkingDirectory = '%ProgramFiles%\OpenTabletDriver';" ^
|
|
|
|
"$Shortcut.WindowStyle = 7;" ^
|
|
|
|
"$Shortcut.Save()"
|
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === NOWT ==
|
2024-07-02 12:15:42 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/nowt.bat -OutFile '%TEMP%\nowt.bat'"
|
|
|
|
CMD /c "%TEMP%\nowt.bat" yes
|
2023-11-07 04:19:43 +01:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === Deceive ==
|
2024-07-02 12:15:42 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/deceive.bat -OutFile '%TEMP%\deceive.bat'"
|
|
|
|
CMD /c "%TEMP%\deceive.bat" yes
|
2023-11-07 04:25:47 +01:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === Minecraft ==
|
2024-10-01 20:07:48 +02:00
|
|
|
:: Copy shortcut of Prism Launcher to a Minecraft shortcut
|
|
|
|
COPY /Y "!startmenu!\Prism Launcher.lnk" "!startmenu!\Minecraft.lnk"
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
:: === Cubiomes viewer ==
|
2024-07-02 12:15:42 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/cubiomesviewer.bat -OutFile '%TEMP%\cubiomesviewer.bat'"
|
|
|
|
CMD /c "%TEMP%\cubiomesviewer.bat" yes
|
2024-02-04 22:50:34 +01:00
|
|
|
|
2023-11-07 04:43:34 +01:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
:: === Firefox configuration ==
|
|
|
|
:: Open and close Firefox for the first time, generating a profile
|
2023-11-07 04:43:34 +01:00
|
|
|
"%ProgramFiles%\Mozilla Firefox\firefox.exe"
|
|
|
|
TIMEOUT 5
|
|
|
|
TASKKILL /im firefox.exe /F
|
|
|
|
|
|
|
|
ECHO Firefox configuration...
|
2024-04-18 01:29:42 +02:00
|
|
|
FOR /F "usebackq delims=" %%i IN (`dir /B /S "%APPDATA%\Mozilla\Firefox\Profiles\*.default-release"`) DO SET "vbc=%%i"
|
2023-11-23 17:21:24 +01:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.mozilla/firefox/user.js -OutFile '!vbc!\user.js'"
|
2023-11-07 04:43:34 +01:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
:: Download addons settings in "Download" folder
|
2023-11-23 17:21:24 +01:00
|
|
|
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'"
|
2024-07-02 11:16:26 +02:00
|
|
|
ECHO Configuration files for Firefox Addons are in the download folder (%HOMEPATH%\Downloads).
|
2023-11-07 04:43:34 +01:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === WindowsAutoNightMode ==
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO WindowsAutoNightMode configuration...
|
2023-11-07 04:51:01 +01:00
|
|
|
MKDIR "%APPDATA%\AutoDarkMode" 2>NUL
|
2023-11-23 17:21:24 +01:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/WindowsAutoNightMode/config.yaml -OutFile '%APPDATA%\AutoDarkMode\config.yaml'"
|
2023-11-05 19:52:00 +01:00
|
|
|
"%LOCALAPPDATA%\Programs\AutoDarkMode\adm-app\AutoDarkModeApp.exe"
|
2023-08-18 03:32:06 +02:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === OBS ==
|
2024-08-20 18:07:44 +02:00
|
|
|
:: Create directories for configurations
|
2024-08-20 17:41:42 +02:00
|
|
|
MKDIR "%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer" 2>NUL
|
2024-08-20 18:07:44 +02:00
|
|
|
MKDIR "%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes" 2>NUL
|
|
|
|
|
|
|
|
:: Download configuration
|
2024-08-20 18:50:09 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/global.ini -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\global.ini'"
|
2024-08-20 18:03:46 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/basic.ini -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\basic.ini'"
|
2024-08-21 00:48:20 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/ReplayBuffer/recordEncoder.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\profiles\ReplayBuffer\recordEncoder.json'"
|
2024-08-20 18:03:46 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/scenes/ReplayBuffer.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes\ReplayBuffer.json'"
|
2024-08-20 17:41:42 +02:00
|
|
|
|
2024-10-07 23:07:02 +02:00
|
|
|
:: Script OBS Replay Folder
|
2024-08-21 13:21:15 +02:00
|
|
|
PowerShell -Command "" ^
|
|
|
|
"$archive = '%TEMP%\obs-replay-folders.zip';" ^
|
|
|
|
"Invoke-WebRequest -Uri https://github.com/Mylloon/obs-replay-folders/releases/latest/download/obs-replay-folders.zip -OutFile $archive;" ^
|
|
|
|
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\obs-studio\config' -Force;" ^
|
|
|
|
"Remove-Item -Force $archive"
|
|
|
|
|
2024-10-07 23:07:02 +02:00
|
|
|
:: Script OBS Automatic ReplayBuffer Restart
|
|
|
|
PowerShell -Command "" ^
|
|
|
|
"$archive = '%TEMP%\auto-obs-rb-restart.zip';" ^
|
|
|
|
"Invoke-WebRequest -Uri https://git.mylloon.fr/Anri/auto-obs-rb-restart/releases/download/latest/auto-obs-rb-restart.zip -OutFile $archive;" ^
|
|
|
|
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\obs-studio\config' -Force;" ^
|
|
|
|
"Remove-Item -Force $archive"
|
|
|
|
|
2024-08-20 18:07:44 +02:00
|
|
|
:: Setup the autostart of shadowplay
|
2024-08-21 00:55:17 +02:00
|
|
|
SCHTASKS /Create /RU "%USERNAME%" /SC ONLOGON /TN "OBS Shadowplay" ^
|
2024-08-21 00:39:56 +02:00
|
|
|
/TR "'%LOCALAPPDATA%\start_obs_as_shadowplay.bat'" ^
|
2024-08-21 00:55:17 +02:00
|
|
|
/F /RL HIGHEST
|
2024-08-20 17:41:42 +02:00
|
|
|
|
|
|
|
:: Allow system to go in sleep mode when OBS is running
|
|
|
|
POWERCFG /REQUESTSOVERRIDE PROCESS obs64.exe DISPLAY SYSTEM AWAYMODE
|
2023-11-07 04:43:34 +01:00
|
|
|
|
2024-08-21 19:14:47 +02:00
|
|
|
ECHO About OBS, you may need to adjust the screen ID by opening the OBS app
|
|
|
|
ECHO in the systray as it may be not the same as the one presaved.
|
|
|
|
|
2024-04-08 18:17:17 +02:00
|
|
|
|
|
|
|
:: === miHoYo Games launcher ==
|
2024-07-02 12:15:42 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/collapse.bat -OutFile '%TEMP%\collapse.bat'"
|
|
|
|
CMD /c "%TEMP%\collapse.bat" yes
|
2024-04-08 18:17:17 +02:00
|
|
|
|
2024-08-17 14:48:23 +02:00
|
|
|
:: Fix games shortcut
|
2024-04-18 01:18:07 +02:00
|
|
|
CMD /c "!local!\fix_mihoyo_shortcut.bat" yes
|
|
|
|
|
2024-04-18 01:41:34 +02:00
|
|
|
|
2024-04-11 21:55:48 +02:00
|
|
|
:: === FiveM ==
|
2024-07-02 12:15:42 +02:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/fivem.bat -OutFile '%TEMP%\fivem.bat'"
|
|
|
|
CMD /c "%TEMP%\fivem.bat" yes
|
2024-04-11 21:55:48 +02:00
|
|
|
|
2024-04-08 18:17:17 +02:00
|
|
|
|
2024-10-29 17:03:25 +01:00
|
|
|
:: === Bloxstrap ==
|
|
|
|
ECHO Roblox shortcut creation...
|
|
|
|
PowerShell -Command "" ^
|
|
|
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
|
|
|
"$Shortcut = $WshShell.CreateShortcut('!startmenu!\Roblox.lnk');" ^
|
|
|
|
"$Shortcut.TargetPath = '%LOCALAPPDATA%\Bloxstrap\Bloxstrap.exe';" ^
|
|
|
|
"$Shortcut.Save()"
|
|
|
|
|
|
|
|
|
2023-11-07 04:43:34 +01:00
|
|
|
:: === Drivers notice ==
|
2024-07-02 11:16:26 +02:00
|
|
|
ECHO Installs drivers, for a list of drivers, use UserDiag https://userdiag.com/download
|
2024-11-27 17:26:27 +01:00
|
|
|
ECHO For GPU driver uninstallation, use DDU. For NVidia GPU driver isntallation, use NVC.
|
2023-11-07 04:43:34 +01:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
2023-11-07 04:43:34 +01:00
|
|
|
:: === End message ==
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO ""
|
2024-10-01 20:10:11 +02:00
|
|
|
ECHO About WSL, look at this: https://github.com/yuk7/ArchWSL/releases
|
|
|
|
ECHO ""
|
2024-07-02 11:16:26 +02:00
|
|
|
ECHO Take a look at your Windows settings, after you've done all the updates available on your PC.
|
|
|
|
ECHO Lastly, restart the computer.
|
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
|