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: | 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 , 16 years ago
comment:2 by , 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 , 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).
follow-up: 6 comment:4 by , 16 years ago
I believe the problem only occurs when the scripts are stored on a network drive
comment:6 by , 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 , 16 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:8 by , 15 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | assigned → closed |
comment:10 by , 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 , 13 years ago
Guys, we still have a problem with this bug.
Somebody tell s why the bug is Rejected.
comment:12 by , 13 years ago
| Resolution: | Rejected |
|---|---|
| Status: | closed → reopened |
comment:13 by , 13 years ago
| Milestone: | → 3.3.9.5 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Fixed |
| Status: | reopened → closed |
Fixed by revision [7328] in version: 3.3.9.5

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