Jump to content

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


 Share

Recommended Posts

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
Link to comment
Share on other sites

  • Developers
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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Moderators

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Moderators

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

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Developers
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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...