Never mind.

I added these code, it seems working:
<Property Id='QUERY_OUTLOOK_2010_REG_64BIT'>
<RegistrySearch Id='QueryOutlook2010Reg64Bit' 
Root='HKLM' 
Key='SOFTWARE\Microsoft\Office\14.0\Outlook\InstallRoot' 
Name='Path' 
Type='raw' 
Win64='yes'
/>
</Property>


Thanks anyway.



________________________________
From: little.forest <little.for...@ymail.com>
To: wix-users@lists.sourceforge.net
Sent: Fri, November 5, 2010 3:32:25 PM
Subject: [WiX-users] How to detect Outlook 2010 64Bit version

We need to detect if Outlook 2010 is installed.

Here is the code:
<Property Id='QUERY_OUTLOOK_2010_REG'>
<RegistrySearch Id='QueryOutlook2010Reg' 
Root='HKLM' 
Key='SOFTWARE\Microsoft\Office\14.0\Outlook\InstallRoot' 
Name='Path' 
Type='raw' />
</Property>


The property is set if Outlook 2010 32Bit version is installed. But it doesn't 
work if Outlook 2010 64Bit version is installed.

I did some comparison in real testing. If Outlook 2010 32Bit is installed, the 
registry is:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Outlook\InstallRoot



If Outlook 2010 64Bit is installed, then the registry is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Outlook\InstallRoot

As you can see, in our code, the entry 
'SOFTWARE\Microsoft\Office\14.0\Outlook\InstallRoot' is used. I'm under the 
impression that Wix will "automatically return the right registry without using 
Wow6432Node". It can detect 32bit version correctly, but why it can't detect 
correctly if 64bit is installed?

Is it because our installer is 32 bit then it can't read 
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft' entry? 

Is there a way to look both 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft' and 
'HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft' entries explicitly?

Thanks!

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to