Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Setup / August 2004

Tip: Looking for answers? Try searching our database.

Launch Conditions. Property Syntax for WMP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James Dixon - 15 Aug 2004 22:03 GMT
I want to run MPSetup.exe if the Windows Media Player version is less than 9
on a client.

I have been up and down MSDN's KB and this MB for the Launch
Conditions.Condition property for the synatx, but the only 2 examples I see
are:
VersionNT>500
and
MDACVER >= 3.0

Is there a comprehenisve list for MS products?

I was going to start trying variations of
WMPVER>9
or checking the registry key

Any suggestions?
James Dixon - 16 Aug 2004 01:25 GMT
I figured one way to do it

Create a search of the Registry Key

Then Ref the Search in the Launch Conditions

Might be a built in Version like NTVersion, but just as fast to search the
registry

--Jamie

> I want to run MPSetup.exe if the Windows Media Player version is less than 9
> on a client.
[quoted text clipped - 13 lines]
>
> Any suggestions?
Phil Wilson - 16 Aug 2004 18:25 GMT
There's a list here - there isn't a media player value.

http://msdn.microsoft.com/library/en-us/msi/setup/property_reference.asp?frame=true
Signature

Phil Wilson [MVP Windows Installer]
----

>
> I figured one way to do it
[quoted text clipped - 27 lines]
> >
> > Any suggestions?
James Dixon - 18 Aug 2004 00:42 GMT
Kinda of interesting/annoying

I created a Serach of the registry key:
name:Windows Media Player Version
Property: WMPVERSION
RegKey:6BF52A52-394A-11d3-B153-00C04F79FAA6
Root:vsdrrHKLM
Value: Version

Then, I created a launch condition like this:
Name: WMPLaunchCondition
Condition: {See Below}
InstallURL: /MPSetupXP.exe
Message: You Don Not Have WMP 9, Press Yes To Install

The value in the registry is: 9.0.0.2980

Here are the conditions I used and the results:
WMPVersion = 99: false
WMPVersion=9.0.0.2980:true
WMPVersion <> 9.0.0.2980: true
WMPVersion<9.0.0.2980: true
WMPVersion>9.0.0.2980: true
WMPVersion<9: false
WMPVersion>9: false

I am guessing that the Value is actually a string, so you can't do any kind
of artimatical compare (<,>,etc...)
If so, why does a condition of VersionNT<501 work?
How can I cast my Seach Value it from a string to an int/float

Why does MSDN sux for giving examples of these kind of thing?

> There's a list here - there isn't a media player value.

http://msdn.microsoft.com/library/en-us/msi/setup/property_reference.asp?frame=true

> > I figured one way to do it
> >
[quoted text clipped - 27 lines]
> > >
> > > Any suggestions?
Phil Wilson - 19 Aug 2004 03:04 GMT
Property comparisons can be interesting. It works with VersionNT because it
returns something that can be treated as a number. Versions with periods are
more difficult. A string comparison might work: WMPVERSION>"9.0.0.0"
Signature

Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/104-7044380-4696760

> Kinda of interesting/annoying
>
[quoted text clipped - 30 lines]
>
> > There's a list here - there isn't a media player value.

http://msdn.microsoft.com/library/en-us/msi/setup/property_reference.asp?frame=true

> > > I figured one way to do it
> > >
[quoted text clipped - 29 lines]
> > > >
> > > > Any suggestions?
James Dixon - 20 Aug 2004 02:29 GMT
Nope
WMPVersion="9.0.0.2980":false
WMPVersion<>"9.0.0.2980":false

Grrr....
I am just checking the registry number in my app now
$36 Billion in reveune and they can't have 1 person on the books who thought
of this ahead of time?  Breaks the heart.

> Property comparisons can be interesting. It works with VersionNT because it
> returns something that can be treated as a number. Versions with periods are
> more difficult. A string comparison might work: WMPVERSION>"9.0.0.0"
http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/104-7044380-4696760

> > Kinda of interesting/annoying
> >
[quoted text clipped - 31 lines]
> >
> > > There's a list here - there isn't a media player value.

http://msdn.microsoft.com/library/en-us/msi/setup/property_reference.asp?frame=true

> > > > I figured one way to do it
> > > >
[quoted text clipped - 31 lines]
> > > > >
> > > > > Any suggestions?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.