32/64 Bit Unterscheidung?

Antworten
mhaegele
Beiträge: 293
Registriert: 18 Aug 2010, 13:55

32/64 Bit Unterscheidung?

Beitrag 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
zylex
Beiträge: 75
Registriert: 23 Jan 2013, 08:55

Re: 32/64 Bit Unterscheidung?

Beitrag 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
Antworten