All -
                I have multiple versions of a product released in the field 
that I need to upgrade with a patch. The installer that all the versions are 
all based on can perform a major upgrade from a previous version. I believe 
they should have used the same product id but they don't because the wxs file 
has '*' for the product id. All the versions are basically the same except for 
a few additional files from the original version to the latest one. The version 
numbers of the installers only differ in the fourth place (e.g. 1.5.0.120, 
1.5.0.147, 1.5.0.162 and 1.5.0.188)and they all use the same upgrade code.

My question is how do I go about creating a patch that can upgrade all four 
versions and bring them up to the same version so they can be updated in the 
future?

I seem to be able to create a patch against a single version but against 
multiple versions I get the following error.
  ERROR: Since MSI 3.0 will block installation of major upgrade patches with 
sequencing information, creation of such patches is blocked.

The following is the start of my patch creation file which worked until I put 
the second TargetImage line in.

<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

  <?define var.Manufacturer = "Acme, Inc."?>
  <?define var.PRODUCTNAME  = "App" ?>
  <?define var.ReleaseNumber= "1.5.0" ?>

  <PatchCreation Id='{01865DA7-1DE1-45ab-BB7C-7B89CA10CBCC}'
    AllowMajorVersionMismatches='no'
    AllowProductCodeMismatches='yes'
    CleanWorkingFolder='yes'
    WholeFilesOnly='yes'>

    <PatchInformation
      Description="App SP 1"
      Keywords='Installer,MSI,Database'
      Comments='App SP 1'
      Manufacturer='$(var.Manufacturer)'
      Languages='1033'
      Compressed='yes'
      SummaryCodepage='1252'
      ShortNames="no" />

    <PatchMetadata
      Description="1st service pack for App"
      DisplayName='App SP 1'
      TargetProductName='$(var.PRODUCTNAME) v$(var.ReleaseNumber)'
      ManufacturerName='$(var.Manufacturer)'
      MoreInfoURL='www.acme.com'
      Classification='Service Pack'
      AllowRemoval='no' />

    <Family
      Name='APP150'
      DiskId='3'
      MediaSrcProp='APP150Src'
      SequenceStart='2000'>

      <UpgradeImage
        Id='PatchedImage'
        SourceFile='C:\Official Releases\1.5.0.227\AdminVer\App.msi'>

        <TargetImage
          Id='OrigImage'
          Order='2'
          IgnoreMissingFiles='no'
          SourceFile='C:\Official Releases\1.5.0.120\AdminVer\App.msi'/>

        <TargetImage
          Id='OrigImage2'
          Order='3'
          IgnoreMissingFiles='no'
          SourceFile='C:\Official Releases\1.5.0.147\AdminVer\App.msi'/>


      </UpgradeImage>

    </Family>

  </PatchCreation>
</Wix>

Thanks for your help
Tom

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to