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!

NigelShaw
Posts: 58
Joined: Wed Apr 01, 2015 12:45 am

Custom Action: Install on condition

Hi,

im my old installer, i was able to set an install of a support file on if it wasn't already installed. If it was already installed, the install of this support file was aborted. Also, i was able to install it silently without the user needing to press any additional buttons or see the dialog (Its an Access Runtime File Installation)

How can i implement the same in AI? currently, i have 'NOT Installed' in my condition to my Custom Action but i can see the installer.
Custom Condition.jpg
Custom Condition.jpg (84.91 KiB) Viewed 2775 times

Thanks

Nigel
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Custom Action: Install on condition

Hi Nigel,

There is no need to use a custom action to run an installation package.
You can add the Microsoft Access Database Engine 2010 Redistributable as a prerequisite in the Prerequisites page using:
  • - [ New Package Prerequisite ] toolbar button to create a new prerequisite using files from disk.
  • - [ New URL Prerequisite ] toolbar button and add the download URL of the prerequisite.
Please keep in mind that this type of prerequisite is created with default settings, so you need to configure it manually. The best way to see what install conditions you should use is to install the prerequisites on a clean machine and see what changes take place.

Usually the easiest way is to see changes that affect the registry hive, HKCU or HKLM.

Please note that a prerequisite will be installed based its install conditions defined in the Prerequisite Install Conditions Tab of the related Prerequisite. The Install Conditions section allows you to condition the prerequisite based on custom searches. You can create multiple searches for the same prerequisite. In order to test a condition you can use the [Test] button.
The Prerequisite Search Dialog allows you to add a new search to the installation conditions of a prerequisite or edit an existing one.

Also, be aware by the two options below the “Install Conditions” pane:
  • Install only if at least one condition is false - If this option is selected, at least one search must fail in order to install the prerequisite.
    Install only if all conditions are false - If this option is selected, all searches must fail in order to install the prerequisite.
So, the prerequisite software will be installed according to the enabled option which refers to the install condition that you have defined before.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”