Jump to content

Recommended Posts

Posted

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!


Posted

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.

  • 1 month later...
Posted (edited)

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
Posted (edited)

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
Posted (edited)

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
Posted

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

  • 3 years later...
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...