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

Creating 32/64 bit registry keys based on condition(Outlook)

Hi,

I have a 32 bit setup, and it has set of registry keys say HKLM\SOFTWARE\Microsoft\Office\Outlook\Addins\DesktopControlOutlookAddin

I have following requirements
- On 32 bit machines, this need to be written in HKLM\SOFTWARE\Microsoft\..
- On 64 bit machines
----- On 64 bit Outlook(e.g. AI_OFFICE2010_OUTLOOK_X64_SEARCH OR AI_OFFICE2013_OUTLOOK_X64_SEARCH), it needs to be written in HKLM\SOFTWARE\Microsoft
----- On 32 bit Outlook, it needs to be written in HKLM\SOFTWARE\WOW6432Node\Microsoft\...

Can you please help me with this?

Regards,
Rohan
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Creating 32/64 bit registry keys based on condition(Outl

Hi Rohan,

In order to achieve what you want you can follow the steps described in the How do I install different registry entries based on the Operating System (32/64-bit) tutorial and also add the properties related to the Outlook version to the condition of the registry as in the examples below:
- On 64 bit machines
----- On 64 bit Outlook(e.g. AI_OFFICE2010_OUTLOOK_X64_SEARCH OR AI_OFFICE2013_OUTLOOK_X64_SEARCH), it needs to be written in HKLM\SOFTWARE\Microsoft

Code: Select all

VersionNT64 AND (AI_OFFICE2010_OUTLOOK_X64_SEARCH OR AI_OFFICE2013_OUTLOOK_X64_SEARCH)
- check the "64-bit Component" flag for these components


The same registry entries with the same condition will be used for the following cases:
- On 32 bit machines, this need to be written in HKLM\SOFTWARE\Microsoft\..
- On 64 bit machines
----- On 32 bit Outlook, it needs to be written in HKLM\SOFTWARE\WOW6432Node\Microsoft\...

Code: Select all

(NOT VersionNT64) OR (VersionNT64 AND NOT (AI_OFFICE2010_OUTLOOK_X64_SEARCH OR AI_OFFICE2013_OUTLOOK_X64_SEARCH))
- do not check the "64-bit Component" flag for these components

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - 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: Creating 32/64 bit registry keys based on condition(Outl

Thank you Eusebiu. It worked fine. I do appreciate your help.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Creating 32/64 bit registry keys based on condition(Outl

You're welcome Rohan. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”