[wix-users] Bootstrapper not detecting already installed msi package

Phill Hogland phill.hogland at rimage.com
Fri Sep 9 05:39:55 PDT 2016


The key idea is to follow the Major Upgrade rules for you MSI (and as the idea is generally applied to a Bundle although a bundle is not an MSI).


So yes, use Product/@Id='*' in the MSI.  (The Bundle's similarity is a hidden implementation detail of the WiX build system, but is also equivalent to using '*')


Increment your versions.  For the MSI in the only the first three dot.quads are considered, but for the Bundle any portion of the version may be incremented.  There are many different approaches you could take to automate this.  Look at MSBuild Extensions or write an MSBuild ITask,  But the conservative approach is to make sure that you increment you version of each project (Bundle or MSI) every time you do a build.


Do not change you Upgrade Code between builds if you want the new build to upgrade an older build.




________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Andres Armengol <andres.armengol at pantec.com>
Sent: Friday, September 9, 2016 4:48:11 AM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Bootstrapper not detecting already installed msi package

Thanks but changing the product's Id does not change that effect.

I wonder what does the bootstrapper to detect the bundle, must be a kind of Id...

-----Ursprüngliche Nachricht-----
Von: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] Im Auftrag von Farrukh Waheed
Gesendet: Freitag, 9. September 2016 11:18
An: WiX Toolset Users Mailing List
Betreff: Re: [wix-users] Bootstrapper not detecting already installed msi package

In your MSI's Product Id, try using "*" instead of static Guid..

On 9 September 2016 at 01:56, Andres Armengol <andres.armengol at pantec.com>
wrote:

> I have the following attributes defined:
>
> Bundle:
>     Name='Foobar 1.0'
>     Version='1.0.0'
>     Manufacturer='Acme Ltd.'
>     UpgradeCode="{005312BC-FF1E-46E9-8C60-9251C9E355B3}"
>
> Product:
>     Name='Foobar 1.0'
>     Id='{F32B8FF0-623A-4E52-8AB1-B4984D166DFB}'
>     UpgradeCode='{2421083E-A8D7-43C0-A862-D40BF0BDF92C}'
>     Language='1033'
>     Version='1.0.0'
>     Manufacturer='Acme Ltd.'
>
> Package:
>       Id='*'
>       Keywords='Installer'
>       Description="Acme's Foobar 1.0 Installer"
>       Comments='Foobar is a registered trademark of Acme Ltd.'
>       Manufacturer='Acme Ltd.'
>       InstallerVersion='100'
>       Languages='1033'
>       Compressed='yes'
>       InstallScope='perMachine'
>
> Do I have to define the codes differently?
>
> Thanks
>
> -----Ursprüngliche Nachricht-----
> Von: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] Im
> Auftrag von Rob Mensching
> Gesendet: Freitag, 9. September 2016 10:04
> An: WiX Toolset Users Mailing List
> Betreff: Re: [wix-users] Bootstrapper not detecting already installed
> msi package
>
> Rebuilding something (usually) makes it different. Look at your
> BundleCode, ProductCode and PackageCode.
>
> _____________________________________________________________
>  Short replies here. Complete answers over there:
> http://www.firegiant.com/
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
> Behalf Of Andres Armengol
> Sent: Friday, September 9, 2016 12:46 AM
> To: wix-users at lists.wixtoolset.org
> Subject: [wix-users] Bootstrapper not detecting already installed msi
> package
>
> Hi everyone
>
> I'm trying out the wix tool set and working on a small sample that
> includes bootstrapper bundle which installs the samplefirst msi from
> tutorial.
> On my development pc I have visual studio 2013 and the wix tools v3.10.
>
> The problem I have is that the bootstrapper does not detect that the
> msi is already installed on the test system when I rebuild the
> bootstrapper, even though I haven't done any changes in the source
> code. This happens for instance when I check out the sources and build them.
> Otherwise if I use the same bootstrapper without rebuilding it will
> detect the product and show the options Repair / Uninstall.
> If I try the msi, rebuilt or not, it always detects the product as
> installed and it won't allow the installation.
>
> As the result when I reinstall the bootstrapper twice I get two
> applications with the same name on the test system. I see the two
> products installed in add/remove programs tool.
>
> Source code is attached.
>
> Has anyone an Idea what I can do to solve the problem?
>
> Best regards
> Andi
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>

____________________________________________________________________
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