> 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
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
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