31 lines
631 B
Batchfile
31 lines
631 B
Batchfile
@echo off
|
|
|
|
set SCRIPTS=..\scripts
|
|
set SOFTWARE=..\software
|
|
set MSI=emclient-setup.msi
|
|
|
|
if NOT EXIST %SOFTWARE%\%MSI% (
|
|
echo ERROR: %SOFTWARE%\%MSI% not found!
|
|
exit /b
|
|
)
|
|
|
|
echo ####### %0 #######
|
|
|
|
cd %SOFTWARE%
|
|
@echo on
|
|
msiexec /i %MSI% /quiet
|
|
@echo off
|
|
cd %SCRIPTS%
|
|
|
|
rem copy link to desktop ...
|
|
copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\eM Client.lnk" ^
|
|
%PUBLIC%\Desktop
|
|
|
|
rem remove autostart for em-Client ...
|
|
reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" ^
|
|
/v "eM Client" /f
|
|
|
|
taskkill /F /IM SystemSettings.exe2>nul
|
|
|
|
echo ####### %0 #######
|