| InstallerContactSite Map |
Advanced Installer User Guide | |||
Windows Installer Custom Actions |
| Below is a description of the Windows Installer custom actions used in Advanced Installer.
Attached Custom ActionUsing this type of custom action you can execute an application (EXE or DLL) or run a script (VB or Java script) which is not among your project files. This usually happens when this functionality is only useful in the installation process, but not for the installed application itself. This source file will be embedded in the MSI file but will not be deployed at install time with the other application files. Description of the fields:
Installed Custom ActionThis custom action is an application (EXE or DLL) or a script (VB or Java script) included in the MSI package. It behaves as an attached custom action ,but it must be scheduled after the files have been deployed on the target computer. Description of the fields:The usage of the fields is identical to the one described for the Attached Custom Actions. Script InlineThis custom action is basically a small VBScript or JScript that is ran during the install process. Description of the fields:
Usually this script is made up of a single line. If it is longer and needs to be placed on several lines just edit the "Script Text" field with the body of the script and use the ":" character (without the quotes) to mark the place where a line ends and another begins. A custom action that is written in JScript or VBScript requires the install Session object. The installer attaches the Session Object to the script with the name "Session". Because the Session object may not exist during an installation rollback, a deferred custom action written in script does not have access to all the methods and properties of the Session object. Here is an example of a "Script Inline" custom action written in VBScript: MsgBox Session.Property("APPDIR")This custom action will prompt a message box containing the value of the APPDIR property. Error MessageThis custom action enables the stopping of the installation process if some condition is satisfied or not. An error message will be displayed to let the user know what has happened. The condition for stopping the install process must be entered in the "Execution Condition" field. Description of the fieldsError message - the message that will be displayed to the user. It is of Formatted Type so you can use the button to insert reference to files, folders and properties. Property SourceThis custom action calls an executable or a script launched with a command line. The path to the executable file is specified through a property. Description of the fields:
EXE with Working DirThis custom action calls an executable file. This file has a designated folder as Working Directory. When creating a "Exe With Working Dir" type of custom action you will be prompted with a window that will allow you to choose the working directory for the executable file. Description of the fields:
Property Set with FormattedThis custom action sets a property from a formatted text string. Description of the fields:
Directory Set with FormattedThis custom action enables setting a folder from a formatted text string. Description of the fields
Example:
MSI Database Relative to PackageThis custom action installs a MSI file. This operation is also called a nested installation. The location of the MSI file must be relative to the location of the main MSI (in the same folder or one of it's subfolders). Example:Your package is named Main.msi and is located in "c:\packages\test" and your nested install package is named Nested.msi. The Nested.msi can be located:
Description of the fields
MSI Database with Product CodeThis custom action is used to modify or remove a product installed by the current package. It may also be used to install a product that has been previously installed as advertised. The MSI is identified by it's product code. Since this type of custom action is usually used for uninstalling a product previously installed by the current package, Advanced Installer will automatically add a custom action for this purpose every time you add a nested installation.
Description of the fields
|
