2021-01-12 22:04:21 +01:00
|
|
|
@echo off
|
|
|
|
|
2021-03-06 16:23:00 +01:00
|
|
|
set OPT=..\optional
|
2021-01-12 22:04:21 +01:00
|
|
|
set SOFTWARE=..\software
|
2021-02-27 20:07:28 +01:00
|
|
|
set MSI=emclient-setup.msi
|
2021-01-12 22:04:21 +01:00
|
|
|
|
2021-02-27 20:07:28 +01:00
|
|
|
if NOT EXIST %SOFTWARE%\%MSI% (
|
|
|
|
echo ERROR: %SOFTWARE%\%MSI% not found!
|
|
|
|
exit /b
|
|
|
|
)
|
2021-01-12 22:04:21 +01:00
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
|
|
|
cd %SOFTWARE%
|
|
|
|
@echo on
|
2021-02-28 14:10:59 +01:00
|
|
|
msiexec /i %MSI% /quiet
|
2021-01-12 22:04:21 +01:00
|
|
|
@echo off
|
2021-03-06 16:23:00 +01:00
|
|
|
cd %OPT%
|
2021-01-12 22:04:21 +01:00
|
|
|
|
2021-02-28 14:10:59 +01:00
|
|
|
rem copy link to desktop ...
|
2021-01-12 22:04:21 +01:00
|
|
|
copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\eM Client.lnk" ^
|
|
|
|
%PUBLIC%\Desktop
|
|
|
|
|
2021-02-13 10:46:20 +01:00
|
|
|
rem remove autostart for em-Client ...
|
2021-02-28 14:10:59 +01:00
|
|
|
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" ^
|
|
|
|
/v "eM Client" /f
|
2021-02-13 10:46:20 +01:00
|
|
|
|
2021-03-02 14:21:58 +01:00
|
|
|
taskkill /F /IM SystemSettings.exe 2>nul
|
2021-02-28 22:53:42 +01:00
|
|
|
|
2021-03-06 16:23:00 +01:00
|
|
|
rem refresh desktop (W10 style)
|
|
|
|
ie4uinit.exe -show
|
|
|
|
|
2021-01-12 22:04:21 +01:00
|
|
|
echo ####### %0 #######
|
2021-03-02 21:47:42 +01:00
|
|
|
pause
|
|
|
|
|