Unfortunately it is a little harder to define the install condition for the
Install Office 2007 Primary Interop Assemblies and Install Office 2010 Primary Interop Assemblies. The easiest way for you is to condition its installation behavior in the
Feature Properties and leave the
Always install prerequisite option enabled in the
install conditions tab for this prerequisite.
Please note that when a
Feature - based prerequisite automatically it is added a new
Feature in the
Organization page.
For the
Office 2007 Primary Interop Assemblies you can go in the
Search page and add the following
Extended Search Properties
1)
INTEROP2007 -
check if Office 2007 Primary Interop Assemblies is installed
Criteria: Product Version (identify by Product Code)
Product Code: {50120000-1105-0000-0000-0000000FF1CE}
2)
OFFICE2007 -
check if Office 2007 is installed
Criteria: Registry key exist
Registry key:HKLM\SOFTWARE\Microsoft\Office\12.0\Access\InstallRoot
You can enable the
Not installed option from its
feature properties and add a statement like that
( NOT INTEROP2007 ) AND ( NOT OFFICE2007 ) in the
Installed if: line.
Where:
- -INTREROP2007 is the property name assigned to the Office 2007 Primary Interop Assemblies search
- OFFICE2007 is the property name assigned to the Office 2007 search
For the
Office 2010 Primary Interop Assemblies you can go in the
Search page and add the following
Extended Search Properties
1)
INTEROP2010 -
check if Office 2010 Primary Interop Assemblies is installed
Criteria: Product Version (identify by Product Code)
Product Code: {90140000-1146-0000-0000-0000000FF1CE}
2)
OFFICE2010 -
check if Office 2010 is installed
Criteria: Registry key exists
Registry key: HKLM\SOFTWARE\Microsoft\Office\14.0\Access\InstallRoot
3)
OFFICE2013 -
check if Office 2013 is installed
Criteria: Registry key exists
Registry key: HKLM\SOFTWARE\Microsoft\Office\15.0\Access\InstallRoot
You can enable the
Not installed option from its
feature properties and add a statement like that
( OFFICE2010 OR OFFICE2012) AND ( NOT INTROP2010) in the
Installed if: line.
Where:
- -OFFICE2010 is the property name assigned to the Office 2010 search
-OFFICE2013 is the property name assigned to the Office 2013 search
-INTREROP2010 is the property name assigned to the Office 2010 Primary Interop Assemblies search
If you need any help, please let us know.
Best regards,
Dan