Pally and Dave,

Thanks for the replies...

Here is the code segment from wix file:

 <Feature Id="f_VDatum" Title="VDatum Files" Description="VDatum Files"
Level="1000" Display="expand" AllowAdvertise="no" InstallDefault="local">

      <Feature Id="f_EastCoast" Title="East Coast Dataset" Description="East
Coast Dataset" Level="1000" AllowAdvertise="no" InstallDefault="local">

        <Feature Id="f_RICT_bis02_8301_03" Title="New York/Connecticut/Rhode
Island"
                 Description="New York/Connecticut/Rhode Island - Outer NY
Bight, eastern Long Island Sound, Block Island Sound, Version 02"
Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_RICT_bis02_8301_03" />
        </Feature>

        <Feature Id="f_NYgr8bay02_8301_03" Title="New York - The Great South
Bay" Description="New York - The Great South Bay, Version 02" Level="1000"
AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_NYgr8bay02_8301_03" />
        </Feature>

        <Feature Id="f_NYNJ_hbr02_8301_03" Title="New Jersey/New
York/Connecticut" Description="New Jersey/New York/Connecticut - Northern
NJ, NY Harbor, western Long Island Sound, Version 02" Level="1000"
AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_NYNJ_hbr02_8301_03" />
        </Feature>

        <Feature Id="f_NJcstemb01_8301_03" Title="New Jersey"
Description="New Jersey - coastal embayment, Version 01" Level="1000"
AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_NJcstemb01_8301_03" />
        </Feature>

        <Feature Id="f_NJVA_mab01_8301_03"
Title="Virginia/Maryland/Delaware/New Jersey"
Description="Virginia/Maryland/Delaware/New Jersey - Mid-Atlantic Bight
shelf" Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_NJVA_mab01_8301_03" />
        </Feature>

        <Feature Id="f_DEdelbay02_8301_03" Title="Delaware"
Description="Delaware - Delaware Bay, Version 02" Level="1000"
AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_DEdelbay02_8301_03" />
        </Feature>

        <Feature Id="f_DEVA_emb01_8301_03"
Title="Virginia/Maryland/Delaware" Description="Virginia/Maryland/Delaware -
Coastal embayment, Version 01" Level="1000" AllowAdvertise="no"
InstallDefault="local">
          <ComponentRef Id="opt_vdatum_DEVA_emb01_8301_03" />
        </Feature>

        <Feature Id="f_MDVA_chb01_8301_03" Title="Virginia/Maryland"
Description="Virginia/Maryland - Chesapeake Bay, Version 01" Level="1000"
AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_MDVA_chb01_8301_03" />
        </Feature>

        <Feature Id="f_NCcnorth01_8301_03" Title="North Carolina - Coastal
North" Description="North Carolina - Coastal North, Version 01" Level="1000"
AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_NCcnorth01_8301_03" />
        </Feature>

        <Feature Id="f_NCccentr01_8301_03" Title="North Carolina - Coastal
Central" Description="North Carolina - Coastal Central, Version 01"
Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_NCccentr01_8301_03" />
        </Feature>

        <Feature Id="f_NCpamlis01_8301_03" Title="North Carolina - Pamlico
Sound" Description="North Carolina - Pamlico Sound, Version 01" Level="1000"
AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_NCpamlis01_8301_03" />
        </Feature>

        <Feature Id="f_GASCNCsab01_8301" Title="Georgia/South Carolina/North
Carolina" Description="Georgia/South Carolina/North Carolina - Sapelo Island
GA to New River NC, Version 01" Level="1000" AllowAdvertise="no"
InstallDefault="local">
          <ComponentRef Id="opt_vdatum_GASCNCsab01_8301" />
        </Feature>

        <Feature Id="f_FLGAeast01_8301" Title="Florida/Georgia"
Description="Florida/Georgia - Fort Lauderdale FL to Sapelo Island GA,
Version 01" Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_FLGAeast01_8301" />
        </Feature>

      </Feature>

      <Feature Id="f_GulfCoast" Title="Gulf Coast Dataset" Description="Gulf
Coast Dataset" Level="1000" AllowAdvertise="no" InstallDefault="local">

        <Feature Id="f_FLsouth01_8301" Title="Florida - South Florida"
Description="Florida - South Florida, Naples to Fort Lauderdale FL, and
Florida Bay, Version 01" Level="1000" AllowAdvertise="no"
InstallDefault="local">
          <ComponentRef Id="opt_vdatum_FLsouth01_8301" />
        </Feature>

        <Feature Id="f_FLwest01_8301" Title="Florida - Anclote Key to
Naples" Description="Florida - Anclote Key to Naples, Version 01"
Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_FLwest01_8301" />
        </Feature>

        <Feature Id="f_FLapalach01_8301" Title="Florida - Apalachicola to
Anclote Key" Description="Florida - Apalachicola to Anclote Key, Version 01"
Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_FLapalach01_8301" />
        </Feature>

        <Feature Id="f_FLjoseph01_8301_03" Title="Florida - St. Joseph's
Bay" Description="Florida - St. Joseph's Bay and the Gulf of Mexico, Version
01" Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_FLjoseph01_8301_03" />
        </Feature>

        <Feature Id="f_FLandrew01_8301_03" Title="Florida - St. Andrew's
Bay" Description="Florida - St. Andrew's Bay and the Gulf of Mexico, Version
01" Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_FLandrew01_8301_03" />
        </Feature>

        <Feature Id="f_FLpensac01_8301_03" Title="Florida - Perdido,
Pensacola and Choctawhatchee Bays" Description="Florida - Perdido, Pensacola
and Choctawhatchee Bays, Version 01" Level="1000" AllowAdvertise="no"
InstallDefault="local">
          <ComponentRef Id="opt_vdatum_FLpensac01_8301_03" />
        </Feature>

        <Feature Id="f_ALFL_gom01_8301_03" Title="Florida/Alabama"
Description="Florida/Alabama - Gulf of Mexico from Mobile Bay to East of
Choctawhatchee Bay, Version 01" Level="1000" AllowAdvertise="no"
InstallDefault="local">
          <ComponentRef Id="opt_vdatum_ALFL_gom01_8301_03" />
        </Feature>

        <Feature Id="f_ALmobile01_8301_03" Title="Alabama"
Description="Alabama - Mobile Bay and Perdido Bay, Version 01" Level="1000"
AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_ALmobile01_8301_03" />
        </Feature>

        <Feature Id="f_LAmobile01_8301_03" Title="Louisiana/Mississippi"
Description="Louisiana/Mississippi - Eastern Louisiana to Mississippi Sound,
Version 01" Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_LAmobile01_8301_03" />
        </Feature>

        <Feature Id="f_LAcalche01_8301_03" Title="Louisiana - Lake Calcasieu
and Charles East" Description="Louisiana - Lake Calcasieu and Charles East,
Version 01" Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_LAcalche01_8301_03" />
        </Feature>

        <Feature Id="f_LAcalchm01_8301_03" Title="Louisiana - Lake Calcasieu
and Charles Main" Description="Louisiana - Lake Calcasieu and Charles Main,
Version 01" Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_LAcalchm01_8301_03" />
        </Feature>

        <Feature Id="f_LAcalchw01_8301_03" Title="Louisiana - Lake Calcasieu
and Charles West" Description="Louisiana - Lake Calcasieu and Charles West,
Version 01" Level="1000" AllowAdvertise="no" InstallDefault="local">
          <ComponentRef Id="opt_vdatum_LAcalchw01_8301_03" />
        </Feature>

      </Feature>
.
. More Zones
.
</Feature>

So, yes, the user can select just one or two "Subs" from within the East
Coast, or the whole East Coast, or all the VDatum files (East Coast, West
Coast, etc.).  I thought about the option of flattening it out, but there
are like 38 different areas from the 5 zones that make up the VDatum option.

And, again, if the user selects the right option from the menu , it works
great, but I have had two users get it wrong already (they wanted the East
Coast, so selected root of that and the areas didn't turn on) and I see a
tech support nightmare coming up.  I will probably just end up expanding the
tree so they can visually see the areas in the zone (or sub) they wanted was
not selected.  It would just be nice to have the option of turning off the
"This feature will be installed" and showing "This feature and all
sub-features..." only.

Thanks Again,

John

p.s.  BTW Pally, you gave me a suggestion on my last question (patches) that
worked out great.  Thank you!


> -----Original Message-----
> From: Pally Sandher [mailto:pally.sand...@iesve.com]
> Sent: Tuesday, November 23, 2010 6:17 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Installation of features and sub-features...
> 
> To answer your question, no I don't think that's possible. I think you
need at
> least one Component under that Feature to enable that option.
> FYI Features install Components not files & Components can contain more
> than just files. You could try & work around that by creating a Component
> which installs a stub RegistryValue as per the Shortcut example in the WiX
> documentation.
> 
> Do you really need the sub-sub Features (Features 1-3 in your example) as
> actual Features? That implies the user should be able to selectively allow
> them for installation. If that's not the case don't create Features for
them,
> just add the Components directly to Sub1 & Sub2.
> 
> What Level do Feature 1-3 default to? Have you set the Absent attribute on
> them? Are you using the AllowAdvertise & TypicalDefault attributes to
allow
> or deny Advertising them? What have you set the Display attribute on Sub1
> & Sub2 to?
> 
> Palbinder Sandher
> Software Deployment & 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: John D. Marinuzzi [mailto:nu...@hypack.com]
> Sent: 22 November 2010 19:18
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Installation of features and sub-features...
> 
> In the installation of our software, I have some features that don't
> themselves contain files to be installed but the sub-features do.  The
tree
> looks something like this:
> 
> 
> 
> Root Feature (No files, just a container)
> 
>                 Sub1 (No files, just a container)
> 
>                                 Feature 1 (files)
> 
>                                 Feature 2 (files)
> 
>                                 Feature 3 (files)
> 
>                 Sub2 (No files, just a container)
> 
>                                 Feature 1 (files)
> 
>                                 Feature 2 (files)
> 
>                                 Feature 3 (files)
> 
> 
> 
> 
> 
> I have the Root expanded, but not the Subs.  He selected "Will be
installed
> on local Hard Drive" for Sub1 and nothing was installed.
> Being the most knowledgable user of our software he was concerned other
> users might run into the same error.
> 
> 
> 
> So, my question is, without expanding every level of the tree to see
exactly
> what's going on, is there a way to have the features that do not contain
files
> only have an "Entire Feature Will be installed." option?
> 
> 
> 
> Thank You,
> 
> 
> 
> John
> 
> 
> 
> ------------------------------------------------------------------------
> ------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> 
>
----------------------------------------------------------------------------
--
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to