@@ -32,7 +32,7 @@ if %errorlevel% equ 0 (
3232)
3333
3434REM Check for Visual C++ 2019 Redistributable (x86)
35- reg query " HKLM\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" /v Installed 2 > nul | find " 0x1" > nul
35+ reg query " HKLM\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" /v Installed /reg:32 2 > nul | find " 0x1" > nul
3636if %errorlevel% equ 0 (
3737 echo [OK] Visual C++ 2019 Redistributable ^ (x86^ ) is installed
3838) else (
@@ -64,7 +64,7 @@ if %errorlevel% equ 0 (
6464 echo Download from: https://aka.ms/vs/17/release/vc_redist.x64.exe >> " %log_file% "
6565)
6666
67- reg query " HKLM\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" /v Installed 2 > nul | find " 0x1" > nul
67+ reg query " HKLM\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" /v Installed /reg:32 2 > nul | find " 0x1" > nul
6868if %errorlevel% equ 0 (
6969 echo [OK] Visual C++ 2019 Redistributable (x86) is installed >> " %log_file% "
7070) else (
@@ -125,11 +125,11 @@ if "%DUMPBIN_X86:~1,-1%" == "" (
125125 echo Using dumpbin x86: %DUMPBIN_X86%
126126 echo Using dumpbin x86: %DUMPBIN_X86% >> %log_file%
127127 echo . >> %log_file%
128- if exist " %SystemRoot% \System32 \inetsrv\ModSecurityIIS.dll" (
128+ if exist " %SystemRoot% \SysWOW64 \inetsrv\ModSecurityIIS.dll" (
129129 echo ================================================ >> %log_file%
130130 echo 32-bit ModSecurityIIS.dll dependencies: >> %log_file%
131131 echo ================================================ >> %log_file%
132- %DUMPBIN_X86% /imports /dependents " %SystemRoot% \System32 \inetsrv\ModSecurityIIS.dll" >> %log_file% 2 >& 1
132+ %DUMPBIN_X86% /imports /dependents " %SystemRoot% \SysWOW64 \inetsrv\ModSecurityIIS.dll" >> %log_file% 2 >& 1
133133 )
134134 if not " %* " == " " (
135135 echo . >> %log_file%
@@ -150,11 +150,11 @@ if "%DUMPBIN_X64:~1,-1%" == "" (
150150 echo Using dumpbin x64: %DUMPBIN_X64%
151151 echo Using dumpbin x64: %DUMPBIN_X64% >> %log_file%
152152 echo . >> %log_file%
153- if exist " %SystemRoot% \SysWOW64 \inetsrv\ModSecurityIIS.dll" (
153+ if exist " %SystemRoot% \System32 \inetsrv\ModSecurityIIS.dll" (
154154 echo ================================================ >> %log_file%
155155 echo 64-bit ModSecurityIIS.dll dependencies: >> %log_file%
156156 echo ================================================ >> %log_file%
157- %DUMPBIN_X64% /imports /dependents " %SystemRoot% \SysWOW64 \inetsrv\ModSecurityIIS.dll" >> %log_file% 2 >& 1
157+ %DUMPBIN_X64% /imports /dependents " %SystemRoot% \System32 \inetsrv\ModSecurityIIS.dll" >> %log_file% 2 >& 1
158158 )
159159 if not " %* " == " " (
160160 echo . >> %log_file%
0 commit comments