Modify

Opened 16 years ago

Closed 13 years ago

#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, 16 years ago

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@…>, 16 years ago

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, 16 years ago

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, 16 years ago

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

comment:5 by Valik, 16 years ago

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

in reply to:  4 comment:6 by Tankman, 16 years ago

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 J-Paul Mesnage, 16 years ago

Owner: set to Valik
Status: newassigned

comment:8 by Jon, 15 years ago

Resolution: Rejected
Status: assignedclosed

comment:9 by anonymous, 14 years ago

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

comment:10 by ernierasta, 14 years ago

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, 13 years ago

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

comment:12 by trancexx, 13 years ago

Resolution: Rejected
Status: closedreopened

comment:13 by trancexx, 13 years ago

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.