From 63c0c2fde593aa6470aaee548ac0bf8623bf412f Mon Sep 17 00:00:00 2001 From: xhmikosr Date: Thu, 20 Aug 2009 17:57:41 +0000 Subject: [PATCH] release.cmd: detection of Inno Setup should work now on 64bit WIN git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1724 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- trunk/ProcessHacker/Build/release.cmd | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/trunk/ProcessHacker/Build/release.cmd b/trunk/ProcessHacker/Build/release.cmd index 894982ecb..dedd181c3 100644 --- a/trunk/ProcessHacker/Build/release.cmd +++ b/trunk/ProcessHacker/Build/release.cmd @@ -52,8 +52,17 @@ DEL/f/a %RequiredDLLs% "ProcessHacker.Common.xml"^ REM Delete the temporary directory RD tmp >NUL 2>&1 -REM Set the path of Inno Setup and compile installer +REM Detect if we are running on 64bit WIN and use Wow6432Node, set the path +REM of Inno Setup accordingly and compile installer +IF "%PROGRAMFILES(x86)%zzz"=="zzz" GOTO :32BIT +SET "U_=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" +GOTO :common + +:32BIT SET "U_=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" +GOTO :common + +:common SET "I_=Inno Setup" SET "A_=%I_% 5" SET "M_=Inno Setup IS NOT INSTALLED!!!"