Problem installing IIS 7.0 with a unattend script and pkgmgr.exeRSS

8 replies

Last post Nov 23, 2010 03:34 AM by suchiwa

  • Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    May 21, 2009 04:01 PM|naimbeg|LINK

    I am installing IIS 7.0 on Server 2008 RC2 64bit that is running a VMware instance using pkgmgr.exe
     Right away I am getting a "Operation failed with 0x80070057 The parameter is incorrect"
    Error code is 87

    I changed the script to match the build version and the processor type that I get when I do the "set" command.

    Command to install: start /w pkgmgr /n unattend.xml

     Here is the text in the unattend.xml that is pretty much copied from

    <?xml version="1.0" ?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend"
        xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
    <servicing>
       <!-- Install a selectable update in a package that is in the Windows Foundation namespace -->
       <package action="configure">
          <assemblyIdentity
             name="Microsoft-Windows-Foundation-Package"
             version="6.1.7100.0"
             language="neutral"
             processorArchitecture="ia64"
             publicKeyToken="31bf3856ad364e35"
             versionScope="nonSxS"
          />
        <selection name="IIS-WebServerRole" state="true"/>
        <selection name="IIS-WebServer" state="true"/>
        <selection name="IIS-CommonHttpFeatures" state="true"/>
        <selection name="IIS-StaticContent" state="true"/>
        <selection name="IIS-DefaultDocument" state="true"/>
        <selection name="IIS-DirectoryBrowsing" state="true"/>
        <selection name="IIS-HttpErrors" state="true"/>
        <selection name="IIS-HttpRedirect" state="true"/>
        <selection name="IIS-ApplicationDevelopment" state="true"/>
        <selection name="IIS-ASPNET" state="true"/>
        <selection name="IIS-NetFxExtensibility" state="true"/>
        <selection name="IIS-ASP" state="true"/>
        <selection name="IIS-CGI" state="true"/>
        <selection name="IIS-ISAPIExtensions" state="true"/>
        <selection name="IIS-ISAPIFilter" state="true"/>
        <selection name="IIS-ServerSideIncludes" state="true"/>
        <selection name="IIS-HealthAndDiagnostics" state="true"/>
        <selection name="IIS-HttpLogging" state="true"/>
        <selection name="IIS-LoggingLibraries" state="true"/>
        <selection name="IIS-RequestMonitor" state="true"/>
        <selection name="IIS-HttpTracing" state="true"/>
        <selection name="IIS-CustomLogging" state="true"/>
        <selection name="IIS-ODBCLogging" state="true"/>
        <selection name="IIS-Security" state="true"/>
        <selection name="IIS-BasicAuthentication" state="true"/>
        <selection name="IIS-WindowsAuthentication" state="true"/>
        <selection name="IIS-DigestAuthentication" state="true"/>
        <selection name="IIS-ClientCertificateMappingAuthentication" state="true"/>
        <selection name="IIS-IISCertificateMappingAuthentication" state="true"/>
        <selection name="IIS-URLAuthorization" state="true"/>
        <selection name="IIS-RequestFiltering" state="true"/>
        <selection name="IIS-IPSecurity" state="true"/>
        <selection name="IIS-Performance" state="true"/>
        <selection name="IIS-HttpCompressionStatic" state="true"/>
        <selection name="IIS-HttpCompressionDynamic" state="true"/>
        <selection name="IIS-WebServerManagementTools" state="true"/>
        <selection name="IIS-ManagementConsole" state="true"/>
        <selection name="IIS-ManagementScriptingTools" state="true"/>
        <selection name="IIS-ManagementService" state="true"/>
        <selection name="IIS-IIS6ManagementCompatibility" state="true"/>
        <selection name="IIS-Metabase" state="true"/>
        <selection name="IIS-WMICompatibility" state="true"/>
        <selection name="IIS-LegacyScripts" state="true"/>
        <selection name="IIS-LegacySnapIn" state="true"/>
        <selection name="IIS-FTPPublishingService" state="true"/>
        <selection name="IIS-FTPServer" state="true"/>
        <selection name="IIS-FTPManagement" 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>

    One thing I did notice is that with the set command, I am getting this:
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 8, GenuineIntel

    Where the problem?
    Thanks

  • Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    May 21, 2009 05:37 PM|HSeiler|LINK

     in Windows 7 the FTP updates:

        <selection name="IIS-FTPPublishingService" state="true"/>
        <selection name="IIS-FTPServer" state="true"/>
        <selection name="IIS-FTPManagement" state="true"/>

    has been replaced by the FTP7 updates:

        <selection name="IIS-FTPServer" state="true"/>
        <selection name="IIS-FTPSvc" state="true"/>
        <selection name="IIS-IIS-FTPExtensibility" state="true"/>

    Also you no longer need the WAS stuff:

        <selection name="WAS-WindowsActivationService" state="true"/>
        <selection name="WAS-ProcessModel" state="true"/>
        <selection name="WAS-NetFxEnvironment" state="true"/>
        <selection name="WAS-ConfigurationAPI" state="true"/>

     as these are being pulled in automagically.

     

    Henry Seiler
    Program Manager
    IIS Deployment
  • Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    May 22, 2009 02:38 PM|naimbeg|LINK

    Made the change and still does not work...
    You mentioned Windows 7, I am using Server 2008 RC2, I am assuming the change is for both as they both share the new kernel.

    FYI, the unattend.xml script is on the E:\Build and the command promt I am using (running as Local Admin) is at E:\Build

  • Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    Jun 05, 2009 10:58 AM|naimbeg|LINK

    Figured it out...
    in "start /w pkgmgr /n unattend.xml" I was missing the : in /n:unattend.xml...

    Couldn't see it for the life of me.

  • Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    Jun 12, 2009 02:55 PM|pvo01|LINK

    did it work for you? how did you do it.

     i am having the exact scrip as your, i got it from http://learn.iis.net/page.aspx/133/using-unattend-setup-to-install-iis-7/

     i changed the product version : 6.0.600.16386

     i have the unattend.xml on my F:\

    and in the cmd,

    i have F:\>start /w pkgmgr /n:unattend.xml

     but nothing hapeen.

    and echo %errorlevel% gives me -2146498555

     

    any idea?

    Thanks 

     

  • Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    Jul 06, 2009 03:34 PM|naimbeg|LINK

    It appears that you have a version mis-match... is your OS 32 or 64 bit based?
    Look at this thread... http://forums.iis.net/p/1148892/1867429.aspx

  • Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    Jul 08, 2009 05:05 PM|pam2009|LINK

    ' i changed the product version : 6.0.600.16386'

    ' and echo %errorlevel% gives me -2146498555'

     

    I had the same error.

     

    The version line on mine (Vista Ultimate) to work correctly reads

    version="6.0.6000.16386"

     

    Another error I saw was  -2146498547

    This error was caused by a typo in the opening assemblyIdentity line

    It read <ssemblyIdentity

    and should read <assemblyIdentity

     

    Still am unable to get full package to install correctly from scratch.  Am doing selective installs till I get an operational IIS7 basic package.

     

    hth

     

  • Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    Jan 11, 2010 06:56 AM|GSBHARATH|LINK

     Even  im having the same problem while installing the IIS 7 using unattend.xml file according to the version "6.0.6000.16386 " it is 32 bit OS.

  • Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    Nov 23, 2010 03:34 AM|suchiwa|LINK

    Hi,

    Do you have DISM tool on your Windows 7 ? Otherwise, install it...

    Try to know which version and archtitecture processor you have type this command line :

    dism /online /get-features /format:table

    You will have all the case sensitive features on your Win7, so if you have in your xml file something that doesn't match, so it's not a feature.