I have written an application which is loaded on startup by the computer. It is hidden from the user and can only be seen in the Ctrl+Alt+Delete list. Now, if someone downloaded this program and installed it, everything would work fine. But what if they tried to uninstall it? The uninstaller would not be able to delete the EXE, since it is open. So, I need to provide the user with a way to close the program. There are three options:
1. Make them use Ctrl+Alt+Delete to close it.
This is bad.
2. Create a System Tray icon and have an Exit command on that.
This is pretty good, but I don't like System Tray icons because everybody has TONS of them. Why add another?
3. Create an icon in the program group for the program called "Close PersonalSaver."
The user selects this icon and the program closes. The command line would be "C:\PersonalSaver\PersonalSaver.exe /close" I know how to set up command line parameters, but I don't know how to make the program close itself - the other one of it that is running..




Reply With Quote