Re: [WiX-users] Re compiling WiX C++ libs for 64-bit

2008-03-30 Thread Mike Dimmick
Comments inline. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Arnson Sent: 25 March 2008 15:21 To: Sanin Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Re compiling WiX C++ libs for 64-bit 2. If so, here is the problem

Re: [WiX-users] Re compiling WiX C++ libs for 64-bit

2008-03-30 Thread Bob Arnson
Mike Dimmick wrote: KEY_WOW64_64KEY flag to the samDesired parameter of RegCreateKeyEx or RegOpenKeyEx. If required, you can delete a 64-bit key from 32-bit code by calling RegDeleteKeyEx. The issue isn't Reg*Ex, it's GetNamedSecurityInfo in the SecureObject CA. SE_REGISTRY_WOW64_32KEY

Re: [WiX-users] Re compiling WiX C++ libs for 64-bit

2008-03-29 Thread Bob Arnson
Sanin wrote: 2. Explicitly pass appropriate flag when using registry classes from .NET so that automatic redirection does not happen. Why would you go through the hassle of writing a C++ custom action that loads a .NET assembly to write to the registry when MSI already supports 64-bit

Re: [WiX-users] Re compiling WiX C++ libs for 64-bit

2008-03-29 Thread Sanin
LOL Just writing registry keys, of course, is not the only thing that happens inside .NET custom actions. Sometimes we have to read a registry key already written and perform a certain action, or write a new key whose value is not that easily derived to be handled by the Registry table. Bob

Re: [WiX-users] Re compiling WiX C++ libs for 64-bit

2008-03-28 Thread Sanin
For the risk of beating a dead horse let me try to explain: Fundamentally, I want to be able to write custom actions for WiX in .NET. As we all know WiX at present time cannot call into .NET assemblies. So we set out to create a simple shim in C++ which has the job of loading a .NET CLR and

Re: [WiX-users] Re compiling WiX C++ libs for 64-bit

2008-03-27 Thread Bob Arnson
Sanin wrote: Although my CLR loader, which is actually a C++ custom action for WiX, is 32-bit IT WILL be able to load the 64-bit CLR into the installer process and kick off .NET custom actions, which in turn may write files and registry keys without redirection, right? Sorry, I don't know

Re: [WiX-users] Re compiling WiX C++ libs for 64-bit

2008-03-27 Thread Sanin
To answer my own question: NO -- the CLR loaded will be 32-bit and all downstream calls into .NET custom actions will run as 32-bit and be victims of registry redirection. Sanin wrote: Bob, thanks for your reply. To make sure let me summarize: Although my CLR loader, which is actually

Re: [WiX-users] Re compiling WiX C++ libs for 64-bit

2008-03-26 Thread Sanin
Bob, thanks for your reply. To make sure let me summarize: Although my CLR loader, which is actually a C++ custom action for WiX, is 32-bit IT WILL be able to load the 64-bit CLR into the installer process and kick off .NET custom actions, which in turn may write files and registry keys without

[WiX-users] Re compiling WiX C++ libs for 64-bit

2008-03-24 Thread Sanin
I have a C++ WiX custom action which happens to be a shim to a .NET assembly. I am now trying to produce a 64-bit version of the installation kit. Questions: 1. Do I have to recompile my shim (i.e. C++ custom action) to 64-bit? 2. If so, here is the problem: - existing WiX C++ libraries