How about an example on how to use scripting capabilities in your application, if the script control is available, without setting any references? ‘Attempt to get the type for the script control. Dim ScType As System.Type = System.Type.GetTypeFromProgID( _ “MSScriptControl.ScriptControl”) ‘If the prog ID is missing, Null is returned (Nothing in Visual Basic). If ScType Is Nothing Then MessageBox.Show(“The Script Control is not available.”) Else Dim Sc As Object = System.Activator.CreateInstance(ScType) ‘All is well. Configure the script control: Set language. Dim LanguageParameterValue() As Object = {“VBScript”} ScType.InvokeMember(“Language”, Reflection.BindingFlags.SetProperty, Nothing, Sc, _ LanguageParameterValue, Nothing) ‘Allow UI operation (such as MsgBox). Dim AllowUIParameterValue() As Object = {True} ScType.InvokeMember(“AllowUI”, Reflection.BindingFlags.SetProperty, Nothing, Sc, _ AllowUIParameterValue, Nothing) ‘Finally, set timeout to [forever]. Dim TimeoutParameterValue() As[…]

In some of my applications, I make use of the MSScriptControl to execute dynamically generated scripts, or just to enable scripting in my applications. Windows Vista users will get an error if they install applications that use MSScriptControl, because it is not included in Vista by default, and since it’s a file that is controlled by the operating system, you should not include it in your MSI package. If the MSScriptControl is missing, you can get it from Microsoft Download Center. This is the direct link: If you don’t want to memorize this URL, you type the following keywords in Google: download microsoft script control You need to validate your copy of Windows to be able to download it.