CODE
prog[pn]=['Microsoft Windows XP Servicepack 2 English'];
desc[pn]=['Microsoft Windows XP Servicepack 2 English'];
uid[pn]=['WXPSP2ENU'];
dflt[pn]=['no'];
cat[pn]=['Service Packs'];
forc[pn]=['no'];
configs[pn]=['Client'];
cond[pn]=['getOSver()=="XP" && getSPver()<2 && getOSlang().substr(0,2)=="EN" && FileExists("S:\\Microsoft\\Servicepacks\\WindowsXP-KB835935-SP2-ENU.exe")'];
cmd1[pn]=['S:\\Microsoft\\Servicepacks\\WindowsXP-KB835935-SP2-ENU.exe" /passive /O /Z /norestart'];
picf[pn]=['InstallPackage.png'];
picw[pn]=['128'];
pich[pn]=['128'];
textl[pn]=['Bottom'];
pn++;
desc[pn]=['Microsoft Windows XP Servicepack 2 English'];
uid[pn]=['WXPSP2ENU'];
dflt[pn]=['no'];
cat[pn]=['Service Packs'];
forc[pn]=['no'];
configs[pn]=['Client'];
cond[pn]=['getOSver()=="XP" && getSPver()<2 && getOSlang().substr(0,2)=="EN" && FileExists("S:\\Microsoft\\Servicepacks\\WindowsXP-KB835935-SP2-ENU.exe")'];
cmd1[pn]=['S:\\Microsoft\\Servicepacks\\WindowsXP-KB835935-SP2-ENU.exe" /passive /O /Z /norestart'];
picf[pn]=['InstallPackage.png'];
picw[pn]=['128'];
pich[pn]=['128'];
textl[pn]=['Bottom'];
pn++;
which works OK.
and below that:
CODE
prog[pn]=['Microsoft Windows XP Servicepack 3 English'];
desc[pn]=['Microsoft Windows XP Servicepack 3 English'];
uid[pn]=['WXPSP3ENU'];
dflt[pn]=['no'];
cat[pn]=['Service Packs'];
forc[pn]=['no'];
configs[pn]=['Client'];
cond[pn]=['getOSver()=="XP" && getSPver()<3 && getOSlang().substr(0,2)=="EN" && FileExists("S:\\Microsoft\\Servicepacks\\WindowsXP-KB936929-SP3-x86-ENU.exe")'];
cmd1[pn]=['S:\\Microsoft\\Servicepacks\\WindowsXP-KB936929-SP3-x86-ENU.exe" /passive /O /Z /norestart'];
picf[pn]=['InstallPackage.png'];
picw[pn]=['128'];
pich[pn]=['128'];
textl[pn]=['Bottom'];
pn++;
desc[pn]=['Microsoft Windows XP Servicepack 3 English'];
uid[pn]=['WXPSP3ENU'];
dflt[pn]=['no'];
cat[pn]=['Service Packs'];
forc[pn]=['no'];
configs[pn]=['Client'];
cond[pn]=['getOSver()=="XP" && getSPver()<3 && getOSlang().substr(0,2)=="EN" && FileExists("S:\\Microsoft\\Servicepacks\\WindowsXP-KB936929-SP3-x86-ENU.exe")'];
cmd1[pn]=['S:\\Microsoft\\Servicepacks\\WindowsXP-KB936929-SP3-x86-ENU.exe" /passive /O /Z /norestart'];
picf[pn]=['InstallPackage.png'];
picw[pn]=['128'];
pich[pn]=['128'];
textl[pn]=['Bottom'];
pn++;
for some reason the check for SP3 doesn't work, it returns an "Error in condition statement" [..] "Treating as a false condition"
The system on which I tested this has SP3 allready installed.
Does anyone have an idea about this?