Modify

Opened 14 years ago

Closed 11 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 Changed 14 years ago by Emiel Wieldraaijer

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

comment:2 Changed 14 years ago by Richard Robertson <icekirby1@…>

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 Changed 14 years ago by Valik

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 follow-up: Changed 14 years ago by Emiel Wieldraaijer

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

comment:5 Changed 14 years ago by Valik

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

comment:6 in reply to: ↑ 4 Changed 14 years ago by Tankman

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 Changed 14 years ago by Jpm

  • Owner set to Valik
  • Status changed from new to assigned

comment:8 Changed 13 years ago by Jon

  • Resolution set to Rejected
  • Status changed from assigned to closed

comment:9 Changed 12 years ago by anonymous

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

comment:10 Changed 12 years ago by ernierasta

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 Changed 11 years ago by anonymous

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

comment:12 Changed 11 years ago by trancexx

  • Resolution Rejected deleted
  • Status changed from closed to reopened

comment:13 Changed 11 years ago by trancexx

  • Milestone set to 3.3.9.5
  • Owner changed from Valik to trancexx
  • Resolution set to Fixed
  • Status changed from reopened to closed

Fixed by revision [7328] in version: 3.3.9.5

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain trancexx.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.