It seems so wrong to spend so much time trying to get a registry key when
the Windows Installer will do it all for you plus handle rollback.


On Thu, Jul 1, 2010 at 1:59 PM, Kurt Jensen
<kurt.jen...@ophir-spiricon.com>wrote:

> Thanks!
>
> I think the real problem is that the CA is being launched as a 32-bit
> process (of course).  now that I know the problem I have modified my
> application code to first look in the "normal" part of the registry, then
> look in Wow6432Node if the key is not found.  that way it works on a 32-bit
> OS, on a 64-bit OS when the CA runs as a 32-bit process, and will continue
> to work if the CA some day starts running as a 64-bit process.
>
> thanks again for all the stimulation!
>
> -----Original Message-----
> From: i...@roadrunner.com [mailto:i...@roadrunner.com]
> Sent: Thursday, July 01, 2010 2:45 PM
> To: General discussion for Windows Installer XML toolset.
> Cc: Kurt Jensen
> Subject: Re: [WiX-users] Windows 7 Custom Action Registry problem
>
> Here's one example how to do it with P/Invoke:
> http://www.roelvanlisdonk.nl/?p=915
>
> ---- Kurt Jensen <kurt.jen...@ophir-spiricon.com> wrote:
> > That's it!
> >
> > So far I cannot find an equivalent in .NET but at least now I can track
> down the communication breakdown...
> >
> > Thanks to all!
> >
> >
> > -----Original Message-----
> > From: i...@roadrunner.com [mailto:i...@roadrunner.com]
> > Sent: Thursday, July 01, 2010 11:23 AM
> > To: General discussion for Windows Installer XML toolset.
> > Cc: Kurt Jensen
> > Subject: Re: [WiX-users] Windows 7 Custom Action Registry problem
> >
> > > also, this solution was developed by another less install oriented
> > > programmer for the original vsproj under VS2008.  I moved the code
> > > as-is over to WiX on a 32-bit install and it worked.  now we are
> > > adding a 64-bit install.  if I change to having Windows Installer do
> > > the job then I really am reinventing the wheel from our perspective.
> >
> > Maybe your keys get redirected? Check
> HKLM\SOFTWARE\Wow6432Node\Spiricon\Version5. Maybe your values are there.
> > If so, you need to add KEY_WOW64_64KEY to RegOpenKey (or whatever the
> .NET equivalent is).
> >
> > **********************************************************************
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom they
> > are addressed. If you have received this email in error please notify
> > the system manager.
> >
> > This footnote also confirms that this email message has been swept by
> > MIMEsweeper for the presence of computer viruses.
> >
> > www.clearswift.com
> > *************************************************************
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to