Quantcast

Disallowing uninstallation of patch

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Disallowing uninstallation of patch

Tom Crozier
Hi,

What I am trying to accomplish is to first install an unremovable Small Update patch that adds new files into a new directory. (This works)
Next is to install a removable Minor Update patch that delivers new versions of the files that were added in the first patch as well as modifications of existing dlls etc... (This does not)
What I am getting is the following message in the msi log file:
Disallowing uninstallation of patch {D40C91BE-8619-426B-8B11-2AEA5106A767} because it adds new entries to table CreateFolder
Even though these files were added in the first patch as well.

The first patch is set with AllowRemoval='no' and Supersede="no" and is built against the RTM version.

The second patch is set with AllowRemoval='yes' and Supersede=" yes" and is also built against the RTM version.

I had tried creating a small test installer and this same sequence seems to work.

Thanks - Tom

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Disallowing uninstallation of patch

Peter Shirtcliffe
If you base the second patch on the RTM, itll need the new createfolder table
entries in case the first patch is never applied. You need to base the second
patch on the patched MSI (RTM + patch 1).


-----Original Message-----
From: Tom Crozier [mailto:[hidden email]]
Sent: 22 February 2011 16:44
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Disallowing uninstallation of patch

Hi,

What I am trying to accomplish is to first install an unremovable Small
Update patch that adds new files into a new directory. (This works)
Next is to install a removable Minor Update patch that delivers new versions
of the files that were added in the first patch as well as modifications of
existing dlls etc... (This does not)
What I am getting is the following message in the msi log file:
Disallowing uninstallation of patch {D40C91BE-8619-426B-8B11-2AEA5106A767}
because it adds new entries to table CreateFolder
Even though these files were added in the first patch as well.

The first patch is set with AllowRemoval='no' and Supersede="no" and is built
against the RTM version.

The second patch is set with AllowRemoval='yes' and Supersede=" yes" and is
also built against the RTM version.

I had tried creating a small test installer and this same sequence seems to
work.

Thanks - Tom

-----------------------------------------------------------------------------
-
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Disallowing uninstallation of patch

Tom Crozier
I had tried this but when I run the second patch the UI sequence does not get run. Any ideas why this would happen?

-----Original Message-----
From: Peter Shirtcliffe [mailto:[hidden email]]
Sent: Tuesday, February 22, 2011 11:58 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Disallowing uninstallation of patch

If you base the second patch on the RTM, itll need the new createfolder table
entries in case the first patch is never applied. You need to base the second
patch on the patched MSI (RTM + patch 1).


-----Original Message-----
From: Tom Crozier [mailto:[hidden email]]
Sent: 22 February 2011 16:44
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Disallowing uninstallation of patch

Hi,

What I am trying to accomplish is to first install an unremovable Small
Update patch that adds new files into a new directory. (This works)
Next is to install a removable Minor Update patch that delivers new versions
of the files that were added in the first patch as well as modifications of
existing dlls etc... (This does not)
What I am getting is the following message in the msi log file:
Disallowing uninstallation of patch {D40C91BE-8619-426B-8B11-2AEA5106A767}
because it adds new entries to table CreateFolder
Even though these files were added in the first patch as well.

The first patch is set with AllowRemoval='no' and Supersede="no" and is built
against the RTM version.

The second patch is set with AllowRemoval='yes' and Supersede=" yes" and is
also built against the RTM version.

I had tried creating a small test installer and this same sequence seems to
work.

Thanks - Tom

-----------------------------------------------------------------------------
-
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Disallowing uninstallation of patch

Tom Crozier
One more piece of information. When I run the second patch I get the following message for each component (1 per file) for each of the files that were added in the first patch and are still part of the second patch.

Patch Supersedence: Component 'CompPatchedContentDir' is added by a superseded patch and will become orphaned.

I looked at both the msi packages via Orca and the component exists in both the 1st and 2nd patch msi's. Why does it say they will be orphaned?

I had tried this but when I run the second patch the UI sequence does not get run. Any ideas why this would happen?

-----Original Message-----
From: Peter Shirtcliffe [mailto:[hidden email]]
Sent: Tuesday, February 22, 2011 11:58 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Disallowing uninstallation of patch

If you base the second patch on the RTM, itll need the new createfolder table
entries in case the first patch is never applied. You need to base the second
patch on the patched MSI (RTM + patch 1).


-----Original Message-----
From: Tom Crozier [mailto:[hidden email]]
Sent: 22 February 2011 16:44
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Disallowing uninstallation of patch

Hi,

What I am trying to accomplish is to first install an unremovable Small
Update patch that adds new files into a new directory. (This works)
Next is to install a removable Minor Update patch that delivers new versions
of the files that were added in the first patch as well as modifications of
existing dlls etc... (This does not)
What I am getting is the following message in the msi log file:
Disallowing uninstallation of patch {D40C91BE-8619-426B-8B11-2AEA5106A767}
because it adds new entries to table CreateFolder
Even though these files were added in the first patch as well.

The first patch is set with AllowRemoval='no' and Supersede="no" and is built
against the RTM version.

The second patch is set with AllowRemoval='yes' and Supersede=" yes" and is
also built against the RTM version.

I had tried creating a small test installer and this same sequence seems to
work.

Thanks - Tom

-----------------------------------------------------------------------------
-
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Disallowing uninstallation of patch

Tom Crozier
I still need help.

The 1st patch is created by using msimsp between the RTM and patched version is around 35MB and contains the new components and UI sequence items I added and works as expected.

The second patch is created by using the same procedure diffing the 2nd patched version (which is identical to the 1st patch version with a couple of updated files) with the 1st patched version. When inspecting the 2nd patch msi (via orca) the new components are included but the generated msp file is only 11KB. And when I try to run this patch with MSIENFORCEUPGRADECOMPONENTRULES=1 I get a 2771 error and none of the new components that were added in the 1st patch and are included in the 2nd are listed in the log file.
Below is the Patch Creation file I used to create the 2nd patch (This is almost identical to the one I used to create the first patch except the first patch is a small update and does not allow removal since it adds a new directory and files)

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

  <?define var.Manufacturer = "Acme, Inc."?>
  <?define var.PRODUCTNAME  = "Test" ?>
  <?define var.ReleaseNumber= "1.0.0" ?>

  <PatchCreation Id='{9B03790A-0EE1-4274-BCFA-1C0A72BF017D}'
    AllowMajorVersionMismatches='no'
    AllowProductCodeMismatches='no'
    CleanWorkingFolder='yes'
    WholeFilesOnly='yes'>

    <PatchInformation
      Description="Test SP1"
      Keywords='Installer,MSI,Database'
      Comments='Service Pack for 1.0.0'
      Manufacturer='$(var.Manufacturer)'
      Languages='1033'
      Compressed='yes'
      SummaryCodepage='1252'
      ShortNames="no" />

    <PatchMetadata
      Description="1st Service Pack for Test"
      DisplayName='Test SP1'
      TargetProductName='Acme $(var.PRODUCTNAME) v$(var.ReleaseNumber)'
      ManufacturerName='$(var.Manufacturer)'
      MoreInfoURL='www.acme.com'
      Classification='Service Pack'
      AllowRemoval='yes' />

    <Family
      Name='Test100'
      DiskId='3'
      MediaSrcProp='Test100Src'
      SequenceStart='2000'>

      <UpgradeImage
        Id='Patch2'
        SourceFile='C:\Official Releases\2nd\AdminVer\Test.msi'>

        <TargetImage
          Id='Patch2F1'
          Order='2'
          IgnoreMissingFiles='no'
          SourceFile='C:\Official Releases\1st\AdminVer\Test.msi' />

      </UpgradeImage>

    </Family>

    <PatchSequence
        PatchFamily="Test100" Sequence="1.0.1.1600" Supersede="yes"
        ProductCode="{1ADB8B66-7BD7-4043-8DE6-4A37BB2BE8F0}"/>

  </PatchCreation>
</Wix>


-----Original Message-----
From: Tom Crozier [mailto:[hidden email]]
Sent: Tuesday, February 22, 2011 1:03 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Disallowing uninstallation of patch

One more piece of information. When I run the second patch I get the following message for each component (1 per file) for each of the files that were added in the first patch and are still part of the second patch.

Patch Supersedence: Component 'CompPatchedContentDir' is added by a superseded patch and will become orphaned.

I looked at both the msi packages via Orca and the component exists in both the 1st and 2nd patch msi's. Why does it say they will be orphaned?

I had tried this but when I run the second patch the UI sequence does not get run. Any ideas why this would happen?

-----Original Message-----
From: Peter Shirtcliffe [mailto:[hidden email]]
Sent: Tuesday, February 22, 2011 11:58 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Disallowing uninstallation of patch

If you base the second patch on the RTM, itll need the new createfolder table
entries in case the first patch is never applied. You need to base the second
patch on the patched MSI (RTM + patch 1).


-----Original Message-----
From: Tom Crozier [mailto:[hidden email]]
Sent: 22 February 2011 16:44
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Disallowing uninstallation of patch

Hi,

What I am trying to accomplish is to first install an unremovable Small
Update patch that adds new files into a new directory. (This works)
Next is to install a removable Minor Update patch that delivers new versions
of the files that were added in the first patch as well as modifications of
existing dlls etc... (This does not)
What I am getting is the following message in the msi log file:
Disallowing uninstallation of patch {D40C91BE-8619-426B-8B11-2AEA5106A767}
because it adds new entries to table CreateFolder
Even though these files were added in the first patch as well.

The first patch is set with AllowRemoval='no' and Supersede="no" and is built
against the RTM version.

The second patch is set with AllowRemoval='yes' and Supersede=" yes" and is
also built against the RTM version.

I had tried creating a small test installer and this same sequence seems to
work.

Thanks - Tom

-----------------------------------------------------------------------------
-
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Disallowing uninstallation of patch

Peter Shirtcliffe
I'm no patch expert so I'm just guessing now. I'd focus on the component rule
violation - that might be the reason the files aren't included in patch2
(although I'd also verify the sequence start number in patch2 higher than any
file table sequence number in the RTM and patch1). Check if any component
guids change between any of the 3 MSIs - they shouldnt. Im not certain if
your patch should be set to supercede the previous one.
I hope that gives you a few things to try.

-----Original Message-----
From: Tom Crozier [mailto:[hidden email]]
Sent: 23 February 2011 03:01
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Disallowing uninstallation of patch

I still need help.

The 1st patch is created by using msimsp between the RTM and patched version
is around 35MB and contains the new components and UI sequence items I added
and works as expected.

The second patch is created by using the same procedure diffing the 2nd
patched version (which is identical to the 1st patch version with a couple of
updated files) with the 1st patched version. When inspecting the 2nd patch
msi (via orca) the new components are included but the generated msp file is
only 11KB. And when I try to run this patch with
MSIENFORCEUPGRADECOMPONENTRULES=1 I get a 2771 error and none of the new
components that were added in the 1st patch and are included in the 2nd are
listed in the log file.
Below is the Patch Creation file I used to create the 2nd patch (This is
almost identical to the one I used to create the first patch except the first
patch is a small update and does not allow removal since it adds a new
directory and files)

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

  <?define var.Manufacturer = "Acme, Inc."?>
  <?define var.PRODUCTNAME  = "Test" ?>
  <?define var.ReleaseNumber= "1.0.0" ?>

  <PatchCreation Id='{9B03790A-0EE1-4274-BCFA-1C0A72BF017D}'
    AllowMajorVersionMismatches='no'
    AllowProductCodeMismatches='no'
    CleanWorkingFolder='yes'
    WholeFilesOnly='yes'>

    <PatchInformation
      Description="Test SP1"
      Keywords='Installer,MSI,Database'
      Comments='Service Pack for 1.0.0'
      Manufacturer='$(var.Manufacturer)'
      Languages='1033'
      Compressed='yes'
      SummaryCodepage='1252'
      ShortNames="no" />

    <PatchMetadata
      Description="1st Service Pack for Test"
      DisplayName='Test SP1'
      TargetProductName='Acme $(var.PRODUCTNAME) v$(var.ReleaseNumber)'
      ManufacturerName='$(var.Manufacturer)'
      MoreInfoURL='www.acme.com'
      Classification='Service Pack'
      AllowRemoval='yes' />

    <Family
      Name='Test100'
      DiskId='3'
      MediaSrcProp='Test100Src'
      SequenceStart='2000'>

      <UpgradeImage
        Id='Patch2'
        SourceFile='C:\Official Releases\2nd\AdminVer\Test.msi'>

        <TargetImage
          Id='Patch2F1'
          Order='2'
          IgnoreMissingFiles='no'
          SourceFile='C:\Official Releases\1st\AdminVer\Test.msi' />

      </UpgradeImage>

    </Family>

    <PatchSequence
        PatchFamily="Test100" Sequence="1.0.1.1600" Supersede="yes"
        ProductCode="{1ADB8B66-7BD7-4043-8DE6-4A37BB2BE8F0}"/>

  </PatchCreation>
</Wix>


-----Original Message-----
From: Tom Crozier [mailto:[hidden email]]
Sent: Tuesday, February 22, 2011 1:03 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Disallowing uninstallation of patch

One more piece of information. When I run the second patch I get the
following message for each component (1 per file) for each of the files that
were added in the first patch and are still part of the second patch.

Patch Supersedence: Component 'CompPatchedContentDir' is added by a
superseded patch and will become orphaned.

I looked at both the msi packages via Orca and the component exists in both
the 1st and 2nd patch msi's. Why does it say they will be orphaned?

I had tried this but when I run the second patch the UI sequence does not get
run. Any ideas why this would happen?

-----Original Message-----
From: Peter Shirtcliffe [mailto:[hidden email]]
Sent: Tuesday, February 22, 2011 11:58 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Disallowing uninstallation of patch

If you base the second patch on the RTM, itll need the new createfolder table
entries in case the first patch is never applied. You need to base the second
patch on the patched MSI (RTM + patch 1).


-----Original Message-----
From: Tom Crozier [mailto:[hidden email]]
Sent: 22 February 2011 16:44
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Disallowing uninstallation of patch

Hi,

What I am trying to accomplish is to first install an unremovable Small
Update patch that adds new files into a new directory. (This works)
Next is to install a removable Minor Update patch that delivers new versions
of the files that were added in the first patch as well as modifications of
existing dlls etc... (This does not)
What I am getting is the following message in the msi log file:
Disallowing uninstallation of patch {D40C91BE-8619-426B-8B11-2AEA5106A767}
because it adds new entries to table CreateFolder
Even though these files were added in the first patch as well.

The first patch is set with AllowRemoval='no' and Supersede="no" and is built
against the RTM version.

The second patch is set with AllowRemoval='yes' and Supersede=" yes" and is
also built against the RTM version.

I had tried creating a small test installer and this same sequence seems to
work.

Thanks - Tom

-----------------------------------------------------------------------------
-
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires
that you delete it without acting upon or copying any of its contents, and we
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
7DY, UK.


-----------------------------------------------------------------------------
-
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data

generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

-----------------------------------------------------------------------------
-
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data

generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

-----------------------------------------------------------------------------
-
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data

generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

-----------------------------------------------------------------------------
-
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data

generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Disallowing uninstallation of patch

Tom Crozier
Thanks for the help but I still can't seem to find out why the components added in the 1st patch (and should still be in the second) are not there in the patch.

Details:
        The original installer has 454 files. Version 1.0.0.1372

1st Patch: Small Update (QFE) -
        Added 1 new directory and 6 new files into the directory. Each one is in its own component so 1 have a total of 7 new components.
        The start sequence number is 2000 just to be safe.
        Allow removal = false
        Supersede = (tried both true and false)
        Sequence="1.0.0.1500"

2nd Patch: Minor Update -
        Currently only modified 1 of the new files that was added in the 1st patch.
        The start sequence number is 3000 just to be safe.
        Allow removal = true
        Supersede = true
        Sequence="1.0.1.1600"

I use the same patch family for both patch installers, and use the ProductCode from the RTM version.

The msimsp log file from the 2nd patch shows the modified file being picked up and no other errors.

Using Orca I verified that the Component Id's between the 1st and 2nd installers match.

So how do I go about determining why I get a 2771 error? The Component Id it complains about is the id of the directory that was added in the 1st patch.

Thanks - Tom

-----Original Message-----
From: Peter Shirtcliffe [mailto:[hidden email]]
Sent: Wednesday, February 23, 2011 4:46 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Disallowing uninstallation of patch

I'm no patch expert so I'm just guessing now. I'd focus on the component rule
violation - that might be the reason the files aren't included in patch2
(although I'd also verify the sequence start number in patch2 higher than any
file table sequence number in the RTM and patch1). Check if any component
guids change between any of the 3 MSIs - they shouldnt. Im not certain if
your patch should be set to supercede the previous one.
I hope that gives you a few things to try.

-----Original Message-----
From: Tom Crozier [mailto:[hidden email]]
Sent: 23 February 2011 03:01
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Disallowing uninstallation of patch

I still need help.

The 1st patch is created by using msimsp between the RTM and patched version
is around 35MB and contains the new components and UI sequence items I added
and works as expected.

The second patch is created by using the same procedure diffing the 2nd
patched version (which is identical to the 1st patch version with a couple of
updated files) with the 1st patched version. When inspecting the 2nd patch
msi (via orca) the new components are included but the generated msp file is
only 11KB. And when I try to run this patch with
MSIENFORCEUPGRADECOMPONENTRULES=1 I get a 2771 error and none of the new
components that were added in the 1st patch and are included in the 2nd are
listed in the log file.
Below is the Patch Creation file I used to create the 2nd patch (This is
almost identical to the one I used to create the first patch except the first
patch is a small update and does not allow removal since it adds a new
directory and files)

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

  <?define var.Manufacturer = "Acme, Inc."?>
  <?define var.PRODUCTNAME  = "Test" ?>
  <?define var.ReleaseNumber= "1.0.0" ?>

  <PatchCreation Id='{9B03790A-0EE1-4274-BCFA-1C0A72BF017D}'
    AllowMajorVersionMismatches='no'
    AllowProductCodeMismatches='no'
    CleanWorkingFolder='yes'
    WholeFilesOnly='yes'>

    <PatchInformation
      Description="Test SP1"
      Keywords='Installer,MSI,Database'
      Comments='Service Pack for 1.0.0'
      Manufacturer='$(var.Manufacturer)'
      Languages='1033'
      Compressed='yes'
      SummaryCodepage='1252'
      ShortNames="no" />

    <PatchMetadata
      Description="1st Service Pack for Test"
      DisplayName='Test SP1'
      TargetProductName='Acme $(var.PRODUCTNAME) v$(var.ReleaseNumber)'
      ManufacturerName='$(var.Manufacturer)'
      MoreInfoURL='www.acme.com'
      Classification='Service Pack'
      AllowRemoval='yes' />

    <Family
      Name='Test100'
      DiskId='3'
      MediaSrcProp='Test100Src'
      SequenceStart='2000'>

      <UpgradeImage
        Id='Patch2'
        SourceFile='C:\Official Releases\2nd\AdminVer\Test.msi'>

        <TargetImage
          Id='Patch2F1'
          Order='2'
          IgnoreMissingFiles='no'
          SourceFile='C:\Official Releases\1st\AdminVer\Test.msi' />

      </UpgradeImage>

    </Family>

    <PatchSequence
        PatchFamily="Test100" Sequence="1.0.1.1600" Supersede="yes"
        ProductCode="{1ADB8B66-7BD7-4043-8DE6-4A37BB2BE8F0}"/>

  </PatchCreation>
</Wix>


-----Original Message-----
From: Tom Crozier [mailto:[hidden email]]
Sent: Tuesday, February 22, 2011 1:03 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Disallowing uninstallation of patch

One more piece of information. When I run the second patch I get the
following message for each component (1 per file) for each of the files that
were added in the first patch and are still part of the second patch.

Patch Supersedence: Component 'CompPatchedContentDir' is added by a
superseded patch and will become orphaned.

I looked at both the msi packages via Orca and the component exists in both
the 1st and 2nd patch msi's. Why does it say they will be orphaned?

I had tried this but when I run the second patch the UI sequence does not get
run. Any ideas why this would happen?

-----Original Message-----
From: Peter Shirtcliffe [mailto:[hidden email]]
Sent: Tuesday, February 22, 2011 11:58 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Disallowing uninstallation of patch

If you base the second patch on the RTM, itll need the new createfolder table
entries in case the first patch is never applied. You need to base the second
patch on the patched MSI (RTM + patch 1).


-----Original Message-----
From: Tom Crozier [mailto:[hidden email]]
Sent: 22 February 2011 16:44
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Disallowing uninstallation of patch

Hi,

What I am trying to accomplish is to first install an unremovable Small
Update patch that adds new files into a new directory. (This works)
Next is to install a removable Minor Update patch that delivers new versions
of the files that were added in the first patch as well as modifications of
existing dlls etc... (This does not)
What I am getting is the following message in the msi log file:
Disallowing uninstallation of patch {D40C91BE-8619-426B-8B11-2AEA5106A767}
because it adds new entries to table CreateFolder
Even though these files were added in the first patch as well.

The first patch is set with AllowRemoval='no' and Supersede="no" and is built
against the RTM version.

The second patch is set with AllowRemoval='yes' and Supersede=" yes" and is
also built against the RTM version.

I had tried creating a small test installer and this same sequence seems to
work.

Thanks - Tom

-----------------------------------------------------------------------------
-
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires
that you delete it without acting upon or copying any of its contents, and we
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
7DY, UK.


-----------------------------------------------------------------------------
-
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data

generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

-----------------------------------------------------------------------------
-
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data

generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

-----------------------------------------------------------------------------
-
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data

generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

-----------------------------------------------------------------------------
-
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data

generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Loading...