Modify

#1498 closed Bug (Fixed)

#RequireAdmin causes script to not complete/run when UAC is turned off and user has normal privileges

Reported by: neil.younger@… Owned by: trancexx
Milestone: 3.3.9.5 Component: AutoIt
Version: 3.3.4.0 Severity: None
Keywords: Cc:

Description

Running the following example script on Vista or Win7 machine with UAC turned off as a user with normal privileges never shows the test message box and continues to consume CPU cycles, slowing the PC down. Have to log out of the user account to resolve.

#RequireAdmin
MsgBox(0,"test","Test")

With UAC off using a Admin user then there is no issue.
With UAC on using a normal user then there is no issue.

Attachments (0)

Change History (13)

comment:1 by Emiel Wieldraaijer, on Mar 5, 2010 at 11:48:28 AM

It happens also when you press F5 in scite with admin rights Windows 7 32 bits and 64 Bits

comment:2 by Richard Robertson <icekirby1@…>, on Mar 29, 2010 at 6:41:07 PM

A suggestion I would add is that instead of invoking the script again in the context of an administrator, why not just modify the manifest to specify the script should run as admin. This could provide the "admin badge" UI object and also solve this problem.

comment:3 by Valik, on Mar 29, 2010 at 6:55:08 PM

Someday Aut2Exe will have the option to do that. However, #RequireAdmin behaves a bit differently than the manifest flag (#RequireAdmin will work on Windows XP, too, for example).

comment:4 by Emiel Wieldraaijer, on Mar 29, 2010 at 8:09:02 PM

I believe the problem only occurs when the scripts are stored on a network drive

comment:5 by Valik, on Mar 29, 2010 at 8:30:59 PM

That makes sense, after elevation the drive may not be visible.

in reply to:  4 comment:6 by Tankman, on Apr 1, 2010 at 8:22:38 AM

Replying to Emiel Wieldraaijer:

I believe the problem only occurs when the scripts are stored on a network drive

I have the same issue but my script or compiled exe is not on a network drive.

comment:7 by Jpm, on Jun 3, 2010 at 8:39:22 AM

Owner: set to Valik
Status: newassigned

comment:8 by Jon, on May 22, 2011 at 7:29:47 PM

Resolution: Rejected
Status: assignedclosed

comment:9 by anonymous, on Oct 10, 2011 at 1:39:20 PM

Why the fuck, if I may, was this bug rejected? It is a serious issue!

comment:10 by ernierasta, on Oct 18, 2011 at 11:39:11 AM

Hmm guys it is really big problem. You have to reboot affected machine after running script compiled with #RequireAdmin! Could anyone explain why it is rejected?

For anyone who needs some workaround for it: http://www.autoitscript.com/forum/topic/111820-requireadmin-when-uac-is-turned-off/

comment:11 by anonymous, on Sep 21, 2012 at 3:27:45 AM

Guys, we still have a problem with this bug.
Somebody tell s why the bug is Rejected.

comment:12 by trancexx, on Sep 21, 2012 at 3:36:32 PM

Resolution: Rejected
Status: closedreopened

comment:13 by trancexx, on Sep 21, 2012 at 7:34:11 PM

Milestone: 3.3.9.5
Owner: changed from Valik to trancexx
Resolution: Fixed
Status: reopenedclosed

Fixed by revision [7328] in version: 3.3.9.5

Modify Ticket

Action
as closed The owner will remain trancexx.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.