Jump to content
Sign in to follow this  
Eppie

Help me write a registry value

Recommended Posts

Eppie

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
Valuater

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
Eppie

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
Valuater

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.