w10install/optional/install-ausweisapp2.cmd

30 lines
505 B
Batchfile
Raw Normal View History

2022-05-15 20:08:00 +02:00
@echo off
set OPT=..\optional
set SOFTWARE=..\software
2022-05-16 08:14:21 +02:00
set MSI=ausweisapp2-setup.msi
2022-05-15 20:08:00 +02:00
if NOT EXIST %SOFTWARE%\%MSI% (
echo ERROR: %SOFTWARE%\%MSI% not found!
exit /b
)
echo ####### %0 #######
2022-05-16 08:14:21 +02:00
echo installing Ausweisapp 2 ...
2022-05-15 20:08:00 +02:00
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