Wix补丁 - 卸载补丁时弹出系统对话框的重新启动

时间:2012-06-13 06:37:33

标签: wix install patch

我一直在通过比较旧版本和较新版本的pdb文件来生成补丁文件。 修补程序文件(msp)已成功安装,系统重新启动对话框未弹出。 在卸载补丁重启系统对话框时会弹出。 请告诉我如何在卸载时限制重启系统对话框。

补丁文件

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Patch 
      AllowRemoval="yes"
      Manufacturer="Test"
      MoreInfoURL="http://www.test.com/"
      DisplayName="Patch 1.0.1"
      Description="Patch"
      Classification="Update" 
        >

    <Media Id="5000" Cabinet="RTM.cab">
      <PatchBaseline Id="RTM">
        <Validate ProductId="no" />        
      </PatchBaseline>
    </Media>

    <PatchFamilyRef Id="PatchFamily"/>
  </Patch>

  <Fragment>
    <PatchFamily Id='PatchFamily' Version='1.0.1' Supersede='yes' >
      <!--<ComponentRef Id="C__F12B37CBEAE157D538B2BAC1CF30713C"/>
      <ComponentRef Id="C__3430F83A3728AE39FA075656EBFCA0BD"/>-->
    </PatchFamily>
  </Fragment>
</Wix>

1 个答案:

答案 0 :(得分:0)

有一个属性可以执行此操作,但我不确定它是否适用于修补程序。

<Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable" />

应该完成你想做的事情。如果您对此有其他疑问,请与我们联系。