Hello. For my work, I'm automating system validation to be performed prior to installations of our software. One of the steps is to verify that certain options like "Common Files," "Internet Information Services Snap-IN", and "World Wide Web Server" are installed. I know how to verify this through Add/Remove Windows Components, yet I'm not sure how, or even if it's possible, to verify such things through the use of C# (which I'm writing the program in). Any help would be greatly appreciated.

Determining IIS Options via C#
dnhxx
You could use something like this to get a list of services... http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbtskretrievinglistsofservices.asp
Lastly, this may help find the common files directory.. http://www.vbdotnetheaven.com/Code/Oct2003/2178.asp
OR http://blogs.msdn.com/csharpfaq/archive/2004/12/02/273785.aspx
Ain't google great
OsoPolar2
asmasemsema
search for what you need and see what is write in the registry and chek for it
as i know there is some components saved here
HKLM/Software/microsoft/active setup/installed components
bmoreno
Google is great, but I know how to view and administer services, but it's the components/options within IIS I'm trying to find out. Like if you were to go to Control Panel->Add/Remove Programs->Add/Remote Windows Components and you went to IIS and clicked "Details" I think the button's called, there's a list of components that can be installed. I'm wondering how to find out if they're checked or not programmatically. Thanks.
count zero 1942
Hi
The following code will help you get the list of services running in OS.
From the list you try to serch the services required for your installation.
To run my code please follow the following instractions
Drag and Drop one listbox in the form
Write the following code to view the services
-------------------------------------------------------------
System.ServiceProcess.ServiceController[] spArr = System.ServiceProcess.ServiceController.GetServices();
foreach(System.ServiceProcess.ServiceController s in spArr){
listBox1.Items.Add(s.ServiceName);
}
This way you can get an idea. For your purpose you need to change
the code.