Ich hänge gerade beim zusammenbauen eines Paketes. Ich möchte eine Variable abhängig vom Hostnamen befüllen. Dabei bekomme ich aber Syntax Fehler.
Mein Skript sieht folgendermaßen aus (primäre Sektion)
Code: Alles auswählen
comment "Show product picture"
ShowBitmap "%ScriptPath%\logo.png" $ProductName$
Message "Installiere " + $ProductId$ + " ..."
comment "Starte Installationsprogramm"
if contains(%HostID%,"FC")
set $Product$ = "M700SFF"
else
if contains(%HostID%,"NB")
set $Product$ = "T560"
endif
endif
Code: Alles auswählen
Syntax Error in Section: Actions (Command in line 51 origin: p:\paket\setup.opsiscript line: 52) contains(NB00123.local.de,"NB") -> NB00123.local.de,cb-efc) illegal String expression
Syntax Error in Section: Actions (Command in line 51 origin: p:\paket\setup.opsiscript line: 52): NB00123.local.de,"NB") -> erroneous characters
Könnt ihr mir hier helfen?
Grüße
Ratze