I'm trying to create an installer for an Excel addin.
I want the installer to detect which Excel version is used and then install the addin accordingly.
I have created a Custom Action in C# that finds out which Excel version is installed.
The custom action then stores the Excel version in a variable called EXCEL_VERSION.
Example code from the Custom Action:
Code: Select all
session["EXCEL_VERSION"] = "2013";Code: Select all
Excel Version: [EXCEL_VERSION]Using the "Go to Component", I have set a condition for each registry entry and this is where it doesn't work.
The conditions never seems to evaluate to True...
Condition:
Code: Select all
EXCEL_VERSION= "2013"I have one additional question regarding the variable [AI_ADDIN]
How can I find out if the "Office Product Addin" is used in my project?
Many thanks,
Kalle
FOLLOW US
Get the latest news in Application Packaging