(imported topic written by SystemAdmin)
Hello
i try to deploy a software package with different parameters based on the manufacturer.
The line with the if clause is always failed.
Can anyone give me a hint please ?
Thanks
Martin Forster
download http://bes.itiso.net:52311/Uploads/41ac12e046119c2d27945c75793818480421a22b/big38.tmp
continue if { (size of it = 141791733 and sha1 of it = “41ac12e046119c2d27945c75793818480421a22b”) of file “big38.tmp” of folder “__Download”}
extract big38.tmp
parameter “MF” = {if (exists wmi) then (string value of select “Manufacturer from Win32_ComputerSystem” of wmi as lowercase) else (“n/a”)}
dos net localgroup Administrators itiso_atdoao_appmgr /add
if { parameter “MF” } = “hp” or {parameter “MF” } = “hewlett packard” or { parameter “MF”} = "hewlett packard " or { parameter “MF” } = “compaq”
wait __Download\setup.exe SILENTINI"__Download\AppManagerInstall-hp.ini"
elseif { parameter “MF” } = “fsc” or{ parameter “MF” } = “fujitsu siemens” or { parameter “MF” } = “siemens ag” or { parameter “MF” } = “sni ag” or { parameter “MF” } = “fujitsu siemens computers”
wait __Download\setup.exe SILENTINI"__Download\AppManagerInstall-FSC.ini"
else
wait __Download\setup.exe SILENTINI"__Download\AppManagerInstall.ini"
endif
OR
download http://bes.itiso.net:52311/Uploads/41ac12e046119c2d27945c75793818480421a22b/big38.tmp
continue if { (size of it = 141791733 and sha1 of it = “41ac12e046119c2d27945c75793818480421a22b”) of file “big38.tmp” of folder “__Download”}
extract big38.tmp
parameter “MF” = {if (exists wmi) then (string value of select “Manufacturer from Win32_ComputerSystem” of wmi as lowercase) else (“n/a”)}
dos net localgroup Administrators itiso_atdoao_appmgr /add
if { parameter “MF” = “hp” or parameter “MF” = “hewlett packard” or parameter “MF” = "hewlett packard " or parameter “MF” = “compaq” }
wait __Download\setup.exe SILENTINI"__Download\AppManagerInstall-hp.ini"
elseif { parameter “MF” = “fsc” or parameter “MF” = “fujitsu siemens” or parameter “MF” = “siemens ag” or parameter “MF” = “sni ag” or parameter “MF” = “fujitsu siemens computers” }
wait __Download\setup.exe SILENTINI"__Download\AppManagerInstall-FSC.ini"
else
wait __Download\setup.exe SILENTINI"__Download\AppManagerInstall.ini"
endif