Files
fogsnippets/45_SabreHandwrittenNotes/install_sabrehandwrittennotes.cmd
Stefan Tollkühn ec74d4a2c1 Initial commit
2025-09-18 14:02:17 +02:00

13 lines
676 B
Batchfile

@echo off
set SABERVERSION=%1
set DOWNLOADFILE="%TEMP%\SaberInstaller_v%SABERVERSION%.exe"
:: download Sabre Handwritten Notes
"%SYSTEMROOT%\System32\bitsadmin.exe" /transfer /download https://github.com/saber-notes/saber/releases/download/v%SABERVERSION%/SaberInstaller_v%SABERVERSION%.exe %DOWNLOADFILE% >nul
:: install Sabre Handwritten Notes
"%DOWNLOADFILE%" /VERYSILENT /NORESTART /ALLUSERS /LOG="%TEMP%\SaberInstaller_v%SABERVERSION%.exe.log"
:: create Desktop Shortcut
powershell.exe "$s=(New-Object -COM WScript.Shell).CreateShortcut('C:\Users\Public\Desktop\Saber.lnk');$s.TargetPath='%ProgramW6432%\Saber\saber.exe';C:\Users\Administrator> $s.Save()"