Silent uninstallation of network protocol
All,
I have a network protocol that is installed by a legacy application however I was after a way to uninstall this protocol silently via either vbscript OR the command line.
Does anyone have any ideas?
Paul
I have a network protocol that is installed by a legacy application however I was after a way to uninstall this protocol silently via either vbscript OR the command line.
Does anyone have any ideas?
Paul
0 Comments
[ + ] Show comments
Answers (11)
Please log in to answer
Posted by:
AB
17 years ago
Posted by:
jmcfadyen
17 years ago
depends what the protocol is you want to mess with.
do you have more details.
this is how you can handle default protocols.
Windows XP and Windows Server 2000 / 2003 have a built-in utility called the System stand-alone Optional Component Manager (sysocmgr.exe) to programmatically add or remove Windows components. Running sysocmgr.exe with no parameters will display the usage. The most basic command line is:
%windir%\system32\sysocmgr.exe /i:%windir%\inf\sysoc.inf This parameter (/i:) is always required and specifies the location of the master inf (%windir%\inf\sysoc.inf). When run it simply displays the Windows Components Wizard. Therefore the above command can be used as a shortcut directly to the Windows Components Wizard.
The real power of sysocmgr is in unattended mode. Additional parameters control the user interface, handle restarting, and control which components are added or removed by way of a standard Windows unattended answer file. Sysocmgr only looks in the [Components] and [NetOptionalComponents] sections, so the answer file can be specifically for component management or reused from a Windows unattended installation. Some components have their own unattended answer file sections, which are also parsed.
The following example uses an answer file (/u:) named ocm.txt in the temporary directory (%temp%\ocm.txt), suppresses any necessary restart (/r), and displays no user interface (/q):
%windir%\system32\sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:%temp%\ocm.txt /r /q
The following example answer file adds the Simple Network Management Protocol (SNMP) service and configures the agent settings:
[NetOptionalComponents]
do you have more details.
this is how you can handle default protocols.
Windows XP and Windows Server 2000 / 2003 have a built-in utility called the System stand-alone Optional Component Manager (sysocmgr.exe) to programmatically add or remove Windows components. Running sysocmgr.exe with no parameters will display the usage. The most basic command line is:
%windir%\system32\sysocmgr.exe /i:%windir%\inf\sysoc.inf This parameter (/i:) is always required and specifies the location of the master inf (%windir%\inf\sysoc.inf). When run it simply displays the Windows Components Wizard. Therefore the above command can be used as a shortcut directly to the Windows Components Wizard.
The real power of sysocmgr is in unattended mode. Additional parameters control the user interface, handle restarting, and control which components are added or removed by way of a standard Windows unattended answer file. Sysocmgr only looks in the [Components] and [NetOptionalComponents] sections, so the answer file can be specifically for component management or reused from a Windows unattended installation. Some components have their own unattended answer file sections, which are also parsed.
The following example uses an answer file (/u:) named ocm.txt in the temporary directory (%temp%\ocm.txt), suppresses any necessary restart (/r), and displays no user interface (/q):
%windir%\system32\sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:%temp%\ocm.txt /r /q
The following example answer file adds the Simple Network Management Protocol (SNMP) service and configures the agent settings:
[NetOptionalComponents]
Posted by:
Inabus
17 years ago
Posted by:
Inabus
17 years ago
Posted by:
AB
17 years ago
Posted by:
AngelD
17 years ago
Posted by:
Inabus
17 years ago
Posted by:
AngelD
17 years ago
Posted by:
AB
17 years ago
Posted by:
Inabus
17 years ago
hehe, im a good one for abuse, just ask anytime :p
I rated the post anyway, a lot of people would go "search harder there are posts about it" and ignore the fact I spent 2 days trying to find the solution.
Although I had found that utility mentioned before I had been unable to find a download location so just skipped it and moved onto things like dpinst which did nothing for me!
Also im sure your aware that google can be a fickle thing and at the end of the day you need to know the right phrases to search for!
Again, thanks for the post.
Paul
I rated the post anyway, a lot of people would go "search harder there are posts about it" and ignore the fact I spent 2 days trying to find the solution.
Although I had found that utility mentioned before I had been unable to find a download location so just skipped it and moved onto things like dpinst which did nothing for me!
Also im sure your aware that google can be a fickle thing and at the end of the day you need to know the right phrases to search for!
Again, thanks for the post.
Paul
Posted by:
AB
17 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.