Login Or Sign up

How to pass GUID for wix patch?

148 Views Asked by At

I am using PatchCreation properties for creating wix based patch.

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

How to pass new guid to PatchCreation id value via candle.exe parameter?

0

There are 0 best solutions below