w10install/optional/install-ausweisapp.cmd
Michael H.G. Schmidt bc7c372d2e MS-Office integrated
2024-09-08 19:53:09 +02:00

32 lines
553 B
Batchfile

@echo off
call check-for-admin
if %ERRORLEVEL% neq 0 exit /b
set OPT=..\optional
set SOFTWARE=..\software
set MSI=ausweisapp-setup.msi
if NOT EXIST %SOFTWARE%\%MSI% (
echo ERROR: %SOFTWARE%\%MSI% not found!
exit /b
)
echo ####### %0 #######
echo installing Ausweisapp ...
cd %SOFTWARE%
@echo on
msiexec /i %MSI% /quiet
@echo off
cd %OPT%
echo removing Ausweisapp Desktop icon ...
del /F /Q %PUBLIC%\Desktop\AusweisApp.lnk 2>nul
rem refresh desktop (W10 style)
ie4uinit.exe -show
echo ####### %0 #######
pause