| InstallerContactSite Map |
Advanced Installer User Guide | |||
Predefined UI Custom Actions |
| These custom actions are already implemented in Advanced Installer and they can be used for your installation package.
1. Launch File as AdministratorThis predefined custom action can be used to launch any file as an Administrator (the equivalent of Run As... or Run As Administrator Windows Shell options). It can be used only as an "UI Custom Action" through a "DoAction" control event (it requires the Dialog Editor feature). This custom action uses the following input installer properties:
These input properties may contain Windows Installer formatted references.
2. Test ODBC ConnectionYou can use this UI custom action when you want to validate user input parameters for an SQL ODBC Connection by testing the connection from within the "SQLConnectionDlg" dialog. For details please see: Test SQL Connection. 3. Update MSI Edit ControlsThis UI-only custom action provides a workaround for a Windows Installer issue. For more information on how to use it please see: Set Edit control text on button push. 4. Browse For FileThis UI custom action will display an Open File dialog during the installation. See the Browse For File tutorial for details on how to configure your project. 5. Predefined custom actions for working with ComboBox controlsPopulate ComboBox, Delete from ComboBox and Extract ComboBox Data are UI-only custom actions that can be used to populate, delete from and extract data from ComboBox controls. See the ComboBox and ListBox controls tutorial for details and sample projects. 6. Predefined custom actions for working with ListBox controlsPopulate ListBox, Delete from ListBox and Extract ListBox Data are UI-only custom actions that can be used to populate, delete from and extract data from ListBox controls. See the ComboBox and ListBox controls tutorial for details and sample projects. 7. Collect installation data and send it to a web serverYou can use this UI custom action when you want to collect installation data and send it to your web server for processing. Install information can only be collected through Windows Installer properties (their values). For details please see: Collect installation data and send it to a web server. 8. Preserve the old version's Install TypeThis predefined custom action allows your package to use the same installation type as the version it upgrades through the automated upgrade feature. For example, your package will be installed per-user if it upgrades a per-user installation or it will be installed per-machine if it upgrades a per-machine installation.
9. Uninstall previous versionsWith this custom action you can uninstall the older versions of your product, no matter what Installation Type they use (per-user or per-machine). It can be used as an UI Custom Action or under InstallUISequence.
10. Play Audio FileThis custom action allows you to play an audio file during the installation. For more details please see the Play an Audio file how-to. 11. Check TCP portThis custom action allows you to check if a TCP port is free. This custom action runs only on Windows 2000 or greater systems. For more details see the Check TCP port how-to. The following Windows Installer properties are used to configure this custom action:
The custom action returns the check's result in the Windows Installer property AI_PORT_TEST_RES. The property can have the following values:
12. Get free TCP portThis custom action allows you to get a free TCP port. This custom action runs only on Windows 2000 or greater systems. For more details see the Get a free TCP port how-to. The following Windows Installer properties are used to configure this custom action:
If the port is free then the AI_PORT_TEST_RES property's value is "FreePort", otherwise it's empty. |
