I want to open a software through programming, if the software is installed in the computer.
To get the installed programs i am using ManagementObjectSearcher and ManagementObjectCollection.
Please suggest, what should i do.. next !
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Oct 6, 2014, 6:56 AM
For example, this code will run MS Word if it's installed and not already running:
using System.Diagnostics;
// ...
else
{
MessageBox.Show("Word is already running");
}
This is much easier and faster than using WMI to start a process.
csharp beginnerPosted Oct 8, 2014, 10:30 AM
Anoop Kumar SharmaPosted Oct 6, 2014, 8:14 AM
Process class provides Start methods for launching another application in the C# Programming.
Here is an Article which will help you.
http://www.c-sharpcorner.com/UploadFile/1e050f/process-class-in-C-Sharp/
Hope this will help you.