Sign in to follow this  
Followers 0
AlienStar

access through UAC ????!!!

12 posts in this topic

hello everybody

we know all to access through Admin permissions in vista we use this :

#RequireAdmin

now how to do the same with user account control UAC ????

Share this post


Link to post
Share on other sites



UAC is the prompt that asks you to allow the program to have admin permissions. If you disable the prompt, then any program can become admin and you open yourself to malware.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I don't wanna disable coz my script will run in many PC's and by many users so if I disable it they might be not do that

so I wanna a guaranteed way to access through ...

!!!!!!!!!

Edited by AlienStar

Share this post


Link to post
Share on other sites

I don't wanna disable coz my script will run in many PC's and by many users so if I disable it they might be not do that

so I wanna a guaranteed way to access through ...

!!!!!!!!!

Fortunately for us, it doesn't work that way.

!!!!!!!!!


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Fortunately for us, it doesn't work that way.

!!!!!!!!!

This post made me laugh more than the original question.

Share this post


Link to post
Share on other sites

well i'll give you another laugh then :)

Iv got a couple of apps out there that are used by a "few" peeps and i have the same problem. I need to be able to update files in my apps folder which is "Program Files\JDast\" the way im updating is to directly download the updated files into said folder but if the user has UAC on then it just blocks it, it dont have a request window come up so user cant click "allow" or "yes" or whatever it is.

I have tried DL'ing the updated files to there %appdata% which is fine and then copying the files over to "Program Files\JDast\" but still no good, no UAC popup window just blocks. I know "most" people turn off UAC as soon as OS is installed, i know i do, but a lot of my users dont like to.

So any ideas ?

(odd thing is that my apps "install" into "Program Files\JDast\" fine ??)


Thx all,Jack Dinn.

 

JD's Auto Internet Speed Tester

JD's Clip Catch (With Screen Shot Helper)

Projects :- AutoIt - My projects

My software never has bugs. It just develops random features. :-D

Share this post


Link to post
Share on other sites

well i'll give you another laugh then Posted Image

Iv got a couple of apps out there that are used by a "few" peeps and i have the same problem. I need to be able to update files in my apps folder which is "Program Files\JDast\" the way im updating is to directly download the updated files into said folder but if the user has UAC on then it just blocks it, it dont have a request window come up so user cant click "allow" or "yes" or whatever it is.

I have tried DL'ing the updated files to there %appdata% which is fine and then copying the files over to "Program Files\JDast\" but still no good, no UAC popup window just blocks. I know "most" people turn off UAC as soon as OS is installed, i know i do, but a lot of my users dont like to.

So any ideas ?

(odd thing is that my apps "install" into "Program Files\JDast\" fine ??)

According to the data MS have, 80% of consumers don't turn off UAC - so better get used to only writing to user writable areas. You need admin privs to write to Program Files. If you are using an installer (like NSIS/MSI) then you might have admin privs during the install, but not after it finishes.

Share this post


Link to post
Share on other sites

yea its all a pain, but iv managed to get around it by using another installer to do the updating instead of the much easer method of just dl'ing the updated parts of the app directly over the top of the old ones.

o well thus is life :/

cheers.


Thx all,Jack Dinn.

 

JD's Auto Internet Speed Tester

JD's Clip Catch (With Screen Shot Helper)

Projects :- AutoIt - My projects

My software never has bugs. It just develops random features. :-D

Share this post


Link to post
Share on other sites

hmm, well i thought i had tried that but i might just have given the owner full permissions and taken ownership of the folder, i cant exactly remember but i do know that when i check in the "Effective Permissions" put my user name in and it said i had full control.

maybe script runs as some other user group, i'll try with setting users to full permission


Thx all,Jack Dinn.

 

JD's Auto Internet Speed Tester

JD's Clip Catch (With Screen Shot Helper)

Projects :- AutoIt - My projects

My software never has bugs. It just develops random features. :-D

Share this post


Link to post
Share on other sites

hmm, well i thought i had tried that but i might just have given the owner full permissions and taken ownership of the folder, i cant exactly remember but i do know that when i check in the "Effective Permissions" put my user name in and it said i had full control.

maybe script runs as some other user group, i'll try with setting users to full permission

just give "Everyone" control in permissions

Share this post


Link to post
Share on other sites

yea , cheers all, that works

so iv got the option of leaving my update program as it now is or putting it back to how it was and figuring out how to change the permissions of a folder by script.

i'll prob just leave it now, but many thx all.


Thx all,Jack Dinn.

 

JD's Auto Internet Speed Tester

JD's Clip Catch (With Screen Shot Helper)

Projects :- AutoIt - My projects

My software never has bugs. It just develops random features. :-D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0