Can’t launch UFT from VB code, but can from desktop icon.

  • Questions
  • Can't launch UFT from VB code, but can from desktop icon.
Question ID: 106265

When using the VB code below on one of our VM’s UFT does not launch. It works find on other VMs, and I can launch UFT fine from the icon on the desktop. The error I’m getting is "Neither QTP license nor UFT license is installed, can’t run QTP Automation."

Option Explicit
Dim qtApp
Set qtApp=CreateObject("QuickTest.Application")

Marked as spam
Posted by (Questions: 384, Answers: 61)
Asked on July 30, 2015 10:09 pm
Answers (1)
Private answer

Check the elevation level of UFT. It needs to be the same as your launching script or lower. If it is higher, then you can get errors like this.

Marked as spam
Posted by (Questions: 16, Answers: 806)
Answered on July 30, 2015 10:10 pm
yes, that's it. Someone had changed the compatibility settings on UFT to Run As Administrator for all user. We changed that and now it works fine.
( at July 30, 2015 10:11 pm)