This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Knowledge Base
- :
- Creating a Custom ICE with InstallShield
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Creating a Custom ICE with InstallShield
Creating a Custom ICE with InstallShield
Summary
In addition to built-in validation tests, InstallShield also allows for custom ICE tests to be created and run. This article contains an example.Synopsis
In addition to built-in validation tests, InstallShield also allows for custom ICE tests to be created and run. This article contains an example.Discussion
In addition to the built-in validation tests provided by InstallShield, it is also possible to create custom ICE tests and run them against and installer. This article provides steps to create a simple ICE tests and use it for validation using InstallScript and InstallShield.- Download the attached sample project.
- Build the attached sample project.
- Install the attached sample project. Note there is not uninstaller as the installer only function is to copy the completed .CUB file for use with validation.
With the installed .CUB file, the sample project can now be validated using the custom validation. To do so:
- Open the Build menu
- Select Validate -> Browse for a New Validation Module
- Select the custom .CUB
Additional Information
As MSI installers are databases, the basis of all validation tests will most often involve checking the actual database for specific patterns or entry types. Although this example can be used as is if the intent is to identify script based custom actions, a better usage of this example is to focus on how this installer creates the modified .CUB as well as how the actual CustomICE custom action compares database entries. Note also that LogMessage contains the logic necessary to send messages to the output window of InstallShield.
No ratings