There's absolutely no need to create a setup package....
Many gadgets don't need a setup .... you can always have a direct run program....
To Show your program in the systemtray... you can use
NotifyIcon control...
and to programmatically enable your program to run at startup you can do the following:
Add a reference to 'Windows Scripting Host Object Model' COM Library....
This system library named IWshRuntimeLibrary helps you to create a .lnk file which will be then pasted to your Startup folder.... which will help your application to run at startup....
Use this code to create a shortcut....
-
WshShellClass wshShell = new WshShellClass();
-
IWshRuntimeLibrary.IWshShortcut smShortcut;
-
smShortcut = (IWshRuntimeLibrary.IWshShortcut)wshShell.CreateShortcut(Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "\\SystemMeter.lnk");
-
smShortcut.TargetPath = Application.ExecutablePath;
-
smShortcut.Description = "System Meter shortcut";
-
smShortcut.Save();
-
.................................................. .................................................. ........................