Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
PryGuy

Add/Remove Windows Components?

Recommended Posts

Hello all!

I have a problem, I want to make ability to install Visual Studio .NET 2003 on my unattended DVD. But I do not want to install components such as IIS during the ordinary installation, so it should look this way: if one wants to install VS .NET later he just runs the CMD file that installs the necassary components before the VS. NET unattended installation.

Please tell me is it possible? Thank you!

Share this post


Link to post
Share on other sites

If you can unselect the component during normal install...then you can write an AutoIt script in which to automate the same process.

Share this post


Link to post
Share on other sites

But, well, I believe one can do it using the typical Windows commands not with AutoIt

Share this post


Link to post
Share on other sites

If I remember, .NET 2k3 is packaged into MSI no ? if yes, you can edit/tune the .msi file to select jsut what you want ...

Goodbye.

Share this post


Link to post
Share on other sites

The thing is that the IIS is a component of Windows itself, one can add/remove it using Control Panel - Add or Remove Programs - Add/Remove Windows Components - Internet Information Services (IIS). I do not want to install IIS if the VS.NET is not chosen to be installed. There has to be some way to add/remove components using command line or something!

Edited by PryGuy

Share this post


Link to post
Share on other sites

If its a windows component you can add or remove it in your winnt.sif

[Components]
Iis_asp = On
Iis_common = On
Iisdbg = On
Iis_ftp = On
Iis_htmla = On
Iis_doc = On
Iis_inetmgr = On
Iis_internetdataconnector = On
Iis_nntp = On
Iis_pwmgr = On
Iis_serversideincludes = On
Iis_smtp = On
Iis_smtp_docs = On
Iis_webadmin = On
Iis_webdav = On
Iis_www = On
Iis_www_vdir_printers = On
Iis_www_vdir_scripts = On
Iis_www_vdir_terminalservices = On

On=Install by default

Off=Do Not install by Default

Edited by ironside

Share this post


Link to post
Share on other sites

Thank you, I know about that, the question is, is it possible to install the Windows Components on demand, during the post-install unattended software installation phase?

Edited by PryGuy

Share this post


Link to post
Share on other sites

You can do this using sysocmgr.exe which should be in your path.

For example, you can install IIS as follows:

1. Create a file listing the components. (I call mine file WindowsComponents.txt)

[Components]
Fp_extensions=Off
fp_vdir_deploy=Off
Iis_common=On
iis_www=On
iis_asp=On
iis_inetmgr=On
iis_www_vdir_scripts=On

2. Run the following command:

sysocmgr /i:%windir%/inf/sysoc.inf /u:WindowsComponents.txt

I hope this helps.

Mark Michealis

http://mark.michaelis.net

Share this post


Link to post
Share on other sites

I'd just like to say THANKS to MindMaster and this old thread. I was looking for a way to remove the update root certs component of W2K3 from the command line and this was the inspiration I needed. I thought I would take it one step further and integrate the creation of the .txt file into the batch file. This batch file will uninstall root cert updates in one fell swoop. Feel free to modify for whatever components you may be trying to remove. Cheers! :)


@echo off
cls
echo Creating %windir%\inf\removerootupdates.txt...
echo [Components] > %windir%\inf\removerootupdates.txt
echo RootAutoUpdate=off >> %windir%\inf\removerootupdates.txt
echo:
echo Running sysocmgr to process %windir%\inf\removerootupdates.txt.
echo You may see a dialog box pop up which may be ignored.
echo Please wait a few moments...
echo:
if not exist %windir%\inf\removerootupdates.txt goto fail
sysocmgr /i:%windir%/inf/sysoc.inf /u:%windir%/inf/removerootupdates.txt

goto end
:fail
echo Could not create/locate %windir%\inf\removerootupdates.txt
echo Please check permissions or remove manually.
:end
echo Script Complete. Exiting...
rem the following command creates a few second pause so you can read the window before it closes
ping 1.1.1.1 > nul

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...