我有一个使用IIS的项目,我想用Wix为它创建一个安装程序。我已经成功地为应用程序创建了.msi安装程序,我正在为它创建一个捆绑安装程序,它将安装先决条件,然后再安装我的应用程序。
这是捆绑的代码:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
  xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
  xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
  <Bundle Name="Bootstrapper" Version="1.0.0.0" Manufacturer="VilmosNagy" UpgradeCode="844c755f-f02b-4dd3-8b9c-af2498f3128c">
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
    <Chain>
      <PackageGroupRef Id="NetFx45Web"/>
      <PackageGroupRef Id="SQLServerExpress"/>
      <!-- <MsiPackage SourceFile="path\to\your.msi" /> -->
    </Chain>
  </Bundle>
</Wix>我的问题是,我如何安装(或启用?)如果没有安装IIS?
谢谢!
发布于 2016-03-28 02:42:53
下面是一些用于快速修复的WIX代码
run64.bat:我不知道为什么需要这两行代码来欺骗文件系统重定向器
set "SystemPath=%windir%\Sysnative"
CD "%windir%\Sysnative""
%*InstallIIS.wxs:取代run.bat用于平台专用批处理
  <?if $(var.Platform) = x86 ?> 
  <?define PlatformRunBatch = "run.bat" ?> 
  <?else?> 
  <?define PlatformRunBatch = "run64.bat" ?> 
  <?endif?> 
  <ExePackage Id="IIS_part0"
              SourceFile="$(var.PlatformRunBatch)"https://stackoverflow.com/questions/24439602
复制相似问题