Windows 7 UAC

Ask general questions here.
Selezen
Posts: 3
Joined: Wed Mar 12, 2014 12:35 pm

Windows 7 UAC

Post by Selezen » Wed Mar 12, 2014 12:43 pm

Hi there!

I'm developing a Ranorex test for an application, and the test will be run on a virtual machine under a corporate network license. I'm having problems coping with the Windows 7 User Access Controls, which under the corporate policy cannot be disabled. I have two problems I would like advice with please.

1: Using an unattended install (msiexec /i "application path" /qn TARGETDIR="targetfolder") fails as the installation reports insufficient permissions to install.

2: Using Ranorex to simulate the user input for the MSI installation wizard also fails because the UAC confirmation seems to be invisible to both Ranorex Spy and the recording wizard. When trying to record the mouse clicks on the UAC confirmation screen I cannot access the recording interface (due to the screen dimming) and therecording does not record the clicks on the UAC confirmation screen.

Can anyone offer some guidance that will allow me to manage this installation please?

Thanks in advance.

Dave

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Windows 7 UAC

Post by Support Team » Fri Mar 14, 2014 4:05 pm

Hello Dave,

Unfortunately it is not possible to automate an UAC Dialog in Windows.
UAC is for making sure that administrative actions require a user prompt.
It also disables your vbscript and vb.net when its active.
I am sorry that I'm not able to provide with any solution here.

Kind regards,

Markus (S)

Selezen
Posts: 3
Joined: Wed Mar 12, 2014 12:35 pm

Re: Windows 7 UAC

Post by Selezen » Mon Mar 17, 2014 11:43 am

Thanks for your response. I had a feeling that this would be the case but thank you for confirming it ans saving me a lot of time.

All the best,

Dave

mdgairaud
Posts: 87
Joined: Sun Aug 05, 2012 11:59 am
Location: Bilbao, Spain

Re: Windows 7 UAC

Post by mdgairaud » Fri Mar 21, 2014 11:43 am

You can find more info about this "state" looking for "Windows Session 0" in Google. Also, here is a program that gets you into Session 0 [http://www.coretechnologies.com/product ... oSession0/]


regards,
Mateo.