v5.0
Returns true if a scripting language specified with a name or scripting file is installed on the current platform.
Boolean XSIUtils.IsScriptingLanguageInstalled( String in_nameOrFile ); |
oBoolean = XSIUtils.IsScriptingLanguageInstalled( NameOrFile ); |
Parameter | Type | Description |
---|---|---|
NameOrFile | String | A scripting language name or a scripting file name. Valid language names are: VBScript, JScript, PerlScript and Python. The scripting file name must contain one of the following file extensions: .vbs (VBScript), .js (JScript), .pl (PerlScript), .py or .pys (Python). |
' This example shows how to check for the supported scripting languages on the current machine. LogMessage "Look for installed languages with scripting names" LogMessage "Is VBScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "VBScript" ) LogMessage "Is JScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "JScript" ) LogMessage "Is PerlScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "PerlScript" ) LogMessage "Is Python installed ?: " & xsiutils.IsScriptingLanguageInstalled( "Python" ) LogMessage "===" LogMessage "Look for installed languages with scripting files" LogMessage "Is VBScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "myscript.vbs" ) LogMessage "Is JScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "myscript.js" ) LogMessage "Is PerlScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "myscript.pl" ) LogMessage "Is Python installed ?: " & xsiutils.IsScriptingLanguageInstalled( "myscript.py" ) |