Start external application

  • Thread starter Thread starter Broeden
  • Start date Start date
B

Broeden

Hi,

I want to start an external application from my C# CF application.
The problem is that I only know the name of the application not where
the user has decided to install it.

How do I find out the path so I can use CreateProcess in coredll.dll
to start it.

Or maybe there is another solution..

/Broeden
 
There are two possibilities:

1. The user installed it in the "path". In that case, you don't need to
know where it is. Simply start a process specifying the name of the exe and
the loader will find it.

2. The user did not install it in the path. Depending on the
characteristics of the installer that did the installation, the path might
be stored in the registry. If not, you'll have to search the entire
filesystem for it.

Paul T.
 
Back
Top