安装Web应用程序IIS

时间:2013-01-22 14:51:54

标签: wix

您好我正在尝试使用WIX安装Web应用程序。我不确定我的内容是否正确,但我在日志文件中收到此错误:

我的wxs文件:

    <ComponentGroup Id='IISConfig'>

<Component Id='WebAppPool' Guid='5EC0510D-BE49-4FE9-9572-5695DB9BD343' Directory='INSTALLLOCATION'>
  <CreateFolder/>
  <iis:WebAppPool Id="WebAppPool" Name="DefaultAppPool" />

  <iis:WebSite Id='DefaultWebSite' Description='Default Web Site' Directory='INSTALLLOCATION' WebApplication='WebApplication'>
    <iis:WebAddress Id='AllUnassigned' Port='80' />
    <iis:WebDirProperties Id='WebDirProperties' Execute='yes'/>
  </iis:WebSite>
</Component>


<Component Id='WebVirtualDirComponent' Guid='52D0B071-0801-4B93-8C8F-F5FC92DD8D8F' Directory='INSTALLLOCATION'>
  <CreateFolder/>
  <iis:WebVirtualDir Id='WebVirtualDir' Alias='[PRODUCTNAME]' Directory='INSTALLLOCATION' WebSite='DefaultWebSite'>
    <iis:WebDirProperties Id='WebVirtualDirProperties' Execute='yes' WindowsAuthentication='yes'/>
    <iis:WebApplication Id='WebApplication' Name='[PRODUCTNAME]' WebAppPool='WebAppPool'>
      <iis:WebApplicationExtension Extension='dll' Executable='[#mod_Gsoap.dll]' CheckPath='yes' Script='yes'/>
    </iis:WebApplication>
  </iis:WebVirtualDir>
</Component>


</ComponentGroup>

我的任何日志文件:

MSI (s) (90:C4) [14:48:38:200]: Executing op: CustomActionSchedule(Action=WriteIIS7ConfigChanges,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (90:AC) [14:48:38:216]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIAB38.tmp, Entrypoint: WriteIIS7ConfigChanges
WriteIIS7ConfigChanges:  Error 0x80040154: Failed to open AppHostWritableAdminManager to configure IIS7
WriteIIS7ConfigChanges:  Error 0x80040154: WriteIIS7ConfigChanges Failed.
CustomAction WriteIIS7ConfigChanges returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 14:48:38: InstallFinalize. Return value 3.

如果有人能指出我正确的方向,我将不胜感激......:)

2 个答案:

答案 0 :(得分:2)

该错误消息表示用于写入IIS配置的IIS7 COM对象未在计算机上正确注册。不确定解决问题的最佳方法,但您可以尝试修复(或卸载/安装)IIS。

答案 1 :(得分:0)

就我而言,根本没有安装IIS。 d&#39;哦