0

我正在使用 PatchCreation 属性来创建基于 wix 的补丁。

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <!-- Creating patch from latest and old msi -->
  <!-- PatchCreation id need to be changed for every new patch release -->
  <PatchCreation
        Id="8EF65292-867D-4C59-8E1B-25B014D79883"
        CleanWorkingFolder="yes"
        OutputPath="patch.pcp"
        WholeFilesOnly="yes" 
        >

    <PatchInformation
        Description="TimeConversion Small Update Patch"
        Comments="TimeConversion Small Update Patch"
        Manufacturer="MyOrganization"
    />

    <PatchMetadata
        AllowRemoval="yes"
        Description="TimeConversion Small Update Patch"
        ManufacturerName="MyOrganization"
        TargetProductName="TimeConversionPatch"
        MoreInfoURL="http://www.MyOrganization.com/"
        Classification="Update"
        DisplayName="TimeConversion Patch" 
        MinorUpdateTargetRTM="1"/>

    <!-- Uncompressed msi should be used to create patch-->
    <Family DiskId="5000"
        MediaSrcProp="Sample"
        Name="Sample"
        SequenceStart="5000">
      <UpgradeImage SourceFile="$(var.RootFolder)\TimeConversion\Impl\Patch\Latest_Uncompressed_MSI\TimeConversionService.msi" Id="Latest">
        <TargetImage SourceFile="$(var.RootFolder)\TimeConversion\Impl\Patch\Prev_Uncompressed_MSI\TimeConversionService.msi" Order="2" Id="Previous" IgnoreMissingFiles="no"/>
      </UpgradeImage>
    </Family>

    <PatchSequence 
            PatchFamily="SamplePatchFamily"
            Supersede="yes" 
    />

  </PatchCreation>

如何通过candle.exe参数将新的guid传递给PatchCreation id值?

4

0 回答 0