Hi Chris, Unfortunately, it appears that sysocmgr utility only looks at 2 sections of an answer file.
>From the KB article: The answer file can be any Windows answer file and only parses the [Components] and [NetOptionalComponents] sections. In order to get "File and Print Sharing" installed, it would need to read: [NetServices] MS_Server = params.MS_Server Which it won't.. :( Any other ideas ? Craig Larsen [EMAIL PROTECTED] -----Original Message----- From: Chris Day [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 13, 2005 5:09 PM To: [email protected] Subject: Re: [ADVANCED-DOTNET] Programmatically installing "File and Print Sharing" Use the ServiceController class to get a list of services to see if "Server" has been installed. If it hasn't then you will need to create an unattended setup install file and use the sysocmgr utility to install the required components. For this utility you probably want to start at http://support.microsoft.com/?kbid=222444 -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Craig Larsen Sent: Thursday, 14 July 2005 9:37 AM To: [email protected] Subject: [ADVANCED-DOTNET] Programmatically installing "File and Print Sharing" Greetings, I need to be able to detect if "File and Print Sharing for Microsoft Networks" (the "Server" service) has been installed and started. If it has not been installed, then I need to programmatically install it and then start the Server service. Any ideas on how to do this ? Craig Larsen [EMAIL PROTECTED] =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com ############################################################################ ######### This e-mail message has been scanned for Viruses and Content and cleared by NetIQ MailMarshal ############################################################################ ######### =================================== This list is hosted by DevelopMentor. http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
