Orca thinks that the patch is OK, but when you apply it nothing changes?

This smells like a component-rule violation.

After applying the patch, run a repair of the product. Is the product
correct then?

-----Original Message-----
From: John Lister [mailto:john.lis...@kickstone.com] 
Sent: Tuesday, November 24, 2009 2:37 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Patch registry problem

Hi Blair, thanks for the suggestion, unfortunately it didn't seem to make
any difference. The odd thing is that if I load the original msi into orca
and apply the patch I can see all the (correct) modifications to the
registry, so they seem to be there. But applying the patch ignores them.
I've also tried turning off AllowRemoval and switching the optimisation
setting in case that made a difference but without luck.

I've created a bootstrapper for the patch which manually applies the
registry changes. This isn't ideal and there does seem to be a bug in the
process somewhere. I can post the files if that would help.

Thanks

John
-----Original Message----- 
From: Blair [mailto:os...@...]
Subject: [WiX-users] Patch registry problem 

First suggestion: add "-t patch" to the torch command-line. 

-----Original Message----- 
From: John Lister [mailto:john.lis...@...] 
Subject: [WiX-users] Patch registry problem 

Hi, I've created a patch from 2 MSI files (unfortunately I don't have 
the original wix object files so have to use MSIs) using the following, 
which all seemed to go fine: 

msiexec /a orig\Installer.msi TARGETDIR=c:\src\patch\orig\admin 
msiexec /a new\Installer.msi TARGETDIR=c:\src\patch\new\admin 
torch -p -ax diff -xo orig\admin\Installer.msi new\admin\Installer.msi 
-out diff.wixout 
candle.exe Patch.wxs 
light.exe Patch.wixobj -out Patch.WixMsp 
pyro patch.wixmsp -out Patch.msp -t IE8 diff.wixout 

using the following for the patch.wxs file 

<?xml version="1.0" encoding="UTF-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";> 
    <Patch 
        AllowRemoval="yes" 
        Manufacturer="Kickstone Technologies Ltd" 
        MoreInfoURL="http://www.pricegoblin.co.uk/"; 
        DisplayName="IE8 Patch" 
        Description="IE8 Patch" 
        Classification="Update" 
        > 
        <Media Id="5000" Cabinet="IE8.cab"> 
            <PatchBaseline Id="IE8"/> 
        </Media> 
        <PatchFamily Id='SamplePatchFamily' Version='1.0.0' Supersede='yes'>

        </PatchFamily> 
    </Patch> 
</Wix> 


The patch seems to have been created fine and seems to run fine except 
for one problem. 

One of the components changed in the patch has a number of registry 
entries which are also changed (it is a COM object). 
The patch successfully installs the new registry values, but doesn't 
remove the old ones. If i uninstall the product after applying the 
patch, the new registry values are removed as expected, but the original 
ones are left behind. This seems to indicate the patch partially 
replaced the "mappings" for the registry values in the installation. 

Have I missed an option or otherwise doing something else wrong, or is 
this unexpected behaviour indicitive of a bug 

Thanks for your help. 

John 
----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus
on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to