Can you give examples of the specific keys you are attempting to write? Vista 
and Win7 created the concept of protected registry nodes that are "owned" by 
Windows and they don't let others mess with them, but for back compat they 
swallow the related errors so it only causes silent failures. That sounds like 
what is happening in your case, but having the actual keys involved will help 
determine that for certain.
--
Bryan

________________________________________
From: Kurt Jensen [kurt.jen...@ophir-spiricon.com]
Sent: Thursday, July 01, 2010 8:32 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Windows 7 Custom Action Registry problem

I have a custom action that needs to create entries in the registry
under HKEY_LOCAL_MACHINE.  The code is written in C# and uses
Registry.LocalMachine.CreateSubKey().  I added some logging that tells
me that the return value is not null and the custom action does not
throw an exception.  But the key is never created.  What is really weird
is that various functions are called that use OpenSubKey().  These
functions also log correct return values and do not throw exceptions.
But the key is never created.



The custom action works fine in XP but fails in Windows 7.  I am running
the custom action with Impersonate="no".





Kurt Jensen

Senior Software Engineer

Ophir-Spiricon

www.Ophir-Spiricon.com <http://www.ophir-spiricon.com/>


**********************************************************************
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
------------------------------------------------------------------------------
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