Demoris
11th May 2007 14:25 UTC
Install to System Tray on start up
I'm able to get the program to run on start up, but is there a way to specify it to start in the system tray?
Also, I can't get it to remove the registry key when its uninstalled. I have DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Run\[program name]" but it doesn't remove it.
demiller9
11th May 2007 15:31 UTC
Is the program written to work in the system tray? If it's not, you can't start it in the tray.
Use DeleteRegValue instead of DeleteRegKey to remove the Run entry. Keys are containers (like folders), they contain other keys and values.
Don
Demoris
11th May 2007 16:59 UTC
Okay, thanks. Simple enough for the registry issue.
Also, I've decided it seems simpler to add a command line parameter to the Startup exe, but I've been unsuccessful in doing so.