[wix-users] Replacing old cached bundle.exe

Roni Fuchs ronif at microsoft.com
Thu Sep 17 14:41:53 PDT 2015


I created custom UI, and if I have a newer bundle (same UpgradeCode, higher version), the old (cached) bundle is called with the flags -silent -uninstall and since my custom BA (WPF) can't handle these flags (at the old BA) the old UI is opened - and that's what I'm trying to avoid..

If there was only some way to change the cached BA with the newer one, that would solve everything, but when I try manually copy-pasting the new BA to "C:\Program Data\ Packages Cache\{GUID}\MyBa.exe" bad things happen. The Upgrade succeeded but the reg keys are messed up and strange things happen like - duplicate bundle entry at programs and features and not being to uninstall (later)..

I also tried looking at all the reg key values but I can't make sense of them or where and how exactly are the dependencies being saved (I assume I brake something related to those dependencies because I can't seem to be able to uninstall later..)

________________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Hoover, Jacob <Jacob.Hoover at greenheck.com>
Sent: Friday, September 18, 2015 12:35 AM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Replacing old cached bundle.exe

I wonder why you couldn't just install a second bundle, using the same MSI (and prerequisites) as the first, but include your patch with it.  I think burn would be smart enough to not remove your old MSI, yet still remove your old bundle.  What part of the removal of your existing bundle doesn't support being silently removed?  Have you tried it?

I use WixSTDBA, and anytime I install a new bundle, the old one is removed without its UI ever showing.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Roni Fuchs
Sent: Thursday, September 17, 2015 3:43 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Replacing old cached bundle.exe

Hi Rob,

So creating a patch bundle that upgrades the existing bundle isn't possible? What's a patch bundle anyway?


The problem is that my bundle installs an msi with some prerequisites (and custom WPF UI), and now I want to do a minor update to the msi but burn only supports major upgrades. Is there a way around that?

Thanks,
Roni

________________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Rob Mensching <rob at firegiant.com>
Sent: Thursday, September 17, 2015 11:24 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Replacing old cached bundle.exe

Given the initial mistake, there isn't a good solution. Anything you do will be a very large undocumented hack.

I would recommend blocking and asking users to manually remove the old product.

The cure could easily end up being worse than the disease.

_____________________________________________________________
 Short replies here. Complete answers over there: https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7cd324c6a1c60445316afd08d2bf9dfe44%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=pq0W9hb%2fyGqgrIbPacvTrmP8Aj64J5Wav5iGZkdNPFs%3d


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Roni Fuchs
Sent: Thursday, September 17, 2015 1:10 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Replacing old cached bundle.exe

Hi Farrukh and Jacob,

I need to do this because I want to upgrade computers with my software that has the old installer cached (that doesn't support upgrade/silent uninstall) and I don't want them to uninstall the old version first.

I didn't write a custom action that prevents uninstalling, uninstalling is possible (in a non silent way), I just don't want to ask them to do that.

My new installer does support upgrading and silent installation, I just don't know how to "upgrade" the old cached installer.

Why is swapping the bundle not possible?
How can I create a patch bundle that upgrades the existing bundle? What's the way to do that?

Thanks in advance!!
Roni

____________________________________________________________________
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%7cd324c6a1c60445316afd08d2bf9dfe44%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=pq0W9hb%2fyGqgrIbPacvTrmP8Aj64J5Wav5iGZkdNPFs%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%7cd324c6a1c60445316afd08d2bf9dfe44%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=pq0W9hb%2fyGqgrIbPacvTrmP8Aj64J5Wav5iGZkdNPFs%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%7cdf670afca7f443861d6808d2bfa7ee96%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=Q0zmCcb4tinwRVTjjkFroQaB5LzvlYL8wOOE9JIg9xo%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%7cdf670afca7f443861d6808d2bfa7ee96%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=Q0zmCcb4tinwRVTjjkFroQaB5LzvlYL8wOOE9JIg9xo%3d


More information about the wix-users mailing list