Wix Install Msi package

来源:互联网 发布:java socket服务器编程 编辑:程序博客网 时间:2024/05/01 03:32
  <Directory Id="MSI"  Name="MSI">    <Directory  Id="MSI_1" Name="1">      <Component Id="MSI_1"  DiskId="1" Guid="PLACE-YOUR-GUID-HERE">         <File  Id="sample1.msi" Name="sample1.msi" src="C:\Drivers\MSI\1\sample1.msi"  />      </Component>    </Directory>    <Directory  Id="MSI_2" Name="2">      <Component Id="MSI_2" DiskId="1" Guid="PLACE-YOUR-GUID-HERE">         <File Id="sample2.msi"  Name="sample2.msi" src="C:\Drivers\MSI\2\sample2.msi" />      </Component>    </Directory>  </Directory>

  <Feature Id="RootFeature"  Level="1" ConfigurableDirectory="TARGETDIR"    Description="Sample" Display="expand"  Title="Sample"   AllowAdvertise="no"  TypicalDefault="install">    <Feature Id="Drivers" Level="1"  AllowAdvertise="no"   ConfigurableDirectory="TARGETDIR"  Description="Drivers"   Display="collapse"  Title="Drivers" >      <ComponentRef  Id='MSI_1' />      <ComponentRef Id='MSI_2' />    </Feature>  </Feature>

  <CustomAction Id='Install_MSI_1'  Return="ignore"   Directory="SystemFolder"  ExeCommand="msiexec /i   "[MSI_1]sample1.msi" /qn /L*v    "[TempFolder]sample1.log" ALLUSERS=1 REBOOT=ReallySuppress    ARPSYSTEMCOMPONENT=1" />    <CustomAction Id='Install_MSI_2'  Return="ignore"   Directory="SystemFolder"  ExeCommand="msiexec /i   "[MSI_2]sample2.msi" /qn /L*v    "[TempFolder]sample2.log" ALLUSERS=1 REBOOT=ReallySuppress    ARPSYSTEMCOMPONENT=1" />