[wix-users] Bundle update states

Roni Fuchs ronif at microsoft.com
Tue Sep 15 04:54:49 PDT 2015


Thanks,
I'll try these.

You were very helpful :)

________________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Patterson, Brent <bcpatterson at xactware.com>
Sent: Monday, September 14, 2015 7:01 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Bundle update states

1. I use MSP to just add patches.  1B - If you mean running the bundle patch, it doesn't uninstall the main bundle, it only appends itself to the "View Upgrades" area of "Programs and Features" due to the "Patch" action.

2. By upgrading, if it uninstalls the previous bundle, it uses "None" display I think, and uninstalling bundle by msiexec silently uses "Embedded".  Or the other way, I can't remember.  You can experiment by adding dialog box that pops up while uninstalling and tells you which Display property it has (that's what I did)

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Roni Fuchs
Sent: Saturday, September 12, 2015 1:38 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Bundle update states

Hi,
Thanks for the detailed answer,

1. so in your patch BA you have the newer msi that replaces the old one or did you use msp/msu to just add patches?
1B. Does running the related bundle with uninstall due to an upgrade tries to uninstall the msi-s for that bundle as well?

2. I know how to detect the silent uninstall, what i am not sure is how to differentiate the case of manual silent uninstall with the one that's caused by an upgrade - is there a way to differentiate?

This is important because I want to minor update a previously installed msi, and it was installed using burn - and i want my BA's version and my msi version to be the same - so I want to use a higher version for the BA which triggers this scenario - and I don't want to uninstall all inner msi-s.


________________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Patterson, Brent <bcpatterson at xactware.com>
Sent: Friday, September 11, 2015 6:34 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Bundle update states

1. I ran into this issue as well.  I have the main BA, and the patcher BA.  In the patcher one, I have <RelatedBundle Id="(GUID of related bundle}" Action="Patch"/> with the related bundle being declared in main BA like this: <RelatedBundle Id="(Same GUID as patcher's RelatedBundle)" Action="Detect"/>.  I also made sure the versioning isn't a major upgrade (don't replace the first number in the 4 numbers).  What this does is tell the patcher to look for a related bundle, if it exists, it patches that, not replace it.  The main BA sets up the GUID as a reference point for the patcher.  I have the Bundle properties of both basically the same, except for Upgrade Code and Version, which is different.  When you install the patch, it'd get listed under "View Installed Updates", and retain the main BA in the "Uninstall Programs".  The downside to this is that the main BA's version never changes in the list, even though patch was applied.  But the upside is that if you uninstall the
  main BA, it will uninstall the patches related to it as well.

2. You can know if it's being uninstalled silently by checking in the class, that inherits from BootstrapperApplication, "Command.Action", it should be set to "Uninstall", and "Command.Display", it'd be set to either "Display.None" or "Display.Embedded".  If both of those are true, then it's being uninstalled silently, and you shouldn't show any dialogs from the BA.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Roni Fuchs
Sent: Friday, September 11, 2015 1:15 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Bundle update states

Hi everyone,

When installing a new bundle with a higher version than the previously installed bundle, The old cached bundle is run to silent uninstall (and the state that's written is MajorUpgrade).

My question is:
-          Is there a way to only MinorUpdate the bundle? As in to only replace the cached file?
-          And how can I know in my custom BA that I am uninstalling silently now because of a MajorUpgrade of newer bundle?

Thanks,

Roni (Aron) Fuchs

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c005bed5d5c4a4e6ce62408d2babe7ac9%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=gAfOqr%2bcrU4XjU8e73jEsSfDOKZ%2btQPJ8ZwmOsnFXHc%3d

________________________________

Xactware's opt-in mailing list allows you to receive Xactware News that is of interest to you. Visit https://na01.safelinks.protection.outlook.com/?url=my.xactware.com&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c005bed5d5c4a4e6ce62408d2babe7ac9%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=0ekyo6tnGH%2fnxkngJ0E2zrGHHUgv4wLD2tsVH4%2bo6mc%3d today to join or to update your email preferences!

________________________________

This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error.


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c005bed5d5c4a4e6ce62408d2babe7ac9%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=gAfOqr%2bcrU4XjU8e73jEsSfDOKZ%2btQPJ8ZwmOsnFXHc%3d

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c4ba7068a80f4411d3dcb08d2bd1de256%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=01dBoaqJVYuCABBFIltYxmNJkzKKYFbX%2b%2bo4qEUBmVM%3d


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c4ba7068a80f4411d3dcb08d2bd1de256%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=01dBoaqJVYuCABBFIltYxmNJkzKKYFbX%2b%2bo4qEUBmVM%3d


More information about the wix-users mailing list