To wrap this up...it was pointed out to me that my problem was that I had the condition and the test in separate fragments and either needed to combine them or use a PropertyRef to pull it in. I just combined them as it seemed less likely for me to mess up. Thank you Chad and Pally for your assistance. Scott
> Date: Tue, 2 Sep 2008 11:06:27 +0100> From: [EMAIL PROTECTED]> To: > wix-users@lists.sourceforge.net> Subject: Re: [WiX-users] Problem with > conditional install> > In essence yes but I know my code works as I use it in > a product we> released last week & if he's using WiXUI_Mondo (or a custom UI > that sets> the InstallLevel >= 100), your code would cause that feature to > always> be installed regardless of the condition if a user selects Complete > in> the SetupTypeDlg for the reason(s) I described.> > > Palbinder Sandher > > Software Deployment and IT Administrator > > T: +44 (0) 141 945 8500 > F: +44 > (0) 141 945 8501 > http://www.iesve.com > > **Design, Simulate + Innovate > with the <Virtual Environment>**> > Integrated Environmental Solutions > Limited. Registered in Scotland No.> SC151456 > Registered Office - Helix > Building, West Of Scotland Science Park,> Glasgow G20 0SP> > Email > Disclaimer> > > -----Original Message-----> From: [EMAIL PROTECTED]> [mailt o:[EMAIL PROTECTED] On Behalf Of Chad Miles> Sent: 01 September 2008 18:18> To: General discussion for Windows Installer XML toolset.> Subject: Re: [WiX-users] Problem with conditional install> > You basically just offered up the inverse of what I suggested.> > On Mon, Sep 1, 2008 at 5:41 AM, Pally Sandher> <[EMAIL PROTECTED]>wrote:> > > Modify your Feature as follows:> >> > <Feature Id="SH4" Title="SH4" Description=" SH4" Level="9999"> > AllowAdvertise="no" Display="hidden">> > <ComponentGroupRef Id="SH4_components"/> <Condition Level="1">> > <![CDATA[SH4EXISTS]]>> > </Condition>> > </Feature>> >> > That should work as you expect it to.> >> > ComponentGroupRef's are no different to ComponentRef's inside Feature > > tags. Your use of Fragments is also fine.> >> > The problem is that your Condition was setting the Level of the > > Feature to 0 when the condition evaluated to true which as far a I > > know would never install your feature regardles s of what the > > InstallLevel is set to. Setting it to 1 will ensure it installs when > > the directory exists as the Windows Installer will install all > > Features which have a Level equal to or lower than the current > > InstallLevel. In WiXUI_Mondo, Typical sets InstallLevel to 3, Complete> > > sets InstallLevel = 1000 IIRC & it defaults to 1 in everything else if> > > you don't use a SetInstallLevel ControlEvent as WiXUI_Mondo does on > > it's SetupTypeDlg (see > > http://msdn.microsoft.com/en-us/library/aa369536(VS.85).aspx & > > http://msdn.microsoft.com/en-us/library/aa371688(VS.85).aspx). I set > > Features to Level "9999" as it's suitably high to not be installed by > > accident but as one of those MSDN links says you can set it as high as> > 32767 if you wish although unless you have written your own UI you > > would only really need to set it to 1001 at most since the Complete > > option in WiXUI_Mondo is the only stock UI which modifies the > > InstallLevel to the best of my knowledge.> >> > Let us know if this fixes your issue Scott.> >> > Palbinder Sandher> > Software Deployment and IT Administrator> >> > T: +44 (0) 141 945 8500> > F: +44 (0) 141 945 8501> > http://www.iesve.com> >> > **Design, Simulate + Innovate with the <Virtual Environment>**> >> > Integrated Environmental Solutions Limited. Registered in Scotland No.> > SC151456> > Registered Office - Helix Building, West Of Scotland Science Park, > > Glasgow G20 0SP> >> > Email Disclaimer> >> >> >> >> > -----Original Message-----> > From: [EMAIL PROTECTED]> > [mailto:[EMAIL PROTECTED] On Behalf Of scott b > > harris> > Sent: 30 August 2008 02:36> > To: General discussion for Windows Installer XML toolset.> > Subject: Re: [WiX-users] Problem with conditional install> >> > Thanks for the ideas but unfortunately, I can't seem to get them to > > work. With the line suggested below (and several variations of it), > > the files will n ot install regardless of if the> '[OSINSTALLDIR]\PUBLIC\SH4'> > is there or not.> >> > I've used /l*v with msiexec but there doesn't seem to be any logging > > that shows the condition statement being tested. Is there another way> > > of seeing this?> >> > What does level="101" indicate about the Feature? Could it indicate > > that I should be putting he condition at another level other than > > Feature?> >> > Could the fact that the feature is pointing to a ComponentGroupRef > > mean that I need to do something different with my condition? What > > about a fragment?> >> > I may be grasping at straws but those are the main differences between> > > the sample code that works and what the code I'm trying to integrate > > this into.> >> > Again, thanks for any help y'all can provide.> >> > Scott> >> > > Date: Fri, 29 Aug 2008 12:51:09 -0400> From: [EMAIL PROTECTED]>> To:> > wix-users@lists.sourceforge.net> Subject: Re: [WiX-users] Problem with> > > conditional install> > Cha nge 101 to just 1.> > And I think on the the> > > condition tag might need to be parsed...> > <Condition > > Level="100"><![CDATA[NOT SH4EXISTS <> ""]]></Condition>> > On Fri, Aug> > > 29, 2008 at 12:39 PM, scott b harris <[EMAIL PROTECTED]> wrote:> > > > > Howdy,> >> > I'm having an issue getting a condition to work. I'm new > > to this whole> > thing so hopefully I'm just missing something simple.> > > I'm trying to get> > files installed only if there is an SH4 folder. > > With the following, SH4> > will not install regardless of if the > > folder exists. If I remove the> > condition the files will be laid > > down. What have I done wrong?> >> > <?xml version="1.0" > > encoding="utf-8"?>> > <Wix > > xmlns="http://schemas.microsoft.com/wix/2003/01/wi">> > <Fragment>> > > > <Feature Id="SH4" Title="SH4" Description=" SH4" Level="101"> >> AllowAdvertise="no"> > Display="hidden" Absent="disallow"> > InstallDefault="followParent">>> > > > <ComponentGroupRef Id="SH4_components "/>> > <Condition Level="0">NOT> > > SH4EXISTS</Condition>> > </Feature>> > </Fragment>> >> >> > > > <Fragment>>> > > <Property Id="SH4EXISTS">> > <DirectorySearch Id="CheckFileDir"> > Path='[OSINSTALLDIR]\PUBLIC\SH4'> > Depth="0">> > </DirectorySearch>> > > > </Property>> > </Fragment>> >> > </Wix>> >> > I've run logging > > (/l*v) but that only seems to indicate the Components that> > make up > > the ComponentGroup are Null for Request and Action.> >> > I am > > confident that the directory path does exist. I am curious if the> > > > condition being in a fragment or the Feature Level being 101 has > > anything to> > do with it.> >> > Thanks for any assistance.> >> > > > Scott> >> > ----------------------------------------------------------------------> > --> > -> > This SF.Net email is sponsored by the Moblin Your Move > > -> > Developer's>> > > challenge> > Build the coolest Linux based applications with Moblin> > SDK & win great> >> > prizes> > Grand prize is a trip for two to an Open Source event > > anywhere in the world> > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/> > > > _______________________________________________> > WiX-users mailing> > list> > WiX-users@lists.sourceforge.net> >> > https://lists.sourceforge.net/lists/listinfo/wix-users> >>> > ----------------------------------------------------------------------> > --> > -> This SF.Net email is sponsored by the Moblin Your Move Developer's> > challenge> Build the coolest Linux based applications with Moblin SDK > > challenge> &> > win great prizes> Grand prize is a trip for two to an Open Source > > event anywhere in the world> > > http://moblin-contest.org/redirect.php?banner_id=100&url=/>> > _______________________________________________> WiX-users mailing > > list> WiX-users@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/wix-users> > ----------------------------------------------------------------------> > --> > -> > This SF.Net emai l is sponsored by the Moblin Your Move Developer's > > challenge Build the coolest Linux based applications with Moblin SDK &> > > win great prizes Grand prize is a trip for two to an Open Source event> > > anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/> > _______________________________________________> > WiX-users mailing list> > WiX-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/wix-users> >> >> >> > ----------------------------------------------------------------------> > --- This SF.Net email is sponsored by the Moblin Your Move > > Developer's challenge Build the coolest Linux based applications with > > Moblin SDK & win great prizes Grand prize is a trip for two to an Open> > > Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/> > _______________________________________________> > WiX-users mailing list> > WiX-users@lists.sourceforge.net> > https://lists.s ourceforge.net/lists/listinfo/wix-users> >> ------------------------------------------------------------------------> -> This SF.Net email is sponsored by the Moblin Your Move Developer's> challenge Build the coolest Linux based applications with Moblin SDK &> win great prizes Grand prize is a trip for two to an Open Source event> anywhere in the world> http://moblin-contest.org/redirect.php?banner_id=100&url=/> _______________________________________________> WiX-users mailing list> WiX-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wix-users> > > > -------------------------------------------------------------------------> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge> Build the coolest Linux based applications with Moblin SDK & win great prizes> Grand prize is a trip for two to an Open Source event anywhere in the world> http://moblin-contest.org/redirect.php?banner_id=100&url=/> ____________________________________ ___________> WiX-users mailing list> WiX-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users