« Previous Next »

Not Answered Thread: unattend install doesn't seem to work

Last post 06-17-2009 11:00 AM by pvo01. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 06-16-2009, 9:55 AM

    • pvo01
    • Not Ranked
    • Joined on 06-12-2009, 11:22 AM
    • Posts 9

    unattend install doesn't seem to work

    hi,

     I am trying to install iis7 onto servers 2k8 x32 but it doens't seem to work.

     I found this code:

     <?xml version="1.0" ?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend"
        xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
    <servicing>
       <package action="configure">
          <assemblyIdentity
             name="Microsoft-Windows-Foundation-Package"
             version="6.0.6001.16659"
             language="neutral"
             processorArchitecture="x86"
             publicKeyToken="31bf3856ad364e35"
             versionScope="nonSxS"
          />
        <selection name="IIS-WebServerRole" state="true"/>
        <selection name="WAS-WindowsActivationService" state="true"/>
        <selection name="WAS-ProcessModel" state="true"/>
        <selection name="WAS-NetFxEnvironment" state="true"/>
        <selection name="WAS-ConfigurationAPI" state="true"/>
      </package>
     </servicing>
    </unattend>
    </pre>

    http://www.windowsnetworking.com/articles_tutorials/Installing-IIS-70.html

    note: i do chang the build version to fit my.

    i saved the file as unattend.xml on to my usb E:\iis7\unattend.xml

     i am the administrator of the server. i run the cmd as administrator, and this is what it looks like this:

     c:\Users\Administrator>pkgmgr.exe /n:E:\iis7\unattend.xml

    but then as i hit enter, the cmd returns

     c:\Users\Administrator>

     and nothing happen. i go on checking the c:\ drive, but the inetpub is not there.

     If you know what is the problem with what i am doing, please let me know.

    thanks

    PS:

     but, however, when i run the following from cmd, it works, but it is not what i wanted. I don't want full features. i try to take some lines out, but that just ruin everything and iis will not gets install.

     pkgmgr.exe /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn;IIS-FTPPublishingService;IIS-FTPServer;IIS-FTPManagement;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI

     

  • 06-16-2009, 3:33 PM In reply to

    • pvo01
    • Not Ranked
    • Joined on 06-12-2009, 11:22 AM
    • Posts 9

    Re: unattend install doesn't seem to work

    i trim the cmd command down to what i need, but it doesn't do anything. it will not install what i want it to install.

     here is what i got after trimming:

    pkgmgr.exe /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Security;IIS-WindowsAuthentication;IIS-RequestFiltering;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;

     

     also, i created a .bat file as follow, but again, it doesn't want to intall:

     set todo=%iu

    echo on

    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-WebServerRole;
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-WebServer;
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-CommonHttpFeatures
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-StaticContent
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-DefaultDocument
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-DirectoryBrowsing
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-HttpErrors
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-HttpRedirect
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-ApplicationDevelopment
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-ASPNET
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-NetFxExtensibility
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-ASP
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-CGI
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-ISAPIExtensions
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-ISAPIFilter
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-ServerSideIncludes
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-HealthAndDiagnostics
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-HttpLogging
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-LoggingLibraries
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-RequestMonitor
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-HttpTracing
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-CustomLogging
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-ODBCLogging
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-Security
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-BasicAuthentication
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-WindowsAuthentication
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-DigestAuthentication
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-ClientCertificateMappingAuthentication
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-IISCertificateMappingAuthentication
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-URLAuthorization
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-RequestFiltering
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-IPSecurity
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-Performance
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-HttpCompressionStatic
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-HttpCompressionDynamic
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-WebServerManagementTools
    C:\Windows\System32\pkgmgr.exe /%todo%:IIS-ManagementConsole
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-ManagementScriptingTools
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-ManagementService
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-IIS6ManagementCompatibility
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-Metabase
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-WMICompatibility
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-LegacyScripts
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-LegacySnapIn
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-FTPPublishingService
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-FTPServer
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:IIS-FTPManagement
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:WAS-WindowsActivationService
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:WAS-ProcessModel
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:WAS-NetFxEnvironment
    @rem C:\Windows\System32\pkgmgr.exe /%todo%:WAS-ConfigurationAPI

     

    can you tell me what i did wrong?

     

    thanks

  • 06-16-2009, 5:11 PM In reply to

    • HSeiler
    • Top 75 Contributor
    • Joined on 06-10-2002, 8:41 PM
    • Posts 74

    Re: unattend install doesn't seem to work

    You are processing a single install transaction for each component. This is fine but dependencies / pre-requisites must be installed in correct order.

    For example WAS components must be installed before any IIS components. For additional info on dependencies see  http://learn.iis.net/page.aspx/130/understanding-setup-in-iis-70/

     

    Henry Seiler
    IIS Deployment
  • 06-17-2009, 11:00 AM In reply to

    • pvo01
    • Not Ranked
    • Joined on 06-12-2009, 11:22 AM
    • Posts 9

    Re: unattend install doesn't seem to work

    Hi HSeiler,

    Thanks you for pointing me the dependencies.

    but however, I read the article, and i did exactly what it supposes- i had the following:

    for this little one, i only want to install the WebServer components and all of its defaults.
    As prerequiste, WAS appear first in the list, and then WebServer, and its default descendant. but it is not working.


    pkgmgr.exe /iu:WAS-ProcessModel
    pkgmgr.exe /iu:WAS-NetFxEnvironment
    pkgmgr.exe /iu:WAS-ConfigurationAPI
    pkgmgr.exe /iu:IIS-WebServer
    pkgmgr.exe /iu:IIS-CommonHttpFeatures
    pkgmgr.exe /iu:IIS-StaticContent
    pkgmgr.exe /iu:IIS-DefaultDocument
    pkgmgr.exe /iu:IIS-DirectoryBrowsing
    pkgmgr.exe /iu:IIS-HttpErrors 

    Also, I try this command too, and it also not working:

    pkgmgr.exe /iu:WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors

     do you see what my errors are?

     

    Thanks

Page 1 of 1 (4 items)
Microsoft Communities