Page 1 of 1

XP service pack 2

Posted: Mon Nov 02, 2015 11:01 am
by wxperson99
HI,

I want to check to make sure that if the operating system is XP that it is at least at service pack 2.

How would I do that?

Thanks,

George

Re: XP service pack 2

Posted: Mon Nov 02, 2015 12:42 pm
by FrancescoT
Dear George,

please try this;

Code: Select all

Set Variable TARGET_OS to
Get Exact OS Level into TARGET_OS
if Variable TARGET_OS Equals XP
  Get Exact SP Level into TARGET_OS
  if Variable TARGET_OS not Equals 2
    Comment: XP SP2 not FOUND ... do something
  else
    Comment: XP SP2 FOUND ... do something
  end
else
  Comment: TARGET OS NOT XP ... do something
end


... the same as "InstallAware Clipboard Data"

Code: Select all

~InstallAware Clipboard Data~
~End~
~{8973A652-6B87-4786-9ECF-5B680FFC6378}~
~Comment~
~{E64E2CDF-1EEE-4CEB-9D11-E369CE1EF1DD}~
~TARGET OS NOT XP ... do something~
~Else~
~{1E3E7B84-C2B6-4AF2-872C-9F9F1FD0B053}~
~End~
~{6C78B542-F0AD-45DB-9C0B-BDB3001B607C}~
~Comment~
~{0746F143-AFB8-4C0C-A682-F1793D2E4A9B}~
~XP SP2 FOUND ... do something~
~Else~
~{35EA6E84-B989-46E0-9C6A-EB2CDE06BBFD}~
~Comment~
~{5A669329-6ECF-47B5-8171-8C98F3E99CB4}~
~XP SP2 not FOUND ... do something~
~If~
~{5D8DF8FD-626E-4427-B5EE-82656D554784}~
~TARGET_OS~
~0~
~2~
~TRUE~
~Get OS or SP Level~
~{0E8F0B43-942F-46FC-AE4E-E644E7C2A91E}~
~TARGET_OS~
~FALSE~
~TRUE~
~If~
~{CA719ABE-D113-4D66-996A-BAE35690EF66}~
~TARGET_OS~
~0~
~XP~
~FALSE~
~Get OS or SP Level~
~{B2C5D799-28C6-4BF9-A00A-33B09E5A3E86}~
~TARGET_OS~
~TRUE~
~FALSE~
~Set Variable~
~{86550E84-025E-469B-8D39-D34E7B1129F5}~
~TARGET_OS$MYAH$MYAH$FALSE~
~~


Hope this helps you.

Regards

Re: XP service pack 2

Posted: Mon Nov 02, 2015 2:10 pm
by wxperson99
Thanks.. I ended up making a few changes for my situation.. George

Comment: Check if XP .. that SP1 is not the lastest SP
Set Variable TARGET_OS to
Get Exact OS Level into TARGET_OS
if Variable TARGET_OS Equals XP
Get Exact SP Level into TARGET_OS
if Variable TARGET_OS not Greater Than 1
MessageBox: $TITLE$ Setup Error, This product requires at least Windows XP SP2.$NEWLINE$$NEWLINE$Setup cannot continue.
Terminate Installation
else
Comment: XP SP2 or SP3 FOUND ... All OK for dao360
end
end

Thanks again.

Re: XP service pack 2

Posted: Tue Nov 03, 2015 1:24 pm
by FrancescoT
:D