Sign in to follow this  
Followers 0
GeneZ

Option to run program on startup

4 posts in this topic

So I wanted my little program to have an option for the users to make it run on startup.

is this possisble?

Just a check button type system tray item that if checked the program will run on startup if not it won't

is this possible?

Share this post


Link to post
Share on other sites



You can easily do that, you'll just have to decide which startup entry location you want to use:

HKLM\Software\Microsoft\Windows\CurrentVersion\Run

HKCU\Software\Microsoft\Windows\CurrentVersion\Run

The User's Startup Folder

All Users' Startup Folder

Share this post


Link to post
Share on other sites

You can easily do that, you'll just have to decide which startup entry location you want to use:

HKLM\Software\Microsoft\Windows\CurrentVersion\Run

HKCU\Software\Microsoft\Windows\CurrentVersion\Run

The User's Startup Folder

All Users' Startup Folder

so I just make my program add a registry key there? and it will automatically be added to startup list?

Share this post


Link to post
Share on other sites

so I just make my program add a registry key there? and it will automatically be added to startup list?

There is no such thing as a "startup list". Windows has some folders and registry keys it check at start and run any content in them. Varian listed the more common ones.

Decide what you want, then look in the helpfile for

FileCreateShortcut() and Directory Macros or RegWrite().

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