## XSIUtils.IsScriptingLanguageInstalled

### Introduced

v5.0

### Description

Returns true if a scripting language specified with a name or scripting file is installed on the current platform.

### C# Syntax

    Boolean XSIUtils.IsScriptingLanguageInstalled( String in_nameOrFile );

### Scripting Syntax

    oBoolean = XSIUtils.IsScriptingLanguageInstalled( NameOrFile );

### Return Value

Boolean

### Parameters

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).

### Examples

#### VBScript Example

    ' 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" )