Wix Install Msi package

  <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" />

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值