Did you try something like
<Property Id="SEARCHFOROPENOFFICE" Value="absd">
<RegistrySearch Id="OpenOfficeSearch"
Key="Software\OpenOffice.org\UNO\InstallPath" Name="OpenOffice.org 2.3"
Root="HKLM" Type="raw">
</RegistrySearch>
</Property>
<Condition Message="installation can't proceed as you don't have open office
installed on your machine.Please install OpenOffice, version 2.3 From
http://download.openoffice.org">Not SEARCHFOROPENOFFICE="absd"</Condition>
Anidil wrote:
>
> I'm trying to detect the presence of different versions of the same
> product by searching the registryas follows
>
> <Property Id="SEARCHProduct1.0">
> <RegistrySearch Id="RegProduct1.0Search" Type="raw" Root="HKLM"
> Key="SOFTWARE\a\b\Product\1.0\Version" Name="Product 1.0" />
> </Property>
> <Condition Message="Product 1.0 exists on this system.Uninstall the
> software and try again" >
> SEARCHProduct1.0 = "1.0"
> </Condition>
>
> i write the similar code to detect different versions of the product one
> by one.But as the key path is the same for all the searches, it returns
> the first search in the list true always regardless of changing version
> values.Any help on this? is there a better way to do this?
>
> NB:The reason why i'm doing this is because the previous versions of the
> product are all installshield based.So cannot use <Upgrade> tags
>
--
View this message in context:
http://www.nabble.com/Registry-search--help-tp14512202p14512428.html
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users