Hi Rohan,
If your prerequisite is added as a
feature-based or
post-install prerequisite, then automatically a new
feature is created in the
Organization page.
Since you want to set this feature available only on the target machine where "Micorosfot Outlook 2007 or higher is installed" you select the
Disabled Installation Behavior and add in the
Installed if field the result of your search for each Outlook version. Please use this printscreen for your reference:

- InstalledIFCond.png (35.76 KiB) Viewed 7341 times
So, you need to create a new search in the
Search page in order to check for each version of Outlook if it is installed.
Then, you can go in the
Custom actions page and delete the
Update features install state custom action (if it is pressent) and add it
without sequence in order to add it as a
init event on the
ConfigureDlg. Please take a look on the
How do I execute a custom action when a button is pushed? article which may be useful to you.
Also, I thing you can take advantage of the predefined Software Launch condition for the Outlook.
Here's what you can try:
1) Enable the related launch condition.
When this launch condition has been enabled, the search for the related software are performed by Advanced Installer for you. The result of the searches are filled in these properties:
AI_OFFICE2007_OUTLOOK_SEARCH OR AI_OFFICE2010_OUTLOOK_SEARCH OR AI_OFFICE2010_OUTLOOK_X64_SEARCH OR AI_OFFICE2013_OUTLOOK_SEARCH OR AI_OFFICE2013_OUTLOOK_X64_SEARCH
2) Go to the
Table Editor page and in the
LaunchCondition table, delete this row (so you can run your installation package on the machine where there is not Outlook installed).
3) Add this statement in the
Installed if: field of your
feature.
4) Go in the
Custom actions page and delete the
Update features install state custom action (if it is pressent) and add it
without sequence in order to add it as a
init event on the
ConfigureDlg. Please take a look on the
How do I execute a custom action when a button is pushed? article which may be useful to you.
Please find the attached sample project for your reference.
Let me know if that worked as expected.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging