w10install/optional/install-ausweisapp.cmd

32 lines
522 B
Batchfile
Raw 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
2024-03-07 12:26:39 +01:00
set MSI=ausweisapp-setup.msi
2022-11-13 22:12:39 +01:00
if NOT EXIST %SOFTWARE%\%MSI% (
echo ERROR: %SOFTWARE%\%MSI% not found!
exit /b
)
echo ####### %0 #######
2024-03-07 12:26:39 +01:00
echo installing Ausweisapp ...
2022-11-13 22:12:39 +01:00
cd %SOFTWARE%
@echo on
msiexec /i %MSI% /quiet
@echo off
cd %OPT%
2024-03-07 12:26:39 +01:00
echo removing Ausweisapp Desktop icon ...
del /F /Q %PUBLIC%\Desktop\AusweisApp.lnk 2>nul
2022-11-13 22:12:39 +01:00
rem refresh desktop (W10 style)
ie4uinit.exe -show
echo ####### %0 #######
pause