Skip to content

Commit

Permalink
Update install-raccine.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo23x0 committed Jun 1, 2021
1 parent 99f597f commit cf9ff3d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions install-raccine.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
:: Not Admin
:: If error flag set, we do not have admin.
IF '%errorlevel%' NEQ '0' (
:: Make sure that the release package with the compiled binaries has been downloaded and not just the source code
IF NOT EXIST Raccine.exe GOTO PACKAGE_ERROR
IF NOT EXIST Raccine_x86.exe GOTO PACKAGE_ERROR
IF NOT EXIST RaccineRulesSync.exe GOTO PACKAGE_ERROR
IF NOT EXIST RaccineElevatedCfg.exe GOTO PACKAGE_ERROR
IF NOT EXIST RaccineSettings.exe GOTO PACKAGE_ERROR
:: Now escalate privileges
ECHO Requesting administrative privileges...
GOTO UACPrompt
) ELSE ( GOTO gotAdmin )
Expand All @@ -47,13 +54,6 @@ IF '%errorlevel%' NEQ '0' (
PUSHD "%CD%"
CD /D "%~dp0"

:: Make sure that the release package with the compiled binaries has been downloaded and not just the source code
IF NOT EXIST Raccine.exe GOTO PACKAGE_ERROR
IF NOT EXIST Raccine_x86.exe GOTO PACKAGE_ERROR
IF NOT EXIST RaccineRulesSync.exe GOTO PACKAGE_ERROR
IF NOT EXIST RaccineElevatedCfg.exe GOTO PACKAGE_ERROR
IF NOT EXIST RaccineSettings.exe GOTO PACKAGE_ERROR

:: Check Architecture and set postfix
SET ARCH=
IF "%PROCESSOR_ARCHITECTURE%" EQU "x86" (
Expand Down

0 comments on commit cf9ff3d

Please sign in to comment.