diff --git a/optional/install-drawio.cmd b/optional/install-drawio.cmd new file mode 100644 index 0000000..129d272 --- /dev/null +++ b/optional/install-drawio.cmd @@ -0,0 +1,34 @@ +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set SOFTWARE=..\software +set MSI=drawio-setup.msi +set STARTMENU=%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs +set STARTMENU_USER=%APPDATA%\Microsoft\Windows\Start Menu\Programs + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing Draw-IO ... +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /passive +@echo off +cd %OPT% + +echo moving Draw-IO startmenu shortcut ... +move /Y "%STARTMENU_USER%\draw.io.lnk" "%STARTMENU%" +icacls "%STARTMENU%\draw.io.lnk" /grant Users:R + +echo moving Draw-IO desktop link to public desktop ... +move /Y "%USERPROFILE%\Desktop\draw.io.lnk" "%PUBLIC%\Desktop" +icacls "%PUBLIC%\Desktop\draw.io.lnk" /grant Users:R + +echo ####### %0 ####### +pause + diff --git a/software/optional.csv b/software/optional.csv index e7abd5b..86289a4 100644 --- a/software/optional.csv +++ b/software/optional.csv @@ -35,4 +35,4 @@ https://download3.pdf24.org/pdf24-creator-11.1.0.msi pdf24-setup.msi https://static.tp-link.com/2019/201911/20191115/Archer-T5E(UN)_V1_191116_Bluetooth.zip archerT5E-bluetooth.zip https://static.tp-link.com/2019/201911/20191115/Archer-T5E(UN)_V1_191116_Wi-Fi.zip archerT5E-wifi.zip https://www.heidisql.com/installers/HeidiSQL_12.3.0.6589_Setup.exe heidisql-setup.exe - +https://github.com/jgraph/drawio-desktop/releases/download/v21.6.5/draw.io-21.6.5.msi drawio-setup.msi