Sign in to follow this  
Followers 0
Eppie

Help me write a registry value

5 posts in this topic

So, I'm fairly new to AutoIt. I would like to create a program that puts a key in the registry that will make itself startup with Windows. I believe this is the location I would wish to put the value in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices.

Will this line of code accomplish this goal: RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices" , "name.exe" , "REG_SZ" ?

Thanks for your help.

Share this post


Link to post
Share on other sites

Welcome to Autoit!

You can use @StartupDir (macro) to place a program in start-up folder. Then when Windows starts, your program will start.

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

What I was trying to do was make it run as a service, so as to run before the user even logs in. Is that possible with the macro?

Share this post


Link to post
Share on other sites

What I was trying to do was make it run as a service, so as to run before the user even logs in. Is that possible with the macro?

No, not with the macro... I know there are posts about this topic, use the upper right corner of this page...

"Search"

and search this area and the Example scripts... ( unless someone here knows the answer you are looking for )

... not my area... and i dont teach regwrite to new people

8)


NEWHeader1.png

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