Yes NTDOC, that's exactly the problem! Windows SP1 and < has windows installer version 2.0. It has different command line switches than windows installer version 3.0 which is the version that is installed with XP SP2.

Here is the code I'm using to push out through SMS:

Code:
$SO = SetOption('NoVarsInStrings','On')

$sp = @CSD
$os = @PRODUCTTYPE
$path = "\\gjlk2w2ws101\SoftwarePushes\sms\"
$packageName = "MyODBC-3.51.msi"

if $os = "Windows XP Professional"
if $sp = "Service Pack 1"
SHELL '%COMSPEC% /e:1024 /c '+$path+$packageName+' /qn'
endif
if $sp = "Service Pack 2"
SHELL '%COMSPEC% /e:1024 /c '+$path+$packageName+' /quiet'
endif
else
SHELL '%COMSPEC% /e:1024 /c '+$path+$packageName+' /qn'
endif



For those of you who had a differing opinion of me when I was asking about using variables in strings, you'll be proud to note that I wrote this script with them off. On the other hand, I'm not using explicit so this may cause another roasting but we'll see. =D


Edited by thepip3r (2005-05-04 09:38 PM)