Tuesday, July 24, 2007

Launch your application from Windows Start | Run command

I was trying to figure out, what does it take to make your application launched from the Start Run, on windows. Most of the standard applications (winword, iexplore, notepad,...) works this way.

For your application to be launched this way, here is what you need to do:
* Your application need to have a registry key in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths, with (default) value as the full path to the executable that you want to launch.
* You may also define a new binary value named "Path" and set the folder path to the executable. But this doesn't seem necessary.

Having the path to your executable in the System or User Path (Environment Variable) also will make the Start Run work.