View Single Post
Old 2nd February 2012, 13:49   #3
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
read help file chapter "4.2.3 Constants"
PHP Code:
  ;Var BITVERSION
  
;Var ERROR
  
;32/64bit
  
;Call bitversion
  
;StrCmp $ERROR "1" jump_error
Function bitversion
  GetVersion
::WindowsPlatformArchitecture
  Pop $BITVERSION
  StrCmp $BITVERSION 
"64" bit64
  StrCmp $BITVERSION 
"32" 0 error
  
;bit32:
    
SetRegView 32
    Sleep 500
    
Goto done
  bit64
:
    ; 
disable registry redirection (enable access to 64-bit portion of registry)
    
SetRegView 64
    Sleep 500
    
Goto done
  error
:
    
StrCpy $ERROR "1"
  
done:
  ;
messagebox mb_ok "'$BITVERSION'"
FunctionEnd 
Brummelchen is offline   Reply With Quote