我正在尝试使用wix bootstrapper安装IIS,但未安装它。我是Wix的新手,有人可以建议我做错了什么事。
预先感谢
<Chain>
<MsiPackage Id="EssVillageMate" SourceFile="$(var.SolutionDir)\MSIPackage\VillageMateSetup.msi" InstallCondition="VersionNT64" ForcePerMachine="yes" Visible="yes"
Vital="yes"/>
<MsiPackage Id="TestService" SourceFile="$(var.SolutionDir)\MSI Package\TestService-x86-1.0.0.0.msi"
InstallCondition="VersionNT64" ForcePerMachine="yes"
Visible="yes" Vital="yes" />
</Chain>
</Bundle>
<Fragment>
<Property Id="INSTALLIISPROP" Value="C:\Windows\System32\dism.exe">
<RegistrySearch Id="checkIISVersion" Root="HKLM" Key="SOFTWARE\Microsoft\InetStp" Name="MajorVersion" Type="raw"></RegistrySearch>
</Property>
<Condition Message='HTTP Redirection is not configured in IIS. Please install HTTP Redirection in IIS first, and then .Net FrameWork.'>
<![CDATA[Installed OR REDIRECT]]>
</Condition>
<CustomAction Id="InstallIISCA" Return="ignore" Property="DISMPFAD" Execute="oncePerProcess" Impersonate="yes"
ExeCommand="/online /enable-feature /all /featurename:IIS-WebServerRole /featurename:IIS-WebServer /featurename:IIS-CommonHttpFeatures /featurename:IIS-StaticContent /featurename:IIS-DefaultDocument /featurename:IIS-DirectoryBrowsing /featurename:IIS-HttpErrors /featurename:IIS-ApplicationDevelopment /featurename:IIS-ASPNET /featurename:IIS-ASPNET45 /featurename:IIS-NetFxExtensibility /featurename:IIS-NetFxExtensibility45 /featurename:IIS-ISAPIExtensions /featurename:IIS-ISAPIFilter /featurename:IIS-HealthAndDiagnostics /featurename:IIS-HttpLogging /featurename:IIS-LoggingLibraries /featurename:IIS-RequestMonitor /featurename:IIS-Security /featurename:IIS-RequestFiltering /featurename:IIS-HttpCompressionStatic /featurename:IIS-WebServerManagementTools /featurename:IIS-ManagementConsole /featurename:IIS-IPSecurity /featurename:WAS-WindowsActivationService /featurename:WAS-ProcessModel /featurename:WAS-NetFxEnvironment /featurename:WAS-ConfigurationAPI /featurename:WCF-NonHTTP-Activation /featurename:WCF-Pipe-Activation45 /featurename:WCF-TCP-Activation45 /featurename:WCF-TCP-PortSharing45 /featurename:WCF-HTTP-Activation45" >
</CustomAction>
<InstallUISequence>
<Custom Action="InstallIISCA" Before="CostFinalize" Overridable="yes">NOT Installed AND (VersionNT > 601)</Custom>
</InstallUISequence >
</Fragment>
</Wix>