Installing IIS with DNI

Feb 10, 2011 at 7:01 PM

I am using following component to check and install IIS 7.5 using DISM.exe tool

<component executable="#SYSTEMPATH\dism.exe" executable_silent="" executable_basic="" install_directory="" responsefile_source="" responsefile_target="" responsefile_format="none" uninstall_executable="" uninstall_executable_silent="" uninstall_executable_basic="" uninstall_responsefile_source="" uninstall_responsefile_target="" returncodes_success="" returncodes_reboot="" 
exeparameters= "/Online /Enable-Feature /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServer /FeatureName:IIS-CommonHttpFeatures /FeatureName:WAS-WindowsActivationService /FeatureName:WAS-ProcessModel /FeatureName:WAS-ConfigurationAPI /FeatureName:WAS-NetFxEnvironment" 
exeparameters_basic="" exeparameters_silent="" uninstall_exeparameters="" uninstall_exeparameters_basic="" uninstall_exeparameters_silent="" id="iis7.5" display_name="IIS 7.5" uninstall_display_name="" os_filter="" os_filter_min="" os_filter_max="" os_filter_lcid="" type="exe" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue="" allow_continue_on_error="True" default_continue_on_error="False" required_install="True" required_uninstall="False" selected_install="True" selected_uninstall="True" note="" processor_architecture_filter="" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="False" show_progress_dialog="True" show_cab_dialog="True">
      <installedcheck path="SOFTWARE\Microsoft\InetStp" fieldname="MajorVersion" fieldvalue="1" defaultvalue="False" fieldtype="REG_DWORD" comparison="value_exists" rootkey="HKEY_LOCAL_MACHINE" wowoption="WOW64_32" type="check_registry_value" description="Check IIS 7.5" />
</component>
I have prechecked command line and it works file. However executing this command is failing from DNI. Following lines from log file are not very helpful:

 Sequence: install
2011-02-10 11:37:35 UI level: full
2011-02-10 11:37:35 -- Loading supported components (lcid=1033)
2011-02-10 11:37:35 -- iis7.5 (display_name='IIS 7.5', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2011-02-10 11:37:35 -- SQLServer2008x86 (display_name='SQL Server 2008 (x86)', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): SKIPPED
2011-02-10 11:37:35 -- SQLServer2008x64 (display_name='SQL Server 2008 (x64)', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): LOADED
2011-02-10 11:37:35 --- Loaded 2 supported component(s)
2011-02-10 11:37:35 Checking whether registry value 'SOFTWARE\Microsoft\InetStp\MajorVersion' exists
2011-02-10 11:37:35 Opening 32-bit registry view (KEY_WOW64_32KEY)
2011-02-10 11:37:35 Registry value 'SOFTWARE\Microsoft\InetStp\MajorVersion' not found
2011-02-10 11:37:35 -- iis7.5 (IIS 7.5): NOT INSTALLED
2011-02-10 11:37:35 Checking whether registry value 'SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL\SQLEXPRESS' exists
2011-02-10 11:37:35 Opening 32-bit registry view (KEY_WOW64_32KEY)
2011-02-10 11:37:35 Registry value 'SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL\SQLEXPRESS' not found
2011-02-10 11:37:35 -- SQLServer2008x64 (SQL Server 2008 (x64)): NOT INSTALLED
2011-02-10 11:37:43 -- Loading supported components (lcid=1033)
2011-02-10 11:37:43 -- iis7.5 (display_name='IIS 7.5', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2011-02-10 11:37:43 -- SQLServer2008x86 (display_name='SQL Server 2008 (x86)', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): SKIPPED
2011-02-10 11:37:43 -- SQLServer2008x64 (display_name='SQL Server 2008 (x64)', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): LOADED
2011-02-10 11:37:43 --- Loaded 2 supported component(s)
2011-02-10 11:37:43 Extracting embedded files for component '*': NO FILES EMBEDDED
2011-02-10 11:37:43 --- Component 'iis7.5' (IIS 7.5): EXECUTING
2011-02-10 11:37:43 Extracting embedded files for component 'iis7.5': NO FILES EMBEDDED
2011-02-10 11:37:43 -- Executable: C:\Windows\system32\dism.exe
2011-02-10 11:37:43 -- Additional command-line parameters: /Online /Enable-Feature /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServer /FeatureName:IIS-CommonHttpFeatures /FeatureName:WAS-WindowsActivationService /FeatureName:WAS-ProcessModel /FeatureName:WAS-ConfigurationAPI /FeatureName:WAS-NetFxEnvironment

2011-02-10 11:37:44 --- Component 'iis7.5 (IIS 7.5): DIALOG CLOSED
2011-02-10 11:37:44 *** Component 'iis7.5' (IIS 7.5): ERROR - Error executing 'iis7.5' (IIS 7.5): 0xb
2011-02-10 11:37:44 --- Component 'iis7.5 (IIS 7.5)' FAILED: Error executing 'iis7.5' (IIS 7.5): 0xb
2011-02-10 11:37:52 --- Component 'iis7.5 (IIS 7.5): FAILED, ABORTING
2011-02-10 11:37:52 *** Failed to install one or more components, reloading components (reload_on_error).
2011-02-10 11:37:52 -- Loading supported components (lcid=1033)
2011-02-10 11:37:52 -- iis7.5 (display_name='IIS 7.5', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2011-02-10 11:37:52 -- SQLServer2008x86 (display_name='SQL Server 2008 (x86)', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): SKIPPED
2011-02-10 11:37:52 -- SQLServer2008x64 (display_name='SQL Server 2008 (x64)', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): LOADED
2011-02-10 11:37:52 --- Loaded 2 supported component(s)
2011-02-10 11:37:52 Checking whether registry value 'SOFTWARE\Microsoft\InetStp\MajorVersion' exists
2011-02-10 11:37:52 Opening 32-bit registry view (KEY_WOW64_32KEY)
2011-02-10 11:37:52 Registry value 'SOFTWARE\Microsoft\InetStp\MajorVersion' not found
2011-02-10 11:37:52 -- iis7.5 (IIS 7.5): NOT INSTALLED
2011-02-10 11:37:52 Checking whether registry value 'SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL\WELLCORE' exists
2011-02-10 11:37:52 Opening 32-bit registry view (KEY_WOW64_32KEY)
2011-02-10 11:37:52 Registry value 'SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL\WELLCORE' not found
2011-02-10 11:37:52 -- SQLServer2008x64 (SQL Server 2008 (x64)): NOT INSTALLED
2011-02-10 11:37:53 dotNetInstaller finished, return code=11

The target machine is Windows7 - 64 bit virtual Machine.

Any suggestion what is this error about?


Feb 10, 2011 at 7:41 PM

Find out how to create a log file with the IIS installer. The log file should have the explanation of the error. 

Feb 10, 2011 at 7:58 PM
Edited Feb 10, 2011 at 8:00 PM

Thanks for the reply :)

Following are the details from dism.log file. But again not very informative.

2011-02-10 11:37:43, Info                  DISM   DISM.EXE:
2011-02-10 11:37:43, Info                  DISM   DISM.EXE: <----- Starting Dism.exe session ----->
2011-02-10 11:37:43, Info                  DISM   DISM.EXE:
2011-02-10 11:37:43, Info                  DISM   DISM.EXE: Host machine information: OS Version=6.1.7600, Running architecture=x86, Number of processors=2
2011-02-10 11:37:43, Info                  DISM   DISM.EXE: Executing command line: C:\Windows\system32\dism.exe /Online /Enable-Feature /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServer /FeatureName:WAS-WindowsActivationService /FeatureName:WAS-ProcessModel /FeatureName:WAS-ConfigurationAPI /FeatureName:WAS-NetFxEnvironment
2011-02-10 11:37:43, Info                  DISM   DISM Provider Store: PID=5020 Getting Provider FolderManager - CDISMProviderStore::GetProvider
2011-02-10 11:37:43, Info                  DISM   DISM Provider Store: PID=5020 Provider has not previously been encountered.  Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
2011-02-10 11:37:43, Info                  DISM   DISM Provider Store: PID=5020 Loading Provider from location C:\Windows\System32\Dism\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
2011-02-10 11:37:43, Info                  DISM   DISM Provider Store: PID=5020 Connecting to the provider located at C:\Windows\System32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
2011-02-10 11:37:43, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
2011-02-10 11:37:43, Info                  DISM   DISM.EXE:
2011-02-10 11:37:43, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->

Feb 10, 2011 at 9:30 PM

I think this issue is related to 32-bit and 64-bit OS.

DNI setup works fine for 32-bit but fails to install IIS on 64-bit. Give proper path for dism.exe for both 32 and 64-bit OS , it will work fine.

 

Dec 15, 2011 at 1:09 PM

Did you find asolution to this. I've tried using the following as the executable, but it still fails on x64 W7:

%systemroot%\syswow64\dism.exe

dism.exe

%systemroot%\system32\dism.exe

Could you please post your exact 'Component' xml code from the installer please.

Thanks

Dec 16, 2011 at 10:53 AM

So it seems the CORRECT path for x64 DISM is as follows:

%systemroot%\Sysnative\dism.exe

Using this the DNI now installs IIS successfully.