From 99f597f814c20a11985bcdd4d767027464f3b17d Mon Sep 17 00:00:00 2001 From: Florian Roth Date: Fri, 14 May 2021 16:15:15 +0200 Subject: [PATCH] refactor: new location of check --- install-raccine.bat | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install-raccine.bat b/install-raccine.bat index ea45d9f..4e081fa 100644 --- a/install-raccine.bat +++ b/install-raccine.bat @@ -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 :------------------------------------- @@ -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" (