Yes, I have now added that. But in my CA I need to add, delete, and write values under that key. I am getting HKCU instead.
> Windows Installer does a fantastic job writing registry entries and removing them later on under all sorts of variable influences I don't know about "under all sorts of variable influences". our experience is that Windows Installer works if it is done perfectly and in the correct order. our code is defensive and deals with installs and uninstalls that failed in the middle. in addition we also deal with terminating the app. the original reason for the custom action is the difficulty we encountered when trying to deal with installing and uninstalling a service. despite much reading, much searching, and much experimentation Windows Installer would never work for us. so we created our own solution. > Why reinvent the wheel? because the learning curve to understand the wheel is higher. I tried to read the article at your link. I understand the problem. I read the solution. I honestly have no idea how the solution solves the problem. And, I have no idea where to look in order to understand the solution. 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. > . Custom actions that add temporary rows to built-in tables gives you the flexibility to deal with whatever is your reason for > making a custom action that writes entries in the registry to begin with (assuming you can't do this some other way using component > conditions, features, or some other basic elements of WiX). if I understood half of what you just said then maybe I would use it. but I am not an expert in MSI or WiX for that matter. if I had time and people I could become an expert. but...the other guys have finished their part. now they are all waiting for me to finish the install. this problem appears to be my last hurdle. if I could get the registry entry into the %$#^&@* HKLM then I would be done. I thought it would be easier just to put all of the creation and management into the custom action. TIA for your help. -----Original Message----- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: Thursday, July 01, 2010 11:01 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Windows 7 Custom Action Registry problem "I am trying to create HKLM\Software\Spiricon\Version5\" You can do that with simple RegistryValue and/or RegistryKey elements in WiX. Why do you need a Custom Action? Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Kurt Jensen [mailto:kurt.jen...@ophir-spiricon.com] Sent: 01 July 2010 17:00 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Windows 7 Custom Action Registry problem > 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 ------------------------------------------------------------------------ ------ 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