Skip to content

Commit

Permalink
refactor: new location of check
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo23x0 committed May 14, 2021
1 parent 74039f9 commit 99f597f
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 @@ -15,13 +15,6 @@ SET ARCHITECTURE_SUFFIX=32
SET ARCHITECTURE_SUFFIX_X=86
)

:: 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

:: BatchGotAdmin
:: Source: https://stackoverflow.com/a/10052222
:-------------------------------------
Expand Down Expand Up @@ -54,6 +47,13 @@ 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 99f597f

Please sign in to comment.