jacexh / pyautoit

Python binding for AutoItX3.dll
MIT License
269 stars 74 forks source link

Can not get full administrator rights to run the application #17

Closed XiangYing closed 4 years ago

XiangYing commented 7 years ago

I found the below exception is raised while is_admin() returns 0.

  File "D:/install.py", line 32, in <module>
    autoit.run("erlang_win64_19.0.exe")
  File "C:\Python27\lib\site-packages\autoit\autoit.py", line 80, in wrapper
    raise AutoItError(err_msg)
autoit.autoit.AutoItError: run program failed

But the same issue does not occur if using the original autoit script with requireadmin as below, and i couldn't find the same api in pyautoit. So could you please take a look at this issue?

#RequireAdmin

Run("erlang_win64_19.0.exe")