Ich habe folgendes Problem. In einem Skript wird die $NTVersion$ zur Installation überprüft. Dazu wird sie zuerst gesetzt.
Code: Alles auswählen
set $NTVersion$ = GetNTVersion
Code: Alles auswählen
if ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" )
Code: Alles auswählen
[1] [Sep 29 16:38:48:291] --
[1] [Sep 29 16:38:48:292] --
[1] [Sep 29 16:38:48:293] c:\tmp\opsi-script-part-An13Et20.log
[1] [Sep 29 16:38:48:294]
[1] [Sep 29 16:38:48:295]
[1] [Sep 29 16:38:48:296] opsi-winst 4.11.4.17 started at 9/29/2015 16:37:33
[1] [Sep 29 16:38:48:297] ======= APPEND 9/29/2015 16:38:48
[1] [Sep 29 16:38:48:327]
[1] [Sep 29 16:38:48:328] ============ Version 4.11.4.17 script "\\10.1.1.45\opsi_depot\office365\setup.ins"
[1] [Sep 29 16:38:48:329] used script encoding: cp1252
[1] [Sep 29 16:38:48:330] used system encoding: cp1252
[1] [Sep 29 16:38:48:331] start: 2015-09-29 16:38:48
[1] [Sep 29 16:38:48:332] on client named "NOTE-0346"
[1] [Sep 29 16:38:48:334] loggedin user "admin"
[1] [Sep 29 16:38:48:335] winst running as "admin"
[1] [Sep 29 16:38:48:337] winst running with admin privileges
[1] [Sep 29 16:38:48:339] winst running in standard script mode
[1] [Sep 29 16:38:48:341] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
[1] [Sep 29 16:38:48:343] system infos:
[1] [Sep 29 16:38:48:348] *********** - PC hardware address
[1] [Sep 29 16:38:48:350] NOTE-0346 - IP name
[1] [Sep 29 16:38:48:352] ********** - IP address
[1] [Sep 29 16:38:48:354] ENG - System default locale
[1] [Sep 29 16:38:48:356] MS Windows 10.0 64 Bit
[1] [Sep 29 16:38:48:358]
[6] [Sep 29 16:38:48:360] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
[6] [Sep 29 16:38:48:362] Key closed
[6] [Sep 29 16:38:48:419] opsi-winst has version 4.11.4.17, required is : >= 4.11.3.6
[6] [Sep 29 16:38:48:421] LogLevel was 6
[6] [Sep 29 16:38:48:423] LogLevel set to 6
[5] [Sep 29 16:38:48:425] Set $OS$ = GetOS
[6] [Sep 29 16:38:48:435] The value of the variable "$OS$" is now: "Windows_NT"
[5] [Sep 29 16:38:48:438] Set $NTVersion$ = GetNTVersion
[3] [Sep 29 16:38:48:440] NT-OS not identified
[6] [Sep 29 16:38:48:442] The value of the variable "$NTVersion$" is now: "NT-OS not identified"
[5] [Sep 29 16:38:48:444] Set $SystemType$ = GetSystemType
[6] [Sep 29 16:38:48:446] The value of the variable "$SystemType$" is now: "64 Bit System"
[5] [Sep 29 16:38:48:448] Set $ProductNameFull$ = "Office365"
[6] [Sep 29 16:38:48:455] The value of the variable "$ProductNameFull$" is now: "Office365"
[5] [Sep 29 16:38:48:457] Set $ProductPicture$ = "logo.jpg"
[6] [Sep 29 16:38:48:460] The value of the variable "$ProductPicture$" is now: "logo.jpg"
[5] [Sep 29 16:38:48:485] message Installiere O365
[6] [Sep 29 16:38:48:488] If
[6] [Sep 29 16:38:48:491] Free on Disk C:: 216,876,675,072 bytes This is more than the required amount of 1,500,000,000 bytes
[5] [Sep 29 16:38:48:493] HasMinimumSpace ("C:", "1500 MB") <<< result true
[5] [Sep 29 16:38:48:495] not (HasMinimumSpace ("C:", "1500 MB")) <<< result false
[6] [Sep 29 16:38:48:497] Then
[6] [Sep 29 16:38:48:500] EndIf
[5] [Sep 29 16:38:48:502] message Installiere Office365 ...
[6] [Sep 29 16:38:48:506] If
[5] [Sep 29 16:38:48:508] $NTVersion$ = "Windows Vista" <<< result false
[5] [Sep 29 16:38:48:510] $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" <<< result false
[5] [Sep 29 16:38:48:512] $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" <<< result false
[5] [Sep 29 16:38:48:514] $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" <<< result false
[5] [Sep 29 16:38:48:516] ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" ) <<< result false
[6] [Sep 29 16:38:48:518] Then
[6] [Sep 29 16:38:48:520] If
[6] [Sep 29 16:38:48:523] Then
[6] [Sep 29 16:38:48:525] EndIf
[6] [Sep 29 16:38:48:527] If
[6] [Sep 29 16:38:48:529] Then
[6] [Sep 29 16:38:48:531] EndIf
[6] [Sep 29 16:38:48:533] Else
[3] [Sep 29 16:38:48:535] Error: Kein kompatibles Betriebssystem installiert
[5] [Sep 29 16:38:48:537] Error level set to fatal
[5] [Sep 29 16:38:48:539] Process aborted
[1] [Sep 29 16:38:48:545] ___________________
[1] [Sep 29 16:38:48:547] script finished
[1] [Sep 29 16:38:48:549] 2 errors
[1] [Sep 29 16:38:48:550] 0 warnings
[1] [Sep 29 16:38:48:552]
[1] [Sep 29 16:38:48:554]
Gruß fairsein