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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Oct 6, 2014, 2:56 AM EDT
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.
Anoop Kumar SharmaRank #127 · 17.4K reputationPosted Oct 6, 2014, 4:14 AM EDT
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.
csharp beginner38 reputationPosted Oct 8, 2014, 6:30 AM EDT