w10install/optional/unpack-winauth.cmd
Michael H.G. Schmidt 797daa23a1 normal Users ... #61
2022-11-13 22:12:39 +01:00

27 lines
513 B
Batchfile

@echo off
call check-for-admin
set ZIP=..\software\winauth.zip
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
if NOT EXIST %ZIP% (
echo ERROR: %ZIP% not found!
exit /b
)
echo ####### %0 #######
echo killing WinAuth processes...
taskkill /F /IM winauth.exe 2>nul
echo unpacking WinAuth ...
7z x -y -aoa -o"%ProgramFiles(x86)%" %ZIP%
echo copy startmenu link ...
copy /Y startmenu\WinAuth.lnk %STARTMENU%
copy /Y startmenu\WinAuth.lnk %PUBLIC%\Desktop
echo ####### %0 #######
pause