- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Knowledge Base
- :
- Creating Custom Platform Expressions
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Creating Custom Platform Expressions
Creating Custom Platform Expressions
Summary
Information on adding unlisted platform names to the Check Platform rule expressionSynopsis
InstallAnywhere features a Check Platform rule that allows you to specify what platforms (operating systems) to either perform on or to not perform on. The Rule's customizer contains a preset list of platforms as well as a More Platforms? button that contains further platform expressions that can be used. Custom platform expressions can be manually added (into the text box seen below) to further expand this list.
Discussion
If a platform you want to specify is not listed under the preset list of platforms or the More Platforms? dialog, you can add your own custom platform expression. For example, you can enter Windows 8.1 into the text box to check specifically for Windows 8.1. Valid platform names that you can use will depend on the version of Java you are using, since the Check Platform rule evaluates the platform of the target machine based on the text string returned by the Java VM?s System.getProperty (os.name) method call. One thing to keep in mind is that some preset platform names contain multiple related operating systems in its expression. For example, Windows 8 will evaluate to Windows 8/8.1/Windows 2012 Server/Windows 2012 Server R2.
Here is an example on how to create a rule expression that does not run on Windows Server 2008 R2 but will run on Windows 7:
- Add Windows Server 2008 R2 to the Do Not Perform On list
- Add Windows 7 to the Perform On list
Additional Information
For more information on the Check Platform Rule, please see the following HelpNet pages:
Check Platform Rule
Customizing a Check Platform Rule
Also for other related information, refer to the following articles:
Check Platform Rule Appears To Behave Incorrectly When Adding a Specific Windows Version
How to Add Platform Support for Windows Server 2008 R2 and Windows Server 2008