ISCompareServicePack
InstallShield 2024 » InstallScript Language Reference
The ISCompareServicePack function is supported only for compatibility with scripts created in InstallShield Professional. It is recommended that you determine the Windows service pack number by checking the value of SYSINFO.WINNT.nServicePack instead.
The ISCompareServicePack function compares the service pack number installed on a Windows system to the service pack number specified by szServicePack.
Syntax
ISCompareServicePack ( szServicePack );
Parameters
Parameter |
Description |
szServicePack |
Specifies the Service Pack number to be compared with the Service Pack number on the target computer. This string must be in the format “Service Pack n”, where n is the Service Pack number. The comparison is case sensitive. |
Return Values
Return Value |
Description |
LESS_THAN (1) |
No Service Pack is installed or the Service Pack number on the target system is less than the value passed in szServicePack. |
EQUALS (2) |
The Service Pack numbers match. |
GREATER_THAN (0) |
The Service Pack number on the target system is greater than the number passed in szServicePack. |
-1 |
ISCompareServicePack failed to compare the Service Pack numbers. |
See Also