Ranorex Spy, Recorder, and Studio.
Posts: 7
Joined: Sat Jun 02, 2018 3:12 am


Post by subrata1 » Wed Jun 12, 2019 6:53 pm

Hi All,
I am getting the following error after adding 'Microsoft Script Control 1.0' from COM tab.
I wanted to run this.....
Dim StrCommand As String
StrCommand = "Msgbox(""Hello World"")"
Dim sc As New MSScriptControl.ScriptControl
sc.Language = "VBScript"

Task failed because "AxImp.exe" was not found, or the correct Microsoft Windows SDK is not installed.
The task is looking for "AxImp.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86. You may be able to solve the problem by doing one of the following:
1) Install the Microsoft Windows SDK.
2) Install Visual Studio 2010.
3) Manually set the above registry key to the correct location.
4) Pass the correct location into the "ToolPath" parameter of the task. (MSB3091)

Note: I have installed Microsoft Windows SDK as well. Does anyone encountered similar issue?

User avatar
Ranorex Guru
Ranorex Guru
Posts: 6541
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: MSScriptControl.ScriptControl

Post by odklizec » Wed Jun 12, 2019 9:32 pm


This issue has been widely discussed in the past. Please follow the suggestion from this post... ... 798#p54798

BTW, please delete all duplicated posts you accidentally created ;) Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration