13 lines
676 B
Batchfile
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()" |