Jump to content

Option to run program on startup


GeneZ
 Share

Recommended Posts

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?

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

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

Link to comment
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().

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...