Start external application

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
 
P

Paul G. Tobey [eMVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top