Still on the idea that Preselected might be set and therefore the Condition
table being ignored: an example would be if you had a Publish event
Addlocal somewhere that would cause Preselected to be set.  Similarly an
explicit ADDLOCAL or COMPADDLOCAL on the command line would do this.

The other thing to look at in the log is what it says about the feature
when you actually do an install. Does the feature get installed? It's
sometimes possible to get a mismatch between what's displayed and what's
installed depending on any customization in the UI.

This is also assuming that the registry search is working correctly, and
there's not some mismatch going on between 64/32 bit and creating/searching
for registry entries given that creating and searching have bitness
attributes. However you seem to have that covered in the log, as long as
you're looking in the right places. A log that does a major upgrade will
have multiple AppSearches, one for the old product being installed and
another for the incoming product, the order depending on the sequencing of
removeExistingProducts. Make sure the HAVELS2208 search you're seeing is
the appropriate one!

Phil Wilson


On Fri, Dec 13, 2013 at 1:39 PM, Dave Williamson, Clear Sky Software <
d...@clearskysoftware.com> wrote:

> Phil,
>
> No mention of Preselected in the log.  However, I would have expected to
> see
> Installed in the log too and it wasn't.  The MSI was run with
>
> Msiexec /l myinstaller.msi /l*vx install.log
>
> The statement "if there any explicit action to force install of another
> feature or component then the Condition table will not be used".  I'm not
> understanding this.  What would be an example of an explicit action that
> forces install?  We might be doing something and not even know it or the
> WiX
> 2 wxs that we started with needs some more changes in WiX 3 world.
>
> dave williamson
>
>
>
>
> -----Original Message-----
> From: Phil Wilson [mailto:phildgwil...@gmail.com]
> Sent: Friday, December 13, 2013 12:24 PM
> To: General discussion about the WiX toolset.
> Subject: Re: [WiX-users] Condition logic
>
> It might be an optimization of sorts - if there is no
> migratefeaturestate=yes in any upgrade specification then there is no need
> for that action to be scheduled anywhere.  It seemed to me that migrating
> feature states seems to be the behavior you want from an upgrade based on
> the scenarios you supplied. Overall, the gist of what I was trying to say
> is that if there any explicit action to force install of another feature or
> component then the Condition table will not be used. In other words, since
> the condition logic seems correct the main reason for ignoring the
> Condition table is that Preselected may be set - you could check for this
> is the log.
>
> Phil Wilson
>
>
> On Thu, Dec 12, 2013 at 2:55 PM, Dave Williamson, Clear Sky Software <
> d...@clearskysoftware.com> wrote:
>
> > Phil,
> >
> > Not sure if you have hit on something here.  Based on some reading on the
> > "MajorUpgrade" element and various readings about subtopics we ran across
> > something odd.  According to Orca there is no MigrateFeatureStates action
> > in
> > the InstallExecuteSequence table of the MSIs built in WiX 3.8.1128.0.  We
> > are now wondering if the WiX 2.0.5805.0 constructs regarding upgrades,
> > while
> > they compile and link, don't work in 3.8.1128.0 since similar compile and
> > link in WiX 2.0.5805.0 do have a MigrateFeatureStates action.
> >
> > dave williamson
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: Dave Williamson, Clear Sky Software [mailto:
> > d...@clearskysoftware.com]
> >
> > Sent: Thursday, December 12, 2013 4:11 PM
> > To: 'General discussion about the WiX toolset.'
> > Subject: RE: [WiX-users] Condition logic
> >
> >
> > Ah. I see there is a "MajorUpgrade" element in WiX now.  That is not what
> I
> > meant to convey when stating "major upgrade".  A new something to check
> out
> > though.
> >
> > In this case we are using the following:
> >
> >       <Property Id="NEWERPRODUCTFOUND" Secure="yes" />
> >       <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
> >       <Upgrade Id="GUID-HERE">
> >         <UpgradeVersion Minimum="3.0.5064" Property="NEWERPRODUCTFOUND"
> > OnlyDetect="yes" IncludeMinimum="yes" />
> >         <UpgradeVersion Minimum="3.0.0" Maximum="3.0.5064"
> > Property="PREVIOUSVERSIONSINSTALLED" IncludeMaximum="no" />
> >       </Upgrade>
> >
> >
> >
> > dave williamson
> >
> >
> >
> >
> > -----Original Message-----
> > From: Phil Wilson [mailto:phildgwil...@gmail.com]
> > Sent: Thursday, December 12, 2013 11:59 AM
> > To: General discussion about the WiX toolset.
> > Subject: Re: [WiX-users] Condition logic
> >
> > It's possible that the major upgrade is migrating feature states. This
> does
> > not seem to explain the issue, although migrating feature states seems to
> > be what you want to happen, and that wouldn't need a registry search to
> > detect previously installed features. However, migrating feature states
> is
> > one of the things that prevents the Condition table from being used. So
> if
> > there is anything in your install that says that a component or feature
> > needs to be installed then the Condition table won't be used.
> >
> > http://msdn.microsoft.com/en-us/library/aa368014(v=vs.85).aspx
> >
> > and see Preselected.
> >
> > Phil Wilson
> >
> >
> > On Thu, Dec 12, 2013 at 5:51 AM, Dave Williamson, Clear Sky Software <
> > d...@clearskysoftware.com> wrote:
> >
> > > Nicolás,
> > >
> > > Good point.  In all three scenarios the feature comes up selected to
> > > install.
> > >
> > >
> > > For Scenario 1 this is expected. (new install)
> > >
> > > For Scenario 2 this is unexpected. (major upgrade install where feature
> > > was NOT previously installed)
> > >
> > > For Scenario 3 this is expected.  (major upgrade install where feature
> > was
> > > previously installed)
> > >
> > >
> > > Since the Property HAVELS2208 is null in scenario 2, I tried an
> > > alternative of
> > >
> > > <Property Id='HAVELS2208' Value='0'>
> > >
> > > And also made the Condition evaluation more explicit
> > >
> > > <Condition Level='1'><![CDATA[(Installed AND HAVELS2208=1) OR (NOT
> > > Installed)]]></Condition>
> > >
> > > Still no dice.
> > >
> > >
> > > I'm missing the obvious.
> > >
> > >
> > > For scenario 2 the log file shows
> > >
> > > AppSearch: Property: HAVELS2208, Signature: registrysearchHAVELS2208
> > > MSI (c) (64:28) [08:43:46:321]: Note: 1: 2262 2: Signature 3:
> -2147287038
> > > MSI (c) (64:28) [08:43:46:321]: Note: 1: 1402 2:
> > > HKEY_LOCAL_MACHINE\Software\ABC\DEF\LS2208 3: 2
> > >
> > >
> > > Using Orca the MSI clearly has a condition of
> > >
> > > LS2208Feature
> > > 1
> > > (Installed AND HAVELS2208=1) OR (NOT Installed)
> > >
> > > I remain baffled.
> > >
> > > dave williamson
> > >
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Nicolás Alvarez [mailto:nicolas.alva...@gmail.com]
> > > Sent: Wednesday, December 11, 2013 5:07 PM
> > > To: General discussion about the WiX toolset.
> > > Subject: Re: [WiX-users] Condition logic
> > >
> > > 2013/12/11 Dave Williamson, Clear Sky Software <
> > d...@clearskysoftware.com
> > > >:
> > > > My brain is twisted and can't seem to get the condition logic right.
> > > >
> > > > 1.       If the Product has not been installed on the machine then
> the
> > > > condition should set Level to 1.
> > > >
> > > > 2.       If the Product has been installed but the HAVELS2208
> registry
> > > key
> > > > doesn't exist then the condition should NOT set Level to 1.
> > > >
> > > > 3.       If the Product has been installed and the HAVELS2208
> registry
> > > key
> > > > does exist then the condition should set Level to 1.
> > > >
> > > > For some reason I can't seem to create the right logic in the
> condition
> > > to
> > > > evaluate as expected for the above 3 scenarios.
> > > >
> > > > Can someone show me what I'm doing wrong?
> > >
> > > I don't see anything obviously wrong with your code; but you only
> > > described the expected behavior. What is the wrong actual behavior
> > > you're seeing?
> > >
> > > --
> > > Nicolás
> > >
> > >
> > >
> >
> >
>
> ----------------------------------------------------------------------------
> > --
> > > Rapidly troubleshoot problems before they affect your business. Most IT
> > > organizations don't have a clear picture of how application performance
> > > affects their revenue. With AppDynamics, you get 100% visibility into
> > your
> > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics
> > > Pro!
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> > >
> > >
> > >
> > >
> >
> >
>
> ----------------------------------------------------------------------------
> > --
> > > Rapidly troubleshoot problems before they affect your business. Most IT
> > > organizations don't have a clear picture of how application performance
> > > affects their revenue. With AppDynamics, you get 100% visibility into
> > your
> > > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics
> > > Pro!
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> >
> >
>
> ----------------------------------------------------------------------------
> > --
> > Rapidly troubleshoot problems before they affect your business. Most IT
> > organizations don't have a clear picture of how application performance
> > affects their revenue. With AppDynamics, you get 100% visibility into
> your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> > Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> >
> >
> >
>
> ----------------------------------------------------------------------------
> --
> > Rapidly troubleshoot problems before they affect your business. Most IT
> > organizations don't have a clear picture of how application performance
> > affects their revenue. With AppDynamics, you get 100% visibility into
> your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> > Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
> ----------------------------------------------------------------------------
> --
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to