We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Reading 64 bit registry key value from 32 bit installer

Hi

I have 32 bit installer. Currently, I have a search, which searches "registry value with the specified content" for "HKLM\SOFTWARE\Microsoft\Office\15.0\Outlook\Bitness".

On 64 bit machines it would search for "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook\Bitness", instead is it possible to search for "HKLM\SOFTWARE\Microsoft\Office\15.0\Outlook\Bitness"?

For instance, the behavior should be like setting KEY_WOW64_64KEY(http://msdn.microsoft.com/en-us/library ... 85%29.aspx)

Regards,
Rohan
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Reading 64 bit registry key value from 32 bit installer

Hi Rohan,

Please note that on a 64-bit machine the registries entries installed by a 32-bit application are created under the "HKEY_LOCAL_MACHINE\Software\Wow6432Node" key. Please take a look on our article about the Wow6432Node registry key. Also, by default the prerequisite searches use 32-bit locations no matter on what operating system (32-bit or 64-bit) your application runs.

However, if you want your prerequisite installation conditions to be evaluated using 64-bit locations you should check Use 64-bit locations when evaluating conditions on a 64-bit machine option from Install Conditions tab. Use the Evaluate... button to test the search result.

Also, you can take a look on our Use 64-bit locations not working forum thread which may be useful to you.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Reading 64 bit registry key value from 32 bit installer

Hi Dan,

Thanks for the information. May be I have not explained the problem properly.

I have implemented the "Outlook bit detection" similar to the following
Dan wrote:Hi Rohit,

Starting with Office 2010, Outlook is available as a 32-bit application or as a 64-bit application. So, in order to install the 64 bit DLL you only need to check the following registry keys:

Office 2010
  • • Registry path: HKEY_LOCAL_MACHINE\Software\Microsoft\Office\14.0\Outlook
    • Registry key: Bitness
    • Value: x64.
Office 2013
  • • Registry path: HKEY_LOCAL_MACHINE\Software\Microsoft\Office\15.0\Outlook
    • Registry key: Bitness
    • Value: x64.
In order to achieve that, you can go in the Search page and add a Registry value with a specified content – extended search for Outlook 2010 (e.g. OUTLOOK_64_2010 ) and another Registry value with a specified content – extended search for Outlook 2013 (e.g. OUTLOOK_64_2013 ).
Your extended searches properties can look something like:
SearchPage.png
Then, in the Organization page, you can add in the condition field from the component properties of your 64 bit DLL a condition like that:

Code: Select all

( VersionNT64 AND OUTLOOK_64_2010 ) OR ( VersionNT64 AND OUTLOOK_64_2013 )
OrganizationPage.png
Please note that VersionNT64 - property is set only if the system is running on a 64-bit computer (it is empty if the package runs on a non-64 bit computer).
Using this statement in the condition field, the 64 bit DLL will only be installed if the Operating System is on 64 bit and the Outlook bitness is 64 (Office 2010 and Office 2013), otherwise the 32 bit DLL should be installed.

So, you can add in the condition field from the component properties of your 32 bit DLL a condition like that:

Code: Select all

NOT ( OUTLOOK_64_2010 OR OUTLOOK_64_2013 )
Using this condition, since there is no Outlook 64 bitness, the 32 bit DLL will be installed.

Please let me know if that helped.

Best regards,
Dan
In one of the German machine(having Windows 8.1 and Outlook 2013 64 bit) we found that, bitness is only stored in HKLM\SOFTWARE\Microsoft\Office\15.0\Outlook\Bitness(and not in HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook\Bitness)

Since, I have 32 bit setup(i.e package type = 32 bit package), on 64 bit machines it checks HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook\Bitness(and not HKLM\SOFTWARE\Microsoft\Office\15.0\Outlook\Bitness").

In 64 bit machine(32 bit setup), Is it possible to check HKLM\SOFTWARE\Microsoft\Office\15.0\Outlook\Bitness(instead of HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook\Bitness)?

Note: This could be done by writing the custom dll which make use of flag KEY_WOW64_64KEY(http://msdn.microsoft.com/en-us/library ... 85%29.aspx).
KEY_WOW64_64KEY (0x0100) - Indicates that an application on 64-bit Windows should operate on the 64-bit registry view. This flag is ignored by 32-bit Windows.
I wanted to avoid writing one more dll :-(
Last edited by shetty_rohan on Tue Jun 03, 2014 10:44 am, edited 1 time in total.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Reading 64 bit registry key value from 32 bit installer

Hi Rohan,
In 64 bit machine(32 bit setup), Is it possible to check HKLM\SOFTWARE\Microsoft\Office\15.0\Outlook\Bitness(instead of HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook\Bitness)?
As I said in my previos reply, if you want your prerequisite installation conditions to be evaluated using 64-bit locations you should check Use 64-bit locations when evaluating conditions on a 64-bit machine option from Install Conditions tab. Use the Evaluate... button to test the search result.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Reading 64 bit registry key value from 32 bit installer

Hi Dan,

I am sorry, I am unable to understand this(it is not a prerequisite)

May be, I will explain with the screeshots
- I have a search condition to read the bitness
Search.JPG
Search.JPG (28.76 KiB) Viewed 11815 times
- I have "PalService_32bit" which needs to be installed only if Outlook 32 bit installed
I have "PalService_64bit" which needs to be installed only if Outlook 64 bit installed
Files-Folders.JPG
Files-Folders.JPG (61.79 KiB) Viewed 11815 times
- I specify these conditions in Organization page
Organization.JPG
Organization.JPG (85.39 KiB) Viewed 11815 times
Do let me know if it is not clear, I could send you the aip file.
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Reading 64 bit registry key value from 32 bit installer

Do let me know if this requirement is not clear to you.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Reading 64 bit registry key value from 32 bit installer

Hi Rohan,

Can you please try to go in the Search page and create a new registry search using the [ New Search Wizard ] toolbar button following step-by-step directions?

Add the related registry path, HKLM\SOFTWARE\Microsoft\Office\15.0\Outlook\Bitness and enable the Search the 64-bit portion of the registry option from the Registry Location Properties.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Reading 64 bit registry key value from 32 bit installer

Thank you Dan. This approach solved my problem.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Reading 64 bit registry key value from 32 bit installer

You're welcome Rohan,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”