> Have you set Execute="deferred" on CustomAction and scheduled it between InstallInitialize and InstallFinalize ? yes and yes
> Are the installer and machine it is running on both 32-bit ? both are 64-bit. I am trying to create HKLM\Software\Spiricon\Version5\ - Spiricon or Version5 may not exist on the user's machine. I need HKLM because the keys contain information necessary for the program to run and applies to all users. The installer is required to have be an administrator because we are also installing device drivers. Perhaps it is virtualizing though the documentation says that this should not happen with 64-bit processes. I looked under HKCU and found \Software\Spiricon\Version5\ had been created but the string values we write were not there. -----Original Message----- From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] Sent: Thursday, July 01, 2010 9:45 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Windows 7 Custom Action Registry problem There might be some registry redirection or virtualisation occurring. Have you set Execute="deferred" on CustomAction and scheduled it between InstallInitialize and InstallFinalize ? Are the installer and machine it is running on both 32-bit ? -----Original Message----- From: Kurt Jensen [mailto:kurt.jen...@ophir-spiricon.com] Sent: 01 July 2010 16:33 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 </pre> <BR style="font-size:4px;"> <a href = "http://www.sdl.com"><img src="http://www.sdl.com/images/email logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a> <BR> <font face="arial" size="2" "><a href = "http://www.sdl.com" style="color:005740; font-weight: bold">www.sdl.com</a> <BR> <BR> <font face="arial" size="1" color="#736F6E"> <b>SDL PLC confidential, all rights reserved.</b> 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.<BR> SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.<BR> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. </font> ------------------------------------------------------------------------ ------ 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