Seite 1 von 1

32/64 Bit Unterscheidung?

Verfasst: 02 Jul 2015, 15:48
von mhaegele
Hallo,
hat jemand vielleicht einen Codeschnipsel if/else etc. um 32 bzw. 64 Bit abzufragen?

Anfang um Win7 festzustellen:

Code: Alles auswählen

if ($MinorOS$ = "Windows Vista") AND ($INST_NTVersion$ = "6.1")
Verzweigung 32/64 Bit?

Danke Vorab!
MH

Re: 32/64 Bit Unterscheidung?

Verfasst: 02 Jul 2015, 15:59
von zylex
so zB:

Code: Alles auswählen

Set $INST_SystemType$ = GetSystemType
Set $INST_architecture$ = GetProductProperty("install_architecture","system specific")

if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
....
endif
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
....
endif