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 / November 2004

Tip: Looking for answers? Try searching our database.

how to add launch condition for IE6.0,wmp9.0 or later,flash player

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
haiwen - 11 Nov 2004 23:01 GMT
Hello, everyone:

I have an windows application that requires IE6.0, windows player 9.0 or
later and flash player7.0 or later.

I want to add launch conditions for them.

I guess I need to add registry launch condition, but I can not find the
vertion values of them.

Could anyone help?

Thanks a lot,

haiwen
Phil Wilson - 13 Nov 2004 17:08 GMT
The kind of thing you need is Search Target Machine for registry entry. For
IE, a property IEVER, the RegKey is SOFTWARE\Microsoft\Internet Explorer,
Root is vsdrrHKLM, Value Version. Then you can have a launch condition
IEVER>="6.0.0.0" with an appropriate error message. That's the general idea,
but I don't know the registry keys or something that would tell you flash or
media player versions.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

> Hello, everyone:
>
[quoted text clipped - 11 lines]
>
> haiwen
haiwen - 16 Nov 2004 19:28 GMT
Hello, wilson:

Thanks so much for your help.

Because I could not find the IEVER entry in regedit, my operating system is
windows 2003, I wonder is it a embeded function for all operating system's IE
version checking?

and I could not find the vsdrrHKLM root in regedit too.

so, how can I decide the properties and root in the search registry
condition and if it fit for other operating systems even I can find the
entries for windows media player and flash player in the regedit?

thanks again.

haiwen

> The kind of thing you need is Search Target Machine for registry entry. For
> IE, a property IEVER, the RegKey is SOFTWARE\Microsoft\Internet Explorer,
[quoted text clipped - 17 lines]
> >
> > haiwen
Phil Wilson - 18 Nov 2004 02:02 GMT
vsdrrHKLM , SOFTWARE\Microsoft\Internet Explorer etc are how you set up the
search in Visual Studio, the Search Target Machine part of the IDE, they're
not regedit things. In Solution Explore, select the project, then View,
Editor, Launch Conditions, and create a Search target Machine entry as I
described, (F4 will show those properties) then add that launch condition to
Launch Conditions in the same IDE pane.
Signature

Phil Wilson [MVP Windows Installer]
----

> Hello, wilson:
>
[quoted text clipped - 35 lines]
> > >
> > > haiwen
haiwen - 18 Nov 2004 19:11 GMT
Thanks wilson,

The data type of Version of SOFTWARE\Microsoft\Internet Explorer is REG_SZ,
value is
6.0.3790.0
The result is quire wierd to compare string values in the conditon expression
if I setup the condition:
IEVer>="6.0"  I get true,
IEVer>="7.0"  false,
But
IEVer>="10.0.0.0" I get true too! Thanks that the highest IE version is just
6 now.

One more question, when check IIS version, since the data type is REG_DWORD
and we use "#", such as IISVer>="#5"

the question is how to compare data when its type is REG_BINARY

because I find under the SOFTWARE\Microsoft\Media Player\Set up\Installed
Versions\ , there is entry wmplayer.exe, its data type is REG_BINARY and
value is
00 00 09 00 af 0b 00 00, if I can compare this binary value, then I can
check the version of windows media player and require 9.0 or later.

and I test, if i create version entry, type is REG_SZ and value is 10.0.1.0
and I set the condition express
>="9.0" I get false
>="10.0.0.0"  I get true!!!

There is a big bug when we compare string value.

thanks again.

haiwen

> vsdrrHKLM , SOFTWARE\Microsoft\Internet Explorer etc are how you set up the
> search in Visual Studio, the Search Target Machine part of the IDE, they're
[quoted text clipped - 49 lines]
> > > >
> > > > haiwen
Phil Wilson - 18 Nov 2004 15:09 GMT
Example here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/v
xtskaddingregistrylaunchcondition.asp

Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

> Hello, wilson:
>
[quoted text clipped - 41 lines]
>> >
>> > haiwen
haiwen - 18 Nov 2004 19:21 GMT
Hello, wilson:

thanks for your help.

The example has some limitation when the data type of registry entry is
REG_RZ just as I mention in the last post.

My further qestion is if the data type of registry entry is REG_BINARY, how
can I compare it in the launch condition expression, I know the "#" works
well for REG_DWORD, such as IISVersion>="#4".

sincerely,

haiwen

> Example here:
>
[quoted text clipped - 44 lines]
> >> >
> >> > haiwen
Phil Wilson - 20 Nov 2004 19:06 GMT
If it's REG_BINARY, see if it comes back preceded by #X.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

> Hello, wilson:
>
[quoted text clipped - 67 lines]
>> >> >
>> >> > haiwen
haiwen - 22 Nov 2004 15:15 GMT
Hello, wilson:

thanks for your reply, unfortunately the answer is NO.

haiwen

> If it's REG_BINARY, see if it comes back preceded by #X.
> > Hello, wilson:
[quoted text clipped - 68 lines]
> >> >> >
> >> >> > haiwen

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.