AlienStar Posted September 19, 2009 Posted September 19, 2009 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 ????
Richard Robertson Posted September 19, 2009 Posted September 19, 2009 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.
AlienStar Posted September 19, 2009 Author Posted September 19, 2009 (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 September 19, 2009 by AlienStar
Moderators SmOke_N Posted September 19, 2009 Moderators Posted September 19, 2009 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.!!!!!!!!! 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.
Richard Robertson Posted September 19, 2009 Posted September 19, 2009 Fortunately for us, it doesn't work that way.!!!!!!!!!This post made me laugh more than the original question.
JackDinn Posted October 24, 2009 Posted October 24, 2009 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
Administrators Jon Posted October 24, 2009 Administrators Posted October 24, 2009 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 ??)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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
JackDinn Posted October 24, 2009 Posted October 24, 2009 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
FuryCell Posted October 24, 2009 Posted October 24, 2009 You could use setacl to change the permissions of a certain folder so non admins can write to it. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
JackDinn Posted October 24, 2009 Posted October 24, 2009 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
protoid Posted October 25, 2009 Posted October 25, 2009 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 permissionjust give "Everyone" control in permissions
JackDinn Posted October 25, 2009 Posted October 25, 2009 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now