You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
592 B
13 lines
592 B
@echo off
|
|
REM Only run if needed
|
|
SET /A USER_RUN=0
|
|
SET /A ADMIN_RUN=0
|
|
reg query "HKLM\Software\FWS\Updates\User" /v RunOnShutdown 1>NUL 2>NUL
|
|
IF %ERRORLEVEL% EQU 0 FOR /F "tokens=3" %%A IN ('reg query "HKLM\Software\FWS\Updates\User" /v RunOnShutdown') DO SET /A USER_RUN=%%A
|
|
reg query "HKLM\Software\FWS\Updates" /v RunOnShutdown 1>NUL 2>NUL
|
|
IF %ERRORLEVEL% EQU 0 FOR /F "tokens=3" %%A IN ('reg query "HKLM\Software\FWS\Updates" /v RunOnShutdown') DO SET /A ADMIN_RUN=%%A
|
|
|
|
IF %USER_RUN% NEQ 1 IF %ADMIN_RUN% NEQ 1 goto :EOF
|
|
|
|
call %SystemDrive%\FWSUpdates\bin\wpkg_feedback.bat
|
|
|
|
|