w10install/optional/install-ausweisapp2.cmd

32 lines
527 B
Batchfile
Raw Permalink Normal View History

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