REM echo Y|cacls %~dp0 /C /P administrator:F
Icacls "%~dp0\" /grant Administrator:(D,WDAC) /T

rem echo %~dp0
rem net stop mmsZeroDamon 

rem "%~dp0instsrv.exe" mmsZeroDamon REMOVE

rem set regpath=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run\
rem reg delete %regpath% /v zeroDamon /f
rem reg add %regpath% /v zeroDamon /t REG_SZ /d "%~dp0zeroDamon.exe -p 18099 -v 0" /f

rem start %~dp0zeroDamon.exe -p 18099 -v 0 

REM "%~dp0instsrv.exe" mmsZeroDamon "%~dp0srvany.exe"

REM set regpath=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mmsZeroDamon\Parameters\

REM reg add %regpath% /v AppDirectory /t REG_SZ /d "%~dp0\" /f
REM reg add %regpath% /v Application /t REG_SZ /d "%~dp0zeroDamon.exe" /f
REM reg add %regpath% /v AppParameters /t REG_SZ /d "-p 18099"/f

REM net start mmsZeroDamon 
regsvr32 /s "%~dp0/ScreenCapture.ax"
regsvr32 /s "%~dp0/FoxitReader_AX_Pro.ocx"
