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"
|
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 17:54:06 +02:00
|
|
|
:: === NO-ADMIN RIGHTS ==
|
2023-05-18 01:05:56 +02:00
|
|
|
fltmc >NUL 2>&1 || (
|
2023-11-07 04:43:34 +01:00
|
|
|
:: Notice
|
|
|
|
ECHO Please wait until the administrator popup appears
|
|
|
|
|
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
|
|
|
|
2023-09-13 11:51:35 +02:00
|
|
|
:: === Install Spotify ==
|
2023-11-23 17:21:24 +01:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/blockthespot.bat -OutFile '!local!\blockthespot.bat'"
|
2023-09-13 11:51:35 +02:00
|
|
|
DEL "%APPDATA%\Spotify"
|
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"
|
|
|
|
|
|
|
|
:: Start as administrator
|
|
|
|
PowerShell Start -Verb RunAs '%0' 2>NUL || (
|
|
|
|
EXIT 1
|
|
|
|
)
|
|
|
|
EXIT 0
|
2022-09-30 03:33:13 +02:00
|
|
|
)
|
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
:: === ADMIN RIGHTS ==
|
|
|
|
|
|
|
|
:: === Registery modifications ==
|
|
|
|
ECHO Registery entries...
|
2023-11-07 04:43:34 +01: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
|
|
|
|
2023-11-07 04:43:34 +01: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-11-07 04:43:34 +01: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-11-07 04:43:34 +01: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
|
|
|
|
|
2023-11-07 04:43:34 +01: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
|
|
|
|
2023-11-07 04:43:34 +01: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
|
|
|
|
2023-11-07 04:43:34 +01:00
|
|
|
:: Disables memory integrity
|
2022-10-17 21:16:25 +02:00
|
|
|
:: 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
|
|
|
|
2023-11-07 04:43:34 +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
|
|
|
|
2024-04-08 17:54:26 +02:00
|
|
|
:: Inverts the default shortcuts for changing input language and keyboard layout
|
|
|
|
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-11-07 04:43:34 +01: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-11-07 04:43:34 +01: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-11-07 04:43:34 +01:00
|
|
|
:: Disable Windows Copilot
|
2023-11-05 17:43:08 +01:00
|
|
|
REG ADD "HKCU\Software\Policies\Microsoft\Windows\WindowsCopilot" /v TurnOffWindowsCopilot /t REG_DWORD /d 1 /f
|
|
|
|
|
2023-11-07 04:43:34 +01:00
|
|
|
:: Disable checkboxes in explorer
|
2023-11-05 21:13:17 +01:00
|
|
|
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v AutoCheckSelect /t REG_DWORD /d 0 /f
|
|
|
|
|
2024-04-08 17:54:06 +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-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
|
|
|
|
|
|
|
:: Java dev kits
|
2023-09-13 11:51:35 +02:00
|
|
|
SET ^"java_jdk=^
|
|
|
|
EclipseAdoptium.Temurin.8.JDK EclipseAdoptium.Temurin.17.JDK"
|
2023-05-18 01:19:32 +02:00
|
|
|
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO JDK...
|
2023-07-06 17:21:31 +02:00
|
|
|
for %%i in (!java_jdk!) do (
|
2023-09-13 11:51:35 +02:00
|
|
|
!pmi! %%i
|
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=^
|
2023-11-05 17:37:32 +01:00
|
|
|
Discord.Discord Spotify.Spotify Mozilla.Firefox 7zip.7zip Obsidian.Obsidian ^
|
2023-09-16 14:57:20 +02:00
|
|
|
voidtools.Everything.Lite VideoLAN.VLC Parsec.Parsec Microsoft.PowerShell ^
|
2024-02-23 14:10:35 +01:00
|
|
|
Microsoft.VisualStudioCode Bitwarden.Bitwarden DuongDieuPhap.ImageGlass ^
|
|
|
|
TheDocumentFoundation.LibreOffice Armin2208.WindowsAutoNightMode GIMP.GIMP ^
|
2024-01-28 17:46:47 +01:00
|
|
|
OBSProject.OBSStudio Xournal++.Xournal++ Microsoft.PowerToys KDE.KDEConnect ^
|
2024-03-05 20:42:55 +01:00
|
|
|
OpenWhisperSystems.Signal TenacityTeam.Tenacity"
|
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
|
|
|
)
|
|
|
|
|
2024-02-12 10:25:02 +01:00
|
|
|
:: Games related - Osu! separated because of exclamation mark escaping
|
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 ^
|
|
|
|
Ryujinx.Ryujinx"
|
2023-05-18 15:19:02 +02:00
|
|
|
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO Games...
|
2024-02-12 10:25:02 +01:00
|
|
|
!pmi! Peppy.Osu^^!
|
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 17:54:06 +02:00
|
|
|
:: === Ryujinx shortcut ==
|
|
|
|
:: Installed from winget as a portable app
|
2024-03-15 18:26:51 +01:00
|
|
|
PowerShell -Command "" ^
|
|
|
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
|
|
|
"$exe = (Get-ChildItem $env:LOCALAPPDATA\Microsoft\WinGet\Packages\Ryujinx.Ryujinx_Microsoft.Winget.*\publish\Ryujinx.exe).FullName;" ^
|
|
|
|
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Ryujinx.lnk');" ^
|
|
|
|
"$Shortcut.TargetPath = $exe;" ^
|
|
|
|
"$Shortcut.Save()"
|
|
|
|
|
2024-04-08 17:54:06 +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
|
|
|
|
|
|
|
:: === 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
|
|
|
|
|
|
|
:: === Scripts from ./windows directory ==
|
2023-11-23 17:21:24 +01:00
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/ctmpf.bat -OutFile '!local!\ctmpf.bat'"
|
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/update.bat -OutFile '!local!\update.bat'"
|
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_nvidia_wsl.bat -OutFile '!local!\fix_nvidia_wsl.bat'"
|
|
|
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/vencord_installer.bat -OutFile '!local!\vencord_installer.bat'"
|
|
|
|
:: PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_obs_shortcut.bat -OutFile '!local!\fix_obs_shortcut.bat'"
|
2023-11-07 04:43:34 +01:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
2024-04-08 17:55:48 +02:00
|
|
|
:: === Geek Uninstaller ==
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO Geek Uninstaller...
|
2023-09-13 11:51:35 +02:00
|
|
|
PowerShell -Command "" ^
|
|
|
|
"$archive = '%TEMP%\geek.zip';" ^
|
2023-11-23 17:21:24 +01:00
|
|
|
"Invoke-WebRequest -Uri https://geekuninstaller.com/geek.zip -OutFile $archive;" ^
|
2023-11-05 19:44:03 +01:00
|
|
|
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Geek Uninstaller' -Force;" ^
|
2023-09-13 11:51:35 +02:00
|
|
|
"$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
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === LosslessCut ==
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO LosslessCut...
|
2023-09-13 11:51:35 +02:00
|
|
|
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;" ^
|
2023-11-23 17:21:24 +01:00
|
|
|
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
|
2023-09-13 11:51:35 +02:00
|
|
|
"cd $env:TEMP;" ^
|
2023-11-07 04:54:54 +01:00
|
|
|
"& $env:ProgramFiles\7-Zip\7z.exe x $archive -o'%ProgramFiles%\LosslessCut' -y;" ^
|
2023-09-13 11:51:35 +02:00
|
|
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
|
|
|
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\LosslessCut.lnk');" ^
|
|
|
|
"$Shortcut.TargetPath = '%ProgramFiles%\LosslessCut\LosslessCut.exe';" ^
|
2024-01-23 10:31:34 +01:00
|
|
|
"$Shortcut.Save();" ^
|
|
|
|
"Remove-Item -Force $archive"
|
2023-05-19 11:11:08 +02:00
|
|
|
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"
|
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === DSR ==
|
2023-11-05 14:35:29 +01:00
|
|
|
ECHO DSR...
|
2023-09-13 11:51:35 +02:00
|
|
|
PowerShell -Command "" ^
|
2023-11-11 15:11:51 +01:00
|
|
|
"$releases = 'https://git.mylloon.fr/api/v1/repos/Anri/dsr/releases/latest';" ^
|
|
|
|
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url;" ^
|
2023-09-13 11:51:35 +02:00
|
|
|
"$archive = '%TEMP%\dsr.zip';" ^
|
2023-11-23 17:21:24 +01:00
|
|
|
"Invoke-WebRequest -Uri $link -OutFile $archive;" ^
|
2023-11-11 17:22:52 +01:00
|
|
|
"Remove-Item '%LOCALAPPDATA%\DSR' -Recurse -ErrorAction SilentlyContinue;" ^
|
2023-11-11 15:11:51 +01:00
|
|
|
"Expand-Archive -Path $archive -DestinationPath '%LOCALAPPDATA%\DSR' -Force;" ^
|
|
|
|
"Move-Item -Path '%LOCALAPPDATA%\DSR\dsr-win32-x64\*' -Destination '%LOCALAPPDATA%\DSR' -Force;" ^
|
|
|
|
"Remove-Item '%LOCALAPPDATA%\DSR\dsr-win32-x64';" ^
|
2023-09-13 11:51:35 +02:00
|
|
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
|
|
|
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\DSR.lnk');" ^
|
2023-11-11 15:11:51 +01:00
|
|
|
"$Shortcut.TargetPath = '%LOCALAPPDATA%\DSR\dsr.exe';" ^
|
2024-01-23 10:31:34 +01:00
|
|
|
"$Shortcut.Save();" ^
|
|
|
|
"Remove-Item -Force $archive"
|
2023-08-01 11:23:17 +02:00
|
|
|
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr" /f /v DisplayName /t REG_SZ /d "DSR"
|
2023-11-11 15:11:51 +01:00
|
|
|
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\DSR"
|
2023-08-01 11:23:17 +02:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === Vencord ==
|
|
|
|
:: Use arleady 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;" ^
|
|
|
|
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\OpenTabletDriver.lnk');" ^
|
|
|
|
"$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...
|
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;" ^
|
|
|
|
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\OpenTabletDriver.lnk');" ^
|
|
|
|
"$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-01-22 16:46:47 +01:00
|
|
|
ECHO NOWT...
|
2023-11-07 04:19:43 +01:00
|
|
|
PowerShell -Command "" ^
|
2024-01-22 16:46:47 +01:00
|
|
|
"$exe = 'NOWT-Installer.exe';" ^
|
|
|
|
"$link = 'https://github.com/pwall2222/NOWT/releases/latest/download/' + $exe;" ^
|
|
|
|
"$file = Join-Path -Path '%TEMP%' -ChildPath $exe;" ^
|
|
|
|
"Invoke-WebRequest -Uri $link -OutFile $file;" ^
|
2024-01-23 14:44:31 +01:00
|
|
|
"Start-Process -Wait $file '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^
|
2024-01-23 10:31:34 +01:00
|
|
|
"Remove-Item -Force $file"
|
2023-11-07 04:19:43 +01:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === Deceive ==
|
2023-11-07 04:25:47 +01:00
|
|
|
ECHO Deceive...
|
2023-12-21 16:40:39 +01:00
|
|
|
MKDIR "%LOCALAPPDATA%\Deceive" 2>NUL
|
2023-11-07 04:25:47 +01:00
|
|
|
PowerShell -Command "" ^
|
|
|
|
"$exe = 'Deceive.exe';" ^
|
|
|
|
"$link = 'https://github.com/molenzwiebel/Deceive/releases/latest/download/' + $exe;" ^
|
2023-12-21 16:40:39 +01:00
|
|
|
"$outfile = Join-Path -Path '%LOCALAPPDATA%\Deceive' -ChildPath $exe;" ^
|
|
|
|
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
|
2023-11-07 04:25:47 +01:00
|
|
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
|
|
|
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Deceive.lnk');" ^
|
2023-12-21 16:18:35 +01:00
|
|
|
"$Shortcut.TargetPath = $outfile;" ^
|
2023-11-07 04:25:47 +01:00
|
|
|
"$Shortcut.Save()"
|
|
|
|
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v DisplayName /t REG_SZ /d "Deceive"
|
2023-12-21 16:40:39 +01:00
|
|
|
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\Deceive"
|
2023-11-07 04:25:47 +01:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === Xournal++ ==
|
2024-04-08 17:59:45 +02:00
|
|
|
:: TODO: Winget report an incorrect hash on installation,
|
|
|
|
:: that's why we're installing it manually
|
2023-11-07 04:43:34 +01:00
|
|
|
:: ECHO Xournal++...
|
|
|
|
:: PowerShell -Command "" ^
|
|
|
|
:: "$repo = 'xournalpp/xournalpp';" ^
|
|
|
|
:: "$releases = \"https://api.github.com/repos/$repo/releases\";" ^
|
|
|
|
:: "$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[1].tag_name;" ^
|
|
|
|
:: "$file = \"xournalpp-$($tag.substring(1))-windows.zip\";" ^
|
|
|
|
:: "$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^
|
|
|
|
:: "$archive = 'xournalpp.zip';" ^
|
|
|
|
:: "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
|
2023-11-23 17:21:24 +01:00
|
|
|
:: "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
|
2023-11-07 04:43:34 +01:00
|
|
|
:: "cd $env:TEMP;" ^
|
|
|
|
:: "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^
|
|
|
|
:: "$exe = $env:TEMP + '\' + $file.Substring(0, $file.Length - 3) + 'exe';" ^
|
2024-01-23 10:31:34 +01:00
|
|
|
:: "Start-Process $exe /S;" ^
|
|
|
|
:: "Remove-Item -Force $outfile;" ^
|
|
|
|
:: "Remove-Item -Force $exe"
|
2023-11-07 04:43:34 +01:00
|
|
|
|
2024-04-08 17:54:06 +02:00
|
|
|
|
|
|
|
:: === Minecraft ==
|
|
|
|
:: Rename shortcut for Minecraft
|
|
|
|
RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Minecraft.lnk
|
|
|
|
|
|
|
|
|
|
|
|
:: === Cubiomes viewer ==
|
2024-02-04 22:50:34 +01:00
|
|
|
ECHO Cubiomes viewer...
|
|
|
|
MKDIR "%LOCALAPPDATA%\cubiomes-viewer" 2>NUL
|
|
|
|
PowerShell -Command "" ^
|
|
|
|
"$exe = 'cubiomes-viewer-static-win.exe';" ^
|
|
|
|
"$link = 'https://github.com/Cubitect/cubiomes-viewer/releases/latest/download/' + $exe;" ^
|
|
|
|
"$outfile = Join-Path -Path '%LOCALAPPDATA%\cubiomes-viewer' -ChildPath $exe;" ^
|
|
|
|
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
|
|
|
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
|
|
|
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\cubiomes-viewer.lnk');" ^
|
|
|
|
"$Shortcut.TargetPath = $outfile;" ^
|
|
|
|
"$Shortcut.Save()"
|
|
|
|
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\cubiomes-viewer" /f /v DisplayName /t REG_SZ /d "cubiomes-viewer"
|
|
|
|
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\cubiomes-viewer" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\cubiomes-viewer"
|
|
|
|
|
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...
|
|
|
|
FOR /F %%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-04-08 17:54:06 +02:00
|
|
|
ECHO La configuration des differents Addons de Firefox est presente dans le dossier Téléchargement (%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 ==
|
|
|
|
:: TODO: Replaced by NVidia Shadowplay
|
|
|
|
:: OBS replay buffer at startup
|
2023-11-07 04:43:34 +01: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';" ^
|
|
|
|
:: "$Shortcut.Arguments = '--disable-missing-files-check --minimize-to-tray " ^
|
|
|
|
:: "--startreplaybuffer --profile ""ReplayBuffer"""" --scene ""ReplayBuffer""""';" ^
|
|
|
|
:: "$Shortcut.Save()"
|
|
|
|
:: :: Default shortcut should start default profile
|
2023-11-07 04:51:01 +01:00
|
|
|
:: CALL "!local!\fix_obs_shortcut.bat" yes
|
2023-11-07 04:43:34 +01:00
|
|
|
:: :: Allow system to go in sleep mode when OBS is running
|
|
|
|
:: powercfg -requestsoverride process obs64.exe display system awaymode
|
|
|
|
|
2024-04-08 18:17:17 +02:00
|
|
|
|
|
|
|
:: === miHoYo Games launcher ==
|
|
|
|
ECHO Collapse...
|
|
|
|
PowerShell -Command "" ^
|
|
|
|
"$repo = 'CollapseLauncher/Collapse';" ^
|
|
|
|
"$releases = \"https://api.github.com/repos/$repo/releases/latest\";" ^
|
|
|
|
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url[0];" ^
|
|
|
|
"$exe = 'collapse-installer.exe';" ^
|
|
|
|
"$outFile = Join-Path -Path $env:TEMP -ChildPath $exe;" ^
|
|
|
|
"Invoke-WebRequest -Uri $link -OutFile $outFile;" ^
|
|
|
|
"Start-Process -Wait $outFile '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^
|
|
|
|
"Remove-Item -Force $outFile"
|
|
|
|
|
|
|
|
|
2024-03-10 22:36:42 +01:00
|
|
|
:: === DaVinci Resolve ==
|
|
|
|
ECHO Lien utile pour télécharger la dernière version de DaVinci Resolve :
|
|
|
|
ECHO https://www.blackmagicdesign.com/support/family/davinci-resolve-and-fusion
|
|
|
|
|
2024-04-08 17:55:48 +02:00
|
|
|
|
2023-11-07 04:43:34 +01:00
|
|
|
:: === Drivers notice ==
|
|
|
|
ECHO Installe les pilotes, pour connaitre la liste des pilotes, utilise UserDiag https://userdiag.com/download
|
|
|
|
ECHO Pour NVidia, utilise NVC et DDU
|
|
|
|
|
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 ""
|
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
|