.... and running Regedit is not always going to give you the right answer 
because you run under your user account (a merge of other keys) giving you a 
virtual view of the registry for your account, which is David Watson's comment 
about " is bad form to actually write to HKCR directly (its behaviour depends 
on the environment)". An example I've seen is that somebody running with the 
system account (like a service) will not see the same thing as you. 

http://msdn.microsoft.com/en-us/library/ms724475(v=vs.85).aspx 
http://msdn.microsoft.com/en-us/library/ms724498(v=vs.85).aspx


Phil Wilson 

Oh the nonsense the company puts at the end of this..............

-----Original Message-----
From: Castro, Edwin G. (Hillsboro) [mailto:edwin.cas...@fiserv.com] 
Sent: Thursday, June 30, 2011 2:41 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Can an x86 msi create a registry key under 
HKEY_CLASSES_ROOT\Wow6432Node on x64 systems?

You already have enough information. You need to check the what kind of package 
it is (check the Summary Information Stream). It is easy for anybody with 
administrative privileges to create HKLM:\SOFTWARE\Wow6432Node, even on an 
32-bit system.

That said, I think you are looking in the wrong place. HKEY_CLASSES_ROOT maps 
to HKEY_LOCAL_MACHINE\SOFTWARE\Classes. So to find your 32-bit registry entries 
for HKEY_CLASSES_ROOT you should be looking at 
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes.

Edwin G. Castro
Software Developer - Staff
Digital Channels
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail

> -----Original Message-----
> From: Wang, Miaohsi [mailto:miaohsi.w...@invensys.com]
> Sent: Thursday, June 30, 2011 2:18 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Can an x86 msi create a registry key under
> HKEY_CLASSES_ROOT\Wow6432Node on x64 systems?
> 
> Hi Edwin,
> 
> 1. This is an x86 installer because it works on both x86 and x64 machines.
> 2. I was viewing the Registry on a x64 machine using Regedit.exe, and inside
> the Registry I could see HKLM\SOFTWARE\Wow6432Node. Is this enough to
> say that I was viewing the Registry using a 64-bit process?
> 
> Given the above information, could you please let me know where in the msi
> to start troubleshooting the problem?
> 
> Thanks a lot,
> Miaohsi
> 
> -----Original Message-----
> From: Castro, Edwin G. (Hillsboro) [mailto:edwin.cas...@fiserv.com]
> Sent: Thursday, June 30, 2011 12:30 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Can an x86 msi create a registry key under
> HKEY_CLASSES_ROOT\Wow6432Node on x64 systems?
> 
> Are you certain you are creating an x86 msi package?
> 
> Are you using a 32-bit process to view the contents of the registry? If yes,
> then the location looks exactly as it should.
> 
> If you are certain that you are using a 64-bit process to view the contents of
> the registry then I would revisit the bitness of the msi package itself.
> 
> Edwin G. Castro
> Software Developer - Staff
> Digital Channels
> Fiserv
> Office: 503-746-0643
> Fax: 503-617-0291
> www.fiserv.com
> P Please consider the environment before printing this e-mail
> 
> > -----Original Message-----
> > From: Wang, Miaohsi [mailto:miaohsi.w...@invensys.com]
> > Sent: Thursday, June 30, 2011 11:08 AM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] Can an x86 msi create a registry key under
> > HKEY_CLASSES_ROOT\Wow6432Node on x64 systems?
> >
> > Hi David,
> >
> > Thank you for the information. Below is my component definition:
> >
> > <Component Id="ClientOnlyInstallRegistryData" Guid="{AC00CCB7-73F2-
> > 4520-984F-4BEAF3B2A063}" KeyPath="yes" SharedDllRefCount="no" >
> >   <RegistryKey Id="Registry1" Key="RTServerRM_6.0" Root="HKCR"
> > Action="createAndRemoveOnUninstall" />
> >   <RegistryKey Id="Registry2" Key="Software\Classes\RTServerRM_6.0"
> > Root="HKLM" Action="createAndRemoveOnUninstall" /> </Component>
> >
> > As you can see Registry1 is targeted for HKCR and Registry2 for HKLM.
> > As a result of the installation, "RTServerRM_6.0" is created right
> > under HKCR and the same key is also created right under
> > HKLM\Software\Classes, not under
> HKLM\Software\Classes\Wow6432Node as desired.
> >
> > Your help will be greatly appreciated.
> >
> > Thanks,
> > Miaohsi
> >
> > -----Original Message-----
> > From: David Watson [mailto:dwat...@sdl.com]
> > Sent: Thursday, June 30, 2011 10:01 AM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] Can an x86 msi create a registry key under
> > HKEY_CLASSES_ROOT\Wow6432Node on x64 systems?
> >
> > 32 bit (x86) installers can indeed write to wow6432nodes and do so by
> > by default.
> >
> > Specify the key you wish to write to and omit Wow6432Node as they will
> > be redirected there automatically.
> > http://wix.sourceforge.net/manual-wix3/write_a_registry_entry.htm
> >
> > Its also worth noting that Microsoft say it is bad form to actually
> > write to HKCR directly (its behaviour depends on the environment) so
> > for per machine installs you should install to HKLM\Software\Classes
> > and HKCU\Software\Classes for per user installs.
> >
> > http://msdn.microsoft.com/en-us/library/ms724475(VS.85).aspx
> >
> >
> >
> > -----Original Message-----
> > From: Wang, Miaohsi [mailto:miaohsi.w...@invensys.com]
> > Sent: 30 June 2011 16:35
> > To: General discussion for Windows Installer XML toolset.
> > Subject: [WiX-users] Can an x86 msi create a registry key under
> > HKEY_CLASSES_ROOT\Wow6432Node on x64 systems?
> >
> > Dear All,
> >
> > I have an x86 installer which needs to create a registry key under
> > HKEY_CLASSES_ROOT\Wow6432Node on 64-bit machines. I created a
> > component to do the task. The component installs fine but does not
> > create the key on x64 systems. Is there a way to accomplish this with
> > WiX? Your help will be greatly appreciated.
> >
> > Thanks a lot,
> > Miaohsi
> >
> >
> >
> > *** Confidentiality Notice: This e-mail, including any associated or
> > attached files, is intended solely for the individual or entity to which it 
> > is
> addressed.
> > This e-mail is confidential and may well also be legally privileged.
> > If you have received it in error, you are on notice of its status.
> > Please notify the sender immediately by reply e-mail and then delete this
> message from your system.
> > Please do not copy it or use it for any purposes, or disclose its
> > contents to any other person. This email comes from a division of the
> > Invensys Group, owned by Invensys plc, which is a company registered
> > in England and Wales with its registered office at 3rd Floor, 40
> > Grosvenor Place, London, SW1X 7AW (Registered number 166023). For a
> > list of European legal entities within the Invensys Group, please go
> > to
> >
> http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&pr
> > ev_id=77.
> >
> > You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail
> > recept...@invensys.com. This e-mail and any attachments thereto may be
> > subject to the terms of any agreements between Invensys (and/or its
> > subsidiaries and affiliates) and the recipient (and/or its
> > subsidiaries and affiliates).
> >
> > ----------------------------------------------------------------------
> > -------
> > -
> > All of the data generated in your IT infrastructure is seriously valuable.
> > Why? It contains a definitive record of application performance,
> > security threats, fraudulent activity, and more. Splunk takes this
> > data and makes sense of it. IT sense. And common sense.
> > http://p.sf.net/sfu/splunk-d2d-c2
> > _______________________________________________
> > 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.
> >
> >
> > ----------------------------------------------------------------------
> > -------- All of the data generated in your IT infrastructure is
> > seriously valuable.
> > Why? It contains a definitive record of application performance,
> > security threats, fraudulent activity, and more. Splunk takes this
> > data and makes sense of it. IT sense. And common sense.
> > http://p.sf.net/sfu/splunk-d2d-c2
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> > *** Confidentiality Notice: This e-mail, including any associated or
> > attached files, is intended solely for the individual or entity to which it 
> > is
> addressed.
> > This e-mail is confidential and may well also be legally privileged.
> > If you have received it in error, you are on notice of its status.
> > Please notify the sender immediately by reply e-mail and then delete this
> message from your system.
> > Please do not copy it or use it for any purposes, or disclose its
> > contents to any other person. This email comes from a division of the
> > Invensys Group, owned by Invensys plc, which is a company registered
> > in England and Wales with its registered office at 3rd Floor, 40
> > Grosvenor Place, London, SW1X 7AW (Registered number 166023). For a
> > list of European legal entities within the Invensys Group, please go
> > to
> >
> http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&pr
> > ev_id=77.
> >
> > You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail
> > recept...@invensys.com. This e-mail and any attachments thereto may be
> > subject to the terms of any agreements between Invensys (and/or its
> > subsidiaries and affiliates) and the recipient (and/or its
> > subsidiaries and affiliates).
> >
> >
> >
> > ----------------------------------------------------------------------
> > -------- All of the data generated in your IT infrastructure is
> > seriously valuable.
> > Why? It contains a definitive record of application performance,
> > security threats, fraudulent activity, and more. Splunk takes this
> > data and makes sense of it. IT sense. And common sense.
> > http://p.sf.net/sfu/splunk-d2d-c2
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> *** Confidentiality Notice: This e-mail, including any associated or attached
> files, is intended solely for the individual or entity to which it is 
> addressed.
> This e-mail is confidential and may well also be legally privileged. If you 
> have
> received it in error, you are on notice of its status. Please notify the 
> sender
> immediately by reply e-mail and then delete this message from your system.
> Please do not copy it or use it for any purposes, or disclose its contents to 
> any
> other person. This email comes from a division of the Invensys Group,
> owned by Invensys plc, which is a company registered in England and Wales
> with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X
> 7AW (Registered number 166023). For a list of European legal entities within
> the Invensys Group, please go to
> http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&pr
> ev_id=77.
> 
> You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail
> recept...@invensys.com. This e-mail and any attachments thereto may be
> subject to the terms of any agreements between Invensys (and/or its
> subsidiaries and affiliates) and the recipient (and/or its subsidiaries and
> affiliates).
> 
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to