w10install/optional/unpack-winauth.cmd

27 lines
545 B
Batchfile
Raw Normal View History

2021-08-29 20:44:10 +02:00
@echo off
set TOOLS=c:\tools
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 ...
2022-06-19 17:19:45 +02:00
%TOOLS%\7z x -y -aoa -o"%ProgramFiles(x86)%" %ZIP%
2021-08-29 20:44:10 +02:00
echo copy startmenu link ...
copy /Y startmenu\WinAuth.lnk %STARTMENU%
copy /Y startmenu\WinAuth.lnk %PUBLIC%\Desktop
echo ####### %0 #######
pause