Code: Alles auswählen
if ( (GetSystemType = "x86 System") OR (GetOS = "Linux") )
LogError "32Bit or Linux is not supported for " + $ProductId$
isFatalError "Win64Bit only!"
else
comment "Win64Bit= ok"
endif
Code: Alles auswählen
(103) [6] [Okt 05 06:35:48:703] [wireshark] If
(104) [5] [Okt 05 06:35:48:703] [wireshark] GetSystemType = "x86 System" <<< result false
(105) [5] [Okt 05 06:35:48:703] [wireshark] GetOS = "Linux" <<< result false
(106) [5] [Okt 05 06:35:48:703] [wireshark] (GetOS = "Linux") <<< result false
(107) [5] [Okt 05 06:35:48:703] [wireshark] (GetSystemType = "x86 System") OR (GetOS = "Linux") <<< result false
(108) [6] [Okt 05 06:35:48:703] [wireshark] Then
(109) [6] [Okt 05 06:35:48:703] [wireshark] Else
(110) [5] [Okt 05 06:35:48:703] [wireshark] comment: Win64Bit= ok
(111) [6] [Okt 05 06:35:48:703] [wireshark] EndIf
Code: Alles auswählen
if GetSystemType = "x86 System" OR GetOS = "Linux"
LogError "32Bit or Linux is not supported for " + $ProductId$
isFatalError "Win64Bit only!"
else
comment "Win64Bit= ok"
endif
Code: Alles auswählen
(103) [6] [Okt 05 06:42:34:057] [wireshark] If
(104) [5] [Okt 05 06:42:34:057] [wireshark] GetOS = "Linux" <<< result false
(105) [5] [Okt 05 06:42:34:057] [wireshark] GetSystemType = "x86 System" OR GetOS = "Linux" <<< result false
(106) [6] [Okt 05 06:42:34:057] [wireshark] Then
(107) [6] [Okt 05 06:42:34:057] [wireshark] Else
(108) [5] [Okt 05 06:42:34:057] [wireshark] comment: Win64Bit= ok
(109) [6] [Okt 05 06:42:34:057] [wireshark] EndIf
Hier nun die Frage - was ist 'best praktice' beim Scripten?