We have added new conditions to Visual Installer’s script language that can be used to:
• check whether Microsoft Office is installed in the computer or not
• check if the installed Microsoft Office is 32 bit or 64 bit
This can be useful if you for example:
• install files that require that Microsoft Office is installed in the computer
• install files that require a specific bitness of Microsoft Office (for example 32 bit Office)
• want to install different files depending on the bitness of Microsoft Office
How to check if Office is installed
If you want to check if Microsoft Office is installed in the end-user’s computer you can use the new IF OFFICEINSTALLED condition that we have added to Visual Installer’s script language. You can also check if Microsoft Office is not installed in the computer in an easy way by using the IF NOT OFFICEINSTALLED condition.
Below you can see how these two conditions can be used:
How to check Office bitness
There are 32 bit and a 64 bit versions of Microsoft Office available, and if you distribute executable files or components that co-operate with Microsoft Office (for example with Microsoft Excel or Microsoft Access) the bitness of the executable files or components that you install must often be the same as the bitness of the installed Office.
To handle this in a smooth way, you can use a new condition in Visual Installer’s scripting language. The name of the new condition is IF OFFICEBIT=?? where ?? can be 32 or 64. For example IF OFFICEBIT=32, which checks if a 32 bit version of Office is installed.
Below you can see how this new condition can be used:
Below is another example, where the conditions above are combined. First the script lines checks if any version of Office is installed in the computer, and thereafter the script lines starts an installation with the same bitness (32 bit or 64 bit) as the installed Office:
If no Office application is installed in the system, an information message box is shown (line 4) and the installation stops (line 5).