[wix-users] WiX Bundle upgrade or install new to run side by side

Harinatha Narisetty harinatha.narisetty at us.abb.com
Tue Jan 31 14:16:31 PST 2017


I think I need to correct little bit in my original email.
We release 1.0.0, 1.1.0, 2.0.0, 2.1.0 etc...

It is up to user whether he want to upgrade the existing version or just install side by side. That's it.  we don't do any separate upgrades.

With this, Can I achieve everything in one bundle?

Thanks
Hari

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Hoover, Jacob
Sent: Tuesday, January 31, 2017 5:11 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] WiX Bundle upgrade or install new to run side by side

I don't think you can achieve this with a single MSI, in the manner your describing.  I think the most robust solution would be to have a unique install folder and upgrade code for each upgrade you release(you can still service each upgrade with patches).  Then your problem becomes, if I detect an older version, do I want to merge the configuration from it, as well should I uninstall the old version after upgrading.

The first problem could be solved via a property driven CA in the MSI (assuming the bundle is detecting the old version and allowing the user to choose between a clean install and an upgrade), where you pass the user choice from the BA to the MSI via a Variable and a MsiProperty.

The second problem can be solved again with the bundle detecting and optionally prompting for removal of the old version, in which you want to look at the RelatedBundle* callbacks and element.  This will allow you to relate your newer bundles with all of the prior bundles, and use the callbacks to determine if you only want to detect the related bundle or have it plan to remove it.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Harinatha Narisetty
Sent: Tuesday, January 31, 2017 3:55 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] WiX Bundle upgrade or install new to run side by side

Hi,
I have a wix bundle with custom bootstrapper (and several screens) that installs a MSI package. For upgrades, I want to provide an option for user to choose either update the existing version (merge config files) or install as new version. I am not sure how to achieve this. Here are my bundle and prouct wxs files.


Bundle Name='My company software $(var.ShortVersionNumber)'
      Manufacturer='my company(r)'
      Version='$(var.FullVersionNumber)'
      UpgradeCode='D414EA8E-A3BF-44E1-B362-91E34074B55B'
      Compressed='yes'
      Copyright='(c) 2015 mycomapny(r) - All rights reserved'
      AboutUrl='http://www.mycompany.com'
      HelpUrl='http://www.mycompany.com/support'
      IconSourceFile='..\..\abc.ico'
      SplashScreenSourceFile='Splash.bmp'>

all other nodes...
<MsiPackage Id='application' SourceFile='..\Output\en-us\Client.msi'
              DisplayInternalUI='no' Visible='no' Permanent='no' Compressed='yes' Vital='yes'>




The Product.wxs file is

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

  <Product Id='*'

       Name='My Company software $(var.ShortVersionNumber)'

       Manufacturer='MyCompany(r)'

       Version='$(var.FullVersionNumber)'

       Language='1033'

       Codepage='65000'

       UpgradeCode='0D126835-8687-4A37-ADB1-EAF28724FFE4'>



I have all the events subscribed in my c# code.

Please give me some direction on how to achieve this.



Thanks
Hari

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list