removeSpecialCharacters()
Removes the trademark or other special characters to make comparisons easier.
The function is in the /lib/common.vbs file.
Purpose
This function calls the Replace() function to replace the trademark, copyright, and
registered symbols with "".
Syntax
removeSpecialCharacters(s)
Input parameters
String s
Return values
String s
versionCompare()
Parses the input parameters that represent the actual and expected values for a
prerequisite property and compares them to determine whether the prerequisite
property passes the prerequisite check. The function expects dot-separated version
strings as input parameters, for example, 1.0.0.4, 2.3, 3.40.26.7800 or 2.3.*.
Purpose
This function first handles special cases where either one or both input parameters
are empty and returns return codes to represent these cases. It splits each version
into several parts by the dot separator. If the last part of the version is the *
wildcard character, the function considers all missing parts of the version to be the
wildcard character, for example, 2.* matches 2.1 or 2.3.*. It then loops through the
list of parts for each version and compares them. It then returns return codes
depending upon whether the expected value is less than, equal to, or greater than
the real value.
Parent functions
Contains the string from which the characters must be removed
Returns the string without the special characters.
Table 40. Parent functions calling versionCompare
Parent Function, Script
cygwinVersion_compare.vbs
gskit7Version_compare.vbs
gkit8Version_compare.vbs
internetExplorer.version_compare.vbs
Appendix H. Other common functions and sub routines for Windows systems
Description
Compares the real and expected values for
the cygwin version prerequisite property.
Compares the real and expected values for
the gskit Version 7 prerequisite property.
Compares the real and expected values for
the gskit Version 8 prerequisite property.
Compares the real and expected values for
Internet Explorer version prerequisite
property.
133
Need help?
Do you have a question about the Prerequisite Scanner and is the answer not in the manual?
Questions and answers