Jump to content
maniootek

RegWrite() function - help file does not mention about #RequireAdmin

Recommended Posts

maniootek
Posted (edited)

As topic says. RegWrite() require admin privilages in some cases. It would be nice if help file mention about it.

For example

RegWrite("HKEY_LOCAL_MACHINE64\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active Setup Temp Folders", "test", "REG_DWORD", "1") ;require admin privilages
RegWrite("HKEY_CURRENT_USER\Software\Test", "test", "REG_DWORD", "1") ;does not require admin privilages

 

Edited by maniootek

Share this post


Link to post
Share on other sites
jpm

definitly, I will update the doc

Thanks

Share this post


Link to post
Share on other sites
Jos
Posted (edited)
6 hours ago, maniootek said:

RegWrite() require admin privilages in some cases.

Like many other functions in case you automate a process which is running at-  or requiring  admin privileges!
Are we going to mention it everywhere?

Jos

 

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
JLogan3o13

Agreed, someone who is reading the help file and is at all familiar with how modern Windows OS's work should be able to figure out that if something doesn't work as a normal user (or throws the UAC) it is a good indication they need to perform the task with elevated rights. Think of the countless areas of the help file we would have to add that to in order to account for someone potentially not reasoning it through.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
JohnOne
Posted (edited)

I don't it think it should be assumed that people think about things, even if in most cases they do.

Probably not unreasonable to have just a list of functions which might require user has admin privileges. I doubt it's that many. File writing, reg writing, process*.

Having said that, I'm not even sure if there is a mention already.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
Jos
Posted (edited)

There are quite a number more as all the Control***  and Win***  functions have the same issue as they can't  automate windows that run on a different level.
I am fine with stating something more around UAC in the helpfile than currently stated here about functions in general, but would find it pretty strange just to do it for the Reg*** functions.

Thoughts?

Jos
 

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
JLogan3o13
Posted (edited)

Among the two choices, one statement around UAC in general with some verbiage around which types of functions would likely require it vs. a note on every single function, I would of course choose the former over the latter. Being more pragmatic however, we have to ask - with either route - what the likelihood is that anyone will read it anyway :)

 

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Jos
2 minutes ago, JLogan3o13 said:

with either route - what the likelihood is that anyone will read it anyway :)

Too much effort went into the helpfile to not make it as good as we can and like to be in the position to trow the odd RTFM as people. ;)

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
iamtheky

Agreed, a single blurb would suffice even without a list:

'you can read whimsically, but writing requires elevation for pretty much everything worthwhile'.


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

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

×