rem version: patch a
@echo off

goto :Start

rem ##################################################################
:PatchActions

echo sleep for 1..2 seconds
timeout /t 2
echo after sleep

echo PatchActions running...

%SYSTEMDRIVE%\Windows\system32\reg.exe import "%ProgramData%\Kaspersky Lab\Kaspersky Password Manager for Business 26.0\Data\patch_config.reg" /reg:32

rem restart kpm
start "" "%ProgramFiles(x86)%\Kaspersky Lab\Kaspersky Password Manager for Business 26.0\kpm.exe" kpm:selfRestart

:PatchActionsEnd
echo after PatchActionsEnd
exit /b


rem ##################################################################
:Start

call :PatchActions
echo after PatchActions

echo before end
:End
echo after end
