IIS7. Installation instructions for Vista Beta 2


Since IIS7 is not enabled nor installed by default on Vista (just like IIS6 is not enabled nor installed by default on Windows Server 2003 and Windows XP 64bit), and the various UI/Wizard/ControlPanel-mechanisms for managing components in Vista are not exactly ready for prime time (all are completely rewritten for Vista), I thought I should share the mechanism that the IIS team uses to install/develop/test IIS7.


BTW, this is the only mechanism that I can assure you that works because we run it every day and assure it works as we merge our code changes on towards the WinMain branch which produces the beta/product builds that you get.

start /w pkgmgr /l:log.etw /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

Yes, I know it is long. It installs all IIS7 components.


You can pick a smaller set, but then I cannot assure you that it works nor that uninstall/upgrade works. In fact, let me just say that you should not try upgrades nor partial uninstallations. It does not work reliably (yet), and we know that already.


This command should work for Vista builds greater than 5266, though I recommend builds 5308 or later of Beta 2. We changed the names of several IIS Components in between those times for consistency purposes – this command represents the latest agreed-upon names.


//David

Comments (14)

  1. А разве там уже не вшит IIS7? Вшит-то он вшит, но слишком предусмотрительно откл

  2. David, I tried this several times but it still won’t work. I’ve tried installing from the Windows Features dialog but it fails as well. I’m not getting any good event logs to view either.

    I’m on 5308 and it is pretty much a fresh install. Any more ideas here?

  3. I thought I’d post the error logs.

    Log Name:      System

    Source:        Microsoft-Windows-Servicing

    Date:          3/27/2006 10:16:32 PM

    Event ID:      4385

    Task:          None

    Level:         Information

    Keywords:      Classic

    User:          John C. Bland II

    Computer:      KM1

    Description:

    Windows Servicing failed to complete the process of changing update Windows Foundation Language Pack from package Language Pack(Language Pack) into localized string(Installed) state

    Event Xml:

    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt;

     <System>

       <Provider Name="Microsoft-Windows-Servicing" Guid="{bd12f3b8-fc40-4a61-a307-b7a013a069c1}" EventSourceName="Microsoft-Windows-Servicing" />

       <EventID Qualifiers="49152">4385</EventID>

       <Version>0</Version>

       <Level>0</Level>

       <Task>0</Task>

       <Opcode>0</Opcode>

       <Keywords>80000000000000</Keywords>

       <TimeCreated SystemTime="2006-03-28T05:16:32.000Z" />

       <EventRecordID>21848</EventRecordID>

       <Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" RelatedActivityID="" />

       <Execution ProcessID="0" ThreadID="0" />

       <Channel>System</Channel>

       <Computer>KM1</Computer>

       <Security UserID="S-1-5-21-3849095605-950268500-615778511-1000" />

     </System>

     <UserData>

       <CbsUpdateChangeState xmlns="http://manifests.microsoft.com/win/2004/08/windows/setup_provider"&gt;

         <UpdateName>Windows Foundation Language Pack</UpdateName>

         <PackageIdentifier>Language Pack</PackageIdentifier>

         <ReleaseType>Language Pack</ReleaseType>

         <UpdateState>Installed</UpdateState>

         <PackageAssembly>Microsoft-Windows-WindowsFoundation-LanguagePack-Package~31bf3856ad364e35~x86~en-US~6.0.5308.17</PackageAssembly>

         <UpdateDisplayName>Windows Foundation Language Pack</UpdateDisplayName>

         <Operation>Installed</Operation>

         <OperationCompleted>True</OperationCompleted>

         <ErrorCode>0x80070057</ErrorCode>

         <RebootOption>False</RebootOption>

       </CbsUpdateChangeState>

     </UserData>

    </Event>

    Here is the one right before the above.

    Log Name:      System

    Source:        Microsoft-Windows-Servicing

    Date:          3/27/2006 10:16:32 PM

    Event ID:      4375

    Task:          None

    Level:         Information

    Keywords:      Classic

    User:          John C. Bland II

    Computer:      KM1

    Description:

    Windows Servicing failed to complete the process of setting package Language Pack (Language Pack) into localized string(Installed) state

    Event Xml:

    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt;

     <System>

       <Provider Name="Microsoft-Windows-Servicing" Guid="{bd12f3b8-fc40-4a61-a307-b7a013a069c1}" EventSourceName="Microsoft-Windows-Servicing" />

       <EventID Qualifiers="49152">4375</EventID>

       <Version>0</Version>

       <Level>0</Level>

       <Task>0</Task>

       <Opcode>0</Opcode>

       <Keywords>80000000000000</Keywords>

       <TimeCreated SystemTime="2006-03-28T05:16:32.000Z" />

       <EventRecordID>21847</EventRecordID>

       <Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" RelatedActivityID="" />

       <Execution ProcessID="0" ThreadID="0" />

       <Channel>System</Channel>

       <Computer>KM1</Computer>

       <Security UserID="S-1-5-21-3849095605-950268500-615778511-1000" />

     </System>

     <UserData>

       <CbsPackageChangeState xmlns="http://manifests.microsoft.com/win/2004/08/windows/setup_provider"&gt;

         <PackageIdentifier>Language Pack</PackageIdentifier>

         <ReleaseType>Language Pack</ReleaseType>

         <PackageState>Installed</PackageState>

         <PackageAssembly>Microsoft-Windows-WindowsFoundation-LanguagePack-Package~31bf3856ad364e35~x86~en-US~6.0.5308.17</PackageAssembly>

         <Operation>Installed</Operation>

         <OperationCompleted>True</OperationCompleted>

         <ErrorCode>0x80070057</ErrorCode>

         <RebootOption>False</RebootOption>

         <MissingElements>

         </MissingElements>

       </CbsPackageChangeState>

     </UserData>

    </Event>

    It is completely weird. The management console is no help at all. It doesn’t work at all. I can’t install or uninstall anything from it. I even stripped it down to:

    start /w pkgmgr /l:log.etw /iu:IIS-WebServerRole

    with no luck.

    Also, how do you open the log.etw file? It is encrypted when I open it.

    Any help here is much appreciated. Thanks!

  4. David.Wang says:

    John – Format. Reinstall Vista Clean. Run the exact command I gave above. Your installation is not "fresh".

    Please follow instructions.

    Basically, build 5308 is pretty old, lots of setup bugs have been fixed since then.

    1. This is beta. Unless you know it works, assume it does not work.

    2. Don’t expect help. It’s not there.

    3. I have never seen the UI work. I have always seen pkgmgr command work.

    4. Your stripped down pkgmgr command is incorrect. No surprise that you had no luck getting it to work. Don’t improvise.

    log.etw is a binary file format for other high-performance transactions. It is not intended for direct human consumption. You need to unwind it into textual (XML) form first.

    tracerpt log.etw

    But I can’t promise you that the XML format is any more useful for human consumption.

    //David

  5. No, I completely understand about support and bugs. I was just hoping for a gem of knowledge somewhere on how to fix the issue(s). What I mean by fresh install is nothing about the OS was changed. I merely installed Vista and a few programs (office, etc) before I tried installing IIS.

    Thank’s for the tracerpt. I’ll check it out and see what I can see. Maybe it’ll have that gem I’m looking for.

    Thanks for your time.

  6. I formatted and reinstalled Vista. ALL IS WELL! 🙂

    Thanks!

  7. David.Wang says:

    John – this may be one of those few times that I recommend reformatting over troubleshooting.

    Windows Vista componentized setup is still quite cryptic when it fails, and you may not be able to recover without formatting and reinstalling (setup bugs tend to be dangerous like this, esecially from OS components).

    //David

  8. Ed Hendley says:

    I ran this and rebooted.  When I call up IIS under Manage My Computer I see a reference to IIS6 and only the FTP site (which) is not started. I can start it manually.

    When I try http//:localhost I get ‘this page is under construction’ and suggests I run INETMGR from the command line to configure …this returns a ‘inetmgr’ is not a recognized internal or external command …

    I had to surf to C:WindowsSystem32inetsrv and run INETMGR to get it to kick off.  I found the service was already started. Then Edit Sites – Basic – and change the startup directory to my E: drive (I mirror my work site at home which is on our e: drive).

    Then I can open a browser and see our development site on http://localhost.

  9. Gaurav_SharmaIndian says:

    Hi All,

    You can install IIS in vista by following these instructions which are mentioned below:

    1. Go to Control Panel and click on Control Panel Home which is written on the left column.

    2. Single click on Programs.

    3. Single click on Programs ans Features.

    4. Single click on turn windows feature on or off.

    5. Select IIS from that menu and insert Windows Vista’s CD.

    It will install IIS on your OS.

  10. Rob Atkinon says:

    I have IIS7 installed and running, but cannot get VSR2 to install. It does not see port 80, even though it is configured in IIS. It asks for IIS Admin. Do we support this in IIS7 with IIS Admin?

  11. Rob Atkinson says:

    Fixed it! Windows Authentication as missing

  12. david chen says:

    How to run the code which david wang provided? Thanks.

  13. Steve says:

    After another vista failure/crash, I’ve restored an earlier image that i thought was stable. However, a few minutes after booting, the event log starts to show an enormous amount of errors, 120 so far.

    16 of event 4375,  113 of event  4385,  and one 7026.  When I click on the errror, and then follow the provided link for Microsoft support, a webpage opens with this message: "Results for: Microsoft product: Windows Operating System; Version: 6.0.6000.16386; ID: 4375; Event Source: Microsoft-Windows-Servicing; No results were found for your query. Please see Search Help for suggestions."

    Is it odd that Microsoft coded these errors messages, and provides the link for help, but has no knowledge of the errors? A couple of clicks, and I can get all the help I want for $60 US. So, ok, I’m all for a good gag, but this is a joke right? I mean, $400 for the operating system, and $60 for the vendor to tell me why their software posted 120 errors, and what they mean.  I’m on TV, right?

  14. No se, como solucionar este problema, tengo 617 avisos de error, y no se donde buscar ayuda, si tu puedes ayudarme  David please