Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-09 Thread wixtester
Thank you all for suggestions! Truly appreciate all the help. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CustomAction-built-for-AnyCPU-does-not-read-64-bit-registry-hive-tp7598754p7598793.html Sent from the wix-users mailing list archive at

Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-08 Thread wixtester
I may have not been clear in my earlier emails, sorry about that. I have a C# custom action that uses Microsoft.Win32.RegistryKey. I am building this custom action with AnyCPU. The custom action searches for JRE on the system and set a value to Session variable. I have 64-bit JRE installed on

Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-08 Thread Daniel Norman
@lists.sourceforge.net Subject: Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive I may have not been clear in my earlier emails, sorry about that. I have a C# custom action that uses Microsoft.Win32.RegistryKey. I am building this custom action with AnyCPU. The custom action

Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-08 Thread John Cooper
@lists.sourceforge.net Subject: Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive I may have not been clear in my earlier emails, sorry about that. I have a C# custom action that uses Microsoft.Win32.RegistryKey. I am building this custom action with AnyCPU

Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-08 Thread Phill Hogland
Regarding the comments about using AnyCPU this blog explains one reason why on a x64 system AnyCPU runs a 32 bit instance of .Net http://blogs.microsoft.co.il/sasha/2012/04/04/what-anycpu-really-means-as-of-net-45-and-visual-studio-11/ -- View this message in context:

Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-08 Thread Phil Wilson
You should be building separate MSIs for both arcitectures: http://blogs.msdn.com/b/heaths/archive/2008/01/15/different-packages-are-required-for-different-processor-architectures.aspx so build an x86 Dll for 32-bit systems and an x64 Dll for 64-bit. In any case, AnyCpu for a Dll actually means

Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-08 Thread Rob Mensching
built for AnyCPU does not read 64-bit registry hive The CustomAction does not permit Win64 attribute for a managed custom action CustomAction Id='customActioncheckJavaHomeEnvVar' BinaryKey='provisionCA' DllEntry='SearchJRE' Execute=immediate Return=check Win64=yes/ Error message

Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-07 Thread wixtester
The CustomAction does not permit Win64 attribute for a managed custom action CustomAction Id='customActioncheckJavaHomeEnvVar' BinaryKey='provisionCA' DllEntry='SearchJRE' Execute=immediate Return=check Win64=yes/ Error message error CNDL0037: The CustomAction/@Win64

Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-07 Thread Jeremiahf
Defer it? On Wed, Jan 7, 2015 at 8:49 PM, wixtester sangee...@hotmail.com wrote: The CustomAction does not permit Win64 attribute for a managed custom action CustomAction Id='customActioncheckJavaHomeEnvVar' BinaryKey='provisionCA' DllEntry='SearchJRE' Execute=immediate Return=check

Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-07 Thread Jeremiahf
Sorry, for the short response. I have done it by setting conditions. x86 vs x64.Per Rob's blog, check this out http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/block_install_on_os.html and (it is also linked) http://msdn.microsoft.com/library/aa370556.aspx

Re: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-07 Thread Rob Mensching
12:55 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive Hi, I have a managed custom action to read the registry. I want it to read the 64-bit registry on a 64-bit Windows and 32-bit registry on x86 Windows. When I

[WiX-users] CustomAction built for AnyCPU does not read 64-bit registry hive

2015-01-07 Thread wixtester
Hi, I have a managed custom action to read the registry. I want it to read the 64-bit registry on a 64-bit Windows and 32-bit registry on x86 Windows. When I build the custom action for AnyCPU, I expect it to work. But when I run the msi (that invokes this custom action) on Win 2008 R2 which