Launch Condition: 64-bit version of Office? - Advanced Installer Community

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!

jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

Launch Condition: 64-bit version of Office?

How do I detect that the 64-bit version of Office (specifically Outlook and Excel) is installed on the user's machine?

Currently I use "Launch Conditions -> Software Launch Conditions -> Installed Office Application -> Microsoft Outlook - Minimum Version 2010" but it does not differentiate between the 32 and 64 bit versions of Office.

My problem is that users tend to assume that they have the 64-bit version of Office 2010 installed if they are running Windows 7 x64. 99.99% of the time they are running the 32-bit version of Office 2010 on Win 7x64 but they install the 64-bit version of one of our add-ins anyway. The installation succeeds but the add-in doesn't show up in Excel / Outlook because it's for the wrong Office bitness. This generates a tech support call.

I'd like the 64-bit versions of our installers to produce an error message and cancel the installation if the 64-bit version of Office is not installed. Is there a custom launch condition I can use?

I'm using AI 8.6

Thanks!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Launch Condition: 64-bit version of Office?

Hello,

You can try to add predefined Office searches from the Search page and mark the x64 ones with "Search the 64-bit portion of the registry" option.

After doing this, you can use the searches' names in custom launch conditions.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

Re: Launch Condition: 64-bit version of Office?

Thanks. This works well. Is there a way to change the error message the user receives if my custom launch condition fails?

I looked in the .aip file and and found the error message that is produced when my launch condition fails in the caphyon.advinst.msicomp.MsiLaunchConditionsComponent section:

ROW Condition="AI_OFFICE2010_EXCEL_SEARCH OR AI_OFFICE2010_EXCEL_X64_SEARCH"
Description="[ProductName] cannot be installed on systems without [AI_OFFICE2010APP] 2010 or higher."

I changed the text of the description to include the word 64-bit and it seems to work:

"[ProductName] cannot be installed on systems without 64-bit [AI_OFFICE2010APP] 2010 or higher."

This seems to be the error message for one of the built in launch conditions I used but it works in my situation (I think).

My custom launch condition looks like:

ROW Condition="OFFICE_2010_PATH" Description="Check For Office x64"


Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Launch Condition: 64-bit version of Office?

Hello,

Please keep in mind that you shouldn't manually edit the .AIP file because this could lead to future unwanted, untraceable behavior.

The description of the error message can be specified from the Edit launch Condition Dialog in the Launch Conditions page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jwest
Posts: 56
Joined: Tue Dec 27, 2005 12:14 am

Re: Launch Condition: 64-bit version of Office?

Excellent! I did not know that the description of the launch condition is used as the error message if the condition fails. Thanks!

Brilliant stuff AI team!
AnneTheAgile
Posts: 61
Joined: Wed Jun 08, 2011 9:53 pm

Re: Launch Condition: 64-bit version of Office?

I agree, AIP is so helpful! Maybe a thought for the future, if the 'description' could have a tooltip or be renamed to say it is the error message. Or maybe just more detailed example in the documentation.

Return to “Common Problems”