cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating Custom Platform Expressions

Creating Custom Platform Expressions

Summary

Information on adding unlisted platform names to the Check Platform rule expression

Synopsis

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.
Add Platform Dialog


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
Check Platform Expression Example

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

Labels (1)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Nov 12, 2018 06:08 PM
Updated by: