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
Contains the string from which the characters must be removed
Return values
String
s
Returns the string without the special characters.
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
Table 40. Parent functions calling versionCompare
Parent Function, Script
Description
cygwinVersion_compare.vbs
Compares the real and expected values for
the cygwin version prerequisite property.
gskit7Version_compare.vbs
Compares the real and expected values for
the gskit Version 7 prerequisite property.
gkit8Version_compare.vbs
Compares the real and expected values for
the gskit Version 8 prerequisite property.
internetExplorer.version_compare.vbs
Compares the real and expected values for
Internet Explorer version prerequisite
property.
Appendix H. Other common functions and sub routines for Windows systems
133
Summary of Contents for Prerequisite Scanner
Page 1: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 2: ......
Page 3: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 8: ...vi Prerequisite Scanner User s Guide ...
Page 10: ...viii Prerequisite Scanner User s Guide ...
Page 40: ...Figure 6 result txt file on Windows systems 30 Prerequisite Scanner User s Guide ...
Page 46: ...36 Prerequisite Scanner User s Guide ...
Page 68: ...58 Prerequisite Scanner User s Guide ...
Page 78: ...Figure 11 precheck log file with the debug data 68 Prerequisite Scanner User s Guide ...
Page 84: ...74 Prerequisite Scanner User s Guide ...
Page 88: ...78 Prerequisite Scanner User s Guide ...
Page 92: ...82 Prerequisite Scanner User s Guide ...
Page 116: ...106 Prerequisite Scanner User s Guide ...
Page 122: ...112 Prerequisite Scanner User s Guide ...
Page 136: ...126 Prerequisite Scanner User s Guide ...
Page 138: ...128 Prerequisite Scanner User s Guide ...
Page 140: ...130 Prerequisite Scanner User s Guide ...
Page 158: ...148 Prerequisite Scanner User s Guide ...
Page 164: ...154 Prerequisite Scanner User s Guide ...
Page 166: ...156 Prerequisite Scanner User s Guide ...
Page 170: ...160 Prerequisite Scanner User s Guide ...
Page 171: ......
Page 172: ... Printed in USA ...