MSFN Forum: Add/Remove Windows Components? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Add/Remove Windows Components? Is it possible to do it unattended? Rate Topic: -----

#1 User is offline   PryGuy 

  • Junior
  • Pip
  • Group: Members
  • Posts: 83
  • Joined: 26-January 05

Posted 26 August 2005 - 03:27 AM

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!


#2 User is offline   Nologic 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 461
  • Joined: 07-October 03

Posted 26 August 2005 - 03:45 AM

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

#3 User is offline   PryGuy 

  • Junior
  • Pip
  • Group: Members
  • Posts: 83
  • Joined: 26-January 05

Posted 26 August 2005 - 05:03 AM

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

#4 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,600
  • Joined: 04-December 03

Posted 26 August 2005 - 04:00 PM

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.

#5 User is offline   PryGuy 

  • Junior
  • Pip
  • Group: Members
  • Posts: 83
  • Joined: 26-January 05

Posted 11 October 2005 - 05:12 AM

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!

This post has been edited by PryGuy: 11 October 2005 - 05:13 AM


#6 User is offline   ironside 

  • Member
  • PipPip
  • Group: Members
  • Posts: 214
  • Joined: 10-August 04

Posted 11 October 2005 - 06:11 AM

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

This post has been edited by ironside: 11 October 2005 - 06:14 AM


#7 User is offline   PryGuy 

  • Junior
  • Pip
  • Group: Members
  • Posts: 83
  • Joined: 26-January 05

Posted 11 October 2005 - 06:14 AM

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?

This post has been edited by PryGuy: 11 October 2005 - 06:16 AM


#8 User is offline   MindMaster 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 11-September 04

Posted 16 October 2005 - 04:52 PM

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

#9 User is offline   joshljoshl 

  • Group: Members
  • Posts: 1
  • Joined: 15-April 09

Posted 15 April 2009 - 05:38 PM

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 topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy