Wouldn't your x86 search need to search the WoW6432Node of HKLM to be
correct?

HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall


But also, it seems to me that you should be using the MSI API
(MsiGetProductInfo specifically) in a custom action to get information
about other installed applications instead of querying hard-coded
registry entries.  

Bill

-----Original Message-----
From: Steven Ogilvie [mailto:steven.ogil...@titus.com] 
Sent: Wednesday, December 19, 2012 10:34 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Registry search and condition message in
installer

John, Rob, Peter,

Thanks so much for your help... the below from John works like a charm!
Can't get my head around the logic but it works...

Steve

-----Original Message-----
From: John Ludlow [mailto:john.ludlow...@gmail.com]
Sent: December-19-12 9:24 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Registry search and condition message in
installer

That would only work at build time, if you were compiling an x86 MSI and
an x64 MSI.

I think you just need to extend your condition to something like this:

   Installed OR (SQLSYNCX64SEARCH > "0" AND VersionNT64) OR (NOT
VersionNT64)

   Installed OR (SQLSYNCX86SEARCH > "0" AND NOT VersionNT64) OR
(VersionNT64)


On 19 December 2012 13:32, Steven Ogilvie <steven.ogil...@titus.com>
wrote:
> Then I will have to use $(var.Platform) <> "x86" that should work
>
> -----Original Message-----
> From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
> Sent: December-19-12 5:11 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Registry search and condition message in 
> installer
>
> VersionNT64 is undefined on a 32-bit OS so Installed OR
(SQLSYNCX64SEARCH > "0" AND VersionNT64) would be
> FALSE or (something AND FALSE)   === FALSE
> which would cause the message to display.
>
> -----Original Message-----
> From: Steven Ogilvie [mailto:steven.ogil...@titus.com]
> Sent: 19 December 2012 04:19
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Registry search and condition message in 
> installer
>
> Oops I should have said as well...
>
> The 32 bit version is checked and correct since it is installed so the

> logic is correct for the 32 bit check of <Property 
> Id="SQLSYNCX86SEARCH" Value="0"> it's the 64bit check that is failing 
> on the 32 bit OS
>
> -----Original Message-----
> From: Rob Mensching [mailto:r...@robmensching.com]
> Sent: December-18-12 7:19 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Registry search and condition message in 
> installer
>
> I always use a verbose log file to check the values of Properties
since that where I usually make my mistakes.
>
>
> On Tue, Dec 18, 2012 at 3:14 PM, StevenOgilvie <sogil...@msn.com>
wrote:
>
>> I have a 32 bit installer, it can run on a 32 bit or a 64 bit OS...
>> On the 32 bit OS only the 32 bit pre requisites are run, but on the
>> 64 bit OS both 32/64 bit pre requisites are run.
>>
>> The installer verifies that the pre requisites are installed (ya its 
>> overkill but that is another story)...
>>
>> On a 64 bit machine all works fine, on a 32 bit OS I am running into 
>> errors where the condition message displays even though it shouldn't,

>> I have been playing around with this for too long, what am I doing 
>> wrong? thanks in advance...
>>
>> Registry check:
>>
>>     <Property Id="SQLSYNCX86SEARCH" Value="0">
>>       <RegistrySearch Id="SQLSyncx86Search"
>>
>>
>>
> Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7AC8EF88-D99
> 6-4D47-
> B40C-4DD93E307481}"
>>                       Name="DisplayVersion"
>>                       Root="HKLM"
>>                       Type="raw"
>>                       Win64="no"/>
>>       </Property>
>>
>>     <Property Id="SQLSYNCX64SEARCH" Value="0">
>>       <RegistrySearch Id="SQLSyncx64Search"
>>
>>
>>
> Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A4E269C1-168
> D-40D3-
> 9ABD-57FE4D4DB537}"
>>                       Name="DisplayVersion"
>>                       Root="HKLM"
>>                       Type="raw"
>>                       Win64="yes"/>
>>       </Property>
>>
>> Condition Message:
>> <Condition Message="Requires Microsoft Sync Framework 2.1 Core 
>> Components
>> (x86) installed. To download the requirement please visit:
>>                http://www.microsoft.com/en-us/download/default.aspx
>> then restart the $(var.ProductName) setup.">
>>       < ! [ CDATA [Installed OR (SQLSYNCX86SEARCH > "0")]]>
>>     </Condition>
>>     <Condition Message="Requires Microsoft Sync Framework 2.1 Core 
>> Components (x64) installed. To download the requirement please visit:
>>                http://www.microsoft.com/en-us/download/default.aspx
>> then restart the $(var.ProductName) setup.">
>>       < ! [CDATA [(Installed OR (SQLSYNCX64SEARCH > "0" AND
VersionNT64)]]>
>>     </Condition>
>>
>> BTW I have added spaces < ! [ CDATA because nabble doesn't like this
>> :) Steve
>>
>>
>>
>> --
>> View this message in context:
>> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Registr
>> y -search-and-condition-message-in-installer-tp7582450.html
>> Sent from the wix-users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> -
>> -------- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. 
>> Free Trial Remotely access PCs and mobile devices and provide instant

>> support Improve your efficiency, and focus on delivering more 
>> value-add services Discover what IT Professionals Know. Rescue 
>> delivers http://p.sf.net/sfu/logmein_12329d2d
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
>
>
> --
> virtually,
>
>    Rob Mensching
>    http://RobMensching.com LLC
> ----------------------------------------------------------------------
> -------
> -
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial 
> Remotely access PCs and mobile devices and provide instant support 
> Improve your efficiency, and focus on delivering more value-add 
> services Discover what IT Professionals Know. Rescue delivers 
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ----------------------------------------------------------------------
> -------
> -
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial 
> Remotely access PCs and mobile devices and provide instant support 
> Improve your efficiency, and focus on delivering more value-add 
> services Discover what IT Professionals Know. Rescue delivers 
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> SDL PLC confidential, all rights reserved.
> If you are not the intended recipient of this mail SDL requests and
requires that you delete it without acting upon or copying any of its
contents, and we further request that you advise us.
> SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.
> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
SL6 7DY, UK.
>
>
> ----------------------------------------------------------------------
> -------- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free

> Trial Remotely access PCs and mobile devices and provide instant 
> support Improve your efficiency, and focus on delivering more 
> value-add services Discover what IT Professionals Know. Rescue 
> delivers http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ----------------------------------------------------------------------
> -------- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free

> Trial Remotely access PCs and mobile devices and provide instant 
> support Improve your efficiency, and focus on delivering more 
> value-add services Discover what IT Professionals Know. Rescue 
> delivers http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

----------**********----------
This email and any files transmitted with it are confidential and 
intended solely for the use of Signalscape, Inc. and the addressed 
individual or entity.  If you have received this email in error please 
delete it.  Information in this email may be subject to the Privacy Act of 
1974 and any unauthorized review, use, disclosure, or distribution is 
strictly prohibited.  Any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of 
the company.

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to