Can somebody help me figure out what I'm doing wrong here. I'm trying to
lookup a file path in the registry and then do a FileSearch to see if it
meets the minimum version I require. Here's my code:
<Property Id="FLASH_FILE_PATH">
<RegistrySearch Id="FlashFilePath" Root="HKCR" Type="file"
Key="CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32"
>
<FileSearch MinVersion="9.0.124.0"/>
</RegistrySearch>
</Property>
So this sorta makes sense to me. RegistrySearch will get that registry value
and set the FLASH_FILE_PATH property to that value, but then FileSearch
never overwrites it. So I'm confused as to why FileSearch can be a child of
RegistrySearch???
I then found this
response<http://www.mail-archive.com/[email protected]/msg11245.html>that
helped me figure it out (sorta). The problem is that my search doesn't
even consult the registry and is hard coded to the file name: "flash9f.ocx".
So now when flash 10/11 comes out I'll probably think that no Flash is
installed and try to install flash 9. My current (sorta working) version
looks like this:
<Property Id="FLASH_FILE_DIR">
<RegistrySearch Id="FlashFilePath" Root="HKCR" Type="directory"
Key="CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32" />
</Property>
<Property Id="HAS_MY_FLASH_VERSION">
<DirectorySearch Id="FlashDir" Path="[SystemFolder]Macromed\Flash">
<FileSearch Name="Flash9f.ocx" MinVersion="9.0.123.0"/>
</DirectorySearch>
</Property>
Is there maybe a better solution to this in WiX 3.0 that I'm overlooking, or
is this just a limitation in Windows Installer?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users