add opentabletdriver

This commit is contained in:
Mylloon 2023-01-04 11:44:42 +01:00
parent 6c87759d6e
commit bdaaf28fe6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -117,6 +117,14 @@ powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/ra
powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/windows/spotx.bat -OutFile %HOMEPATH%\Documents\Local\spotx.bat"
powershell -Command "Invoke-WebRequest -Uri https://git.kennel.ml/Anri/confOS/raw/branch/main/windows/update.bat -OutFile %HOMEPATH%\Documents\Local\update.bat"
:: === OpenTabletDriver ==
:: Download
powershell -Command "Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile %HOMEPATH%\Downloads\OpenTabletDriver.win-x64.zip"
:: Extract
powershell -Command "Expand-Archive -Path %HOMEPATH%\Downloads\OpenTabletDriver.win-x64.zip -DestinationPath '%ProgramFiles%\OpenTabletDriver'"
:: Create shortcut
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.Save() }"
:: === Miscellaneous ==
:: Rename shortcut for Minecraft
C:\Users\anri\AppData\Roaming\Microsoft\Windows\Start Menu\Programs