use temp directory instead of downloads

This commit is contained in:
Mylloon 2023-05-18 01:24:27 +02:00
parent e02864ee63
commit a94c99010e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -167,22 +167,22 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_nvidia_wsl.bat -O
:: === Install OpenTabletDriver ==
:: Download
PowerShell -Command "Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile '%HOMEPATH%\Downloads\OpenTabletDriver.win-x64.zip'"
PowerShell -Command "Invoke-WebRequest -Uri https://opentabletdriver.net/Release/Download/OpenTabletDriver.win-x64.zip -OutFile '%TEMP%\OpenTabletDriver.win-x64.zip'"
:: Extract
PowerShell -Command "Expand-Archive -Path '%HOMEPATH%\Downloads\OpenTabletDriver.win-x64.zip' -DestinationPath '%ProgramFiles%\OpenTabletDriver'"
PowerShell -Command "Expand-Archive -Path '%TEMP%\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() }"
:: WindowsInk
PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/vmulti-bin/releases/download/v1.0/Driver.zip -OutFile '%HOMEPATH%\Downloads\Driver-VMulti.zip'"
PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/vmulti-bin/releases/download/v1.0/Driver.zip -OutFile '%TEMP%\Driver-VMulti.zip'"
:: Extract
PowerShell -Command "Expand-Archive -Path '%HOMEPATH%\Downloads\Driver-VMulti.zip' -DestinationPath '%HOMEPATH%\Downloads\Driver-VMulti'"
PowerShell -Command "Expand-Archive -Path '%TEMP%\Driver-VMulti.zip' -DestinationPath '%TEMP%\Driver-VMulti'"
:: Install driver
CALL %HOMEPATH%\Downloads\Driver-VMulti\64\install_hiddriver.bat
CALL %TEMP%\Driver-VMulti\64\install_hiddriver.bat
:: Download plugin
PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/VoiDPlugins/releases/latest/download/WindowsInk.zip -OutFile '%HOMEPATH%\Downloads\WindowsInk.zip'"
PowerShell -Command "Invoke-WebRequest -Uri https://github.com/X9VoiD/VoiDPlugins/releases/latest/download/WindowsInk.zip -OutFile '%TEMP%\WindowsInk.zip'"
:: Extract plugin
PowerShell -Command "Expand-Archive -Path '%HOMEPATH%\Downloads\WindowsInk.zip' -DestinationPath '%LOCALAPPDATA%\OpenTabletDriver\Plugins\Windows Ink'"
PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPath '%LOCALAPPDATA%\OpenTabletDriver\Plugins\Windows Ink'"
:: === Miscellaneous ==
:: Rename shortcut for Minecraft