Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

App running on system startup is launching two instances

App running on system startup is launching two instances

App running on system startup is launching two instances

I have a utility that I've written in which I want the option to launch automatically with system startup. A much older version of this app (written when XP was still current) simply created a shortcut to itself in the Startup folder on the current user's start menu. With the advent of Vista this wasn't possible anymore.

I recently rewrote the program so that it'll work on Vista, Win7, Win8, Win10, Server 2008, 2012 & 2016. Rather than writing a shortcut to the start menu, I'm putting an entry in the registry (under HKCU\Software\Microsoft\Windows\CurrentVersion\Run) which points to the executable. The app also requests elevation in order to get the necessary permission to write to the registry.

The problem is that now, every time the system is restarted I get two instances of my app.

I've searched the registry to see if there might be an extra entry that I've inadvertently created and all I managed to find was a handful of MUI references, the Run entry that I'm creating under HKCU and another under HKU (which I'm assuming is under the GUID for HKCU).

Any suggestions as to why I'm getting multiple instances on startup would be greatly appreciated.

RE: App running on system startup is launching two instances

For all users, Windows+R, then type

shell:common startup

For yourself only, Windows+R, then type


Then drag your shortcut into that directory. I've never used the HKCU method. Sounds very complicated and not something that is easy to rmember.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close