Yes, right. Just those two componenst. One is executable, the other one library.



I've double checked, they changed. File version and product version of 
installed files is different between 1.1.1.1 and 1.0.0.0 package.



Wixmst is ~350kb large, but I've found this piece within:

<row op="modify" sectionId="wix.section.39/wix.section.39" 
sourceLineNumber="C:\Workspace\PatchMe\PatchMe.Installer\PatchMe.Executable.wxs*6"><field>fil688DB5AD6C6354863057D7D0F08689D8</field><field>cmpD5E6EA59DB565F052E0217CB3248DAE5</field><field>srxgyb5z.exe|PatchMe.Executable.exe</field><field>5632</field><field
 
modified="yes">1.1.1.1</field><field>0</field><field>512</field><field>1</field></row>

Does that help? Is it relevant?



Is the newer MSI supposed to upgrade older one? When I try to install newer 
msi, I get "Another version of this product is already installed. ...". This 
behavior is consistent with example I've found here: 
http://wix.sourceforge.net/manual-wix3/wix_patching.htm



If I don't include ComponentRef's in patch family, the patch will be created 
and I'll get only warning PYRO1079. But when I apply the patch, neither 
installed dll or exe file get upgraded.







Hi,

>From a quick read of what you have, it looks like you are trying to build a

patch in which you think that two specific components have changed.

            <ComponentRef Id="cmp981D9885AA29DD578D66D32ED919EBFB"/>

            <ComponentRef Id="cmpD5E6EA59DB565F052E0217CB3248DAE5"/>



Double check that these components have indeed changed in your 1.1.1 msi.

What does your wixmst contain?



Does the 1.1.1 msi upgrade your 1.0.0 msi correctly?



You could also try leaving your patch family element empty to allow wix to

determine what has changed automatically.



-----Original Message-----

From: Pavol Kovalik [mailto:PKovalik@...]

Sent: 02 July 2012 13:30

To: 'wix-users@...'

Subject: [WiX-users] Trying to create patch, getting PYRO0227 error.



I'm trying to create a patch for an application I'm working on.

Unfortunatelly I'm running into these:



warning PYRO1079 : The cabinet 'RMT.cab' does not contain any files.  If this

patch contains no files, this warning can likely be safely ignored.

Otherwise, try passing -p to torch.exe when first building the transforms, or

add a ComponentRef to your PatchFamily authoring to pull changed files into

the cabinet.

error PYRO0227 : The transform being built did not contain any differences so

it could not be created.



Here are excerpts of relevant files (Hopefully I didn't miss anything

important).



-- Variables.wxi

-----------------------------------------------------------------------------

----

<?xml version="1.0" encoding="utf-8"?>

<Include>

  <?define ProductName="Patch Me" ?>

  <?define ProductId="PatchMe" ?>

  <?define ProductVersionShort="1.1.1" ?>

  <?define ProductVersion="1.1.1.1" ?>

  <?define ProductCode="{8AA0B0B8-F133-49DF-B80F-D14A08144A23}" ?>

  <?define UpgradeCode="{C434C693-0797-4206-B79A-F174A8338E21}" ?>

  <?define Manufacturer="The Manufacturer" ?> </Include>



-- Product.wxs

-----------------------------------------------------------------------------

----

<?xml version="1.0" encoding="UTF-8"?>

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

  <?include Variables.wxi ?>

  <Product Id="$(var.ProductCode)" Name="$(var.ProductName)" Language="1033"

Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)"

UpgradeCode="$(var.UpgradeCode)">

    <Package InstallerVersion="200" Compressed="yes"

InstallScope="perMachine" />



    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is

already installed." />

    <!--<MediaTemplate EmbedCab="yes" />-->

    <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />





    <!-- CHECK IF .net 4 IS INSTALLED HERE -->



    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />



    <!-- Full UI -->

    <UIRef Id="WixUI_InstallDir"/>





    <Feature Id="ProductFeature" Title="PatchMe.Installer" Level="1">

      <ComponentGroupRef Id="ProductComponents" />

    </Feature>

  </Product>



  <Fragment>

    <!-- DIRECTORY STRUCTURE HERE -->



  </Fragment>



  <Fragment>

    <!-REFERENCE TO COMPONENTS CREATED BY heat.exe HERE -->

  </Fragment>

</Wix>



-- Patch.wxs

-----------------------------------------------------------------------------

----

<?xml version="1.0" encoding="UTF-8"?>

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

  <?include Variables.wxi ?>

  <Patch AllowRemoval="yes"

         Manufacturer="$(var.Manufacturer)"

         DisplayName="$(var.ProductName) $(var.ProductVersion)"

         Description="Small Update Patch"

         Classification="Update"

         TargetProductName="$(var.ProductName)"

         >



        <Media Id="5000" Cabinet="RMT.cab">

            <PatchBaseline Id="RTM">

            </PatchBaseline>

        </Media>



        <PatchFamilyRef Id="SamplePatchFamily"/>

    </Patch>



    <Fragment>

        <PatchFamily Id="SamplePatchFamily" Version="$(var.ProductVersion)"

Supersede="yes">

            <ComponentRef Id="cmp981D9885AA29DD578D66D32ED919EBFB"/>

            <ComponentRef Id="cmpD5E6EA59DB565F052E0217CB3248DAE5"/>

        </PatchFamily>

    </Fragment>

</Wix>



-- BuildPatch.cmd

-----------------------------------------------------------------------------

----

set w="c:\Program Files (x86)\WiX Toolset v3.6\bin\"



%w%torch.exe -p -xi 1.0.0.0\PatchMe.Installer.wixpdb

1.1.1.1\PatchMe.Installer.wixpdb -out Patch\Diff.wixmst %w%candle.exe

Patch.wxs %w%light.exe Patch.wixobj -out Patch\Patch.WixMsp %w%pyro.exe

Patch\Patch.WixMsp -out Patch\Patch.msp -t RTM Patch\Diff.wixmst



-----------------------------------------------------------------------------

--------------------





Note: Directories "1.0.0.0" and "1.1.1.1" contain output of

"PatchMe.Installer" project (votive) for two different versions of same

program.



Any help would be welcome.



Thanks,



Pavol

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to