Instead of using WixUI_FeatureTree and/or WixUI_InstallDir, copy one of them
and use the copy instead. Add references to the dialog you need to your
copy. This is explained in the help, on this list, and other places as well.

-----Original Message-----
From: little.forest [mailto:little.for...@ymail.com] 
Sent: Thursday, August 12, 2010 10:45 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to add FeatureTree

Hi all,


We need to add a new feature. I tried to add WixUI_FeatureTree. But I got 
compile errors saying that I have duplicated in ControlEvent. The reason is
that 
I already have WixUI_InstallDir in UIRef.

How can I add WixUI_FeatureTree and don't have these compile errors? Is it 
possible to add just the feature page instead of adding the whole 
WixUI_InstallDir UIRef?

Thanks in advance.



________________________________
From: little.forest <little.for...@ymail.com>
To: General discussion for Windows Installer XML toolset. 
<wix-users@lists.sourceforge.net>
Sent: Wed, August 11, 2010 2:08:03 PM
Subject: Re: [WiX-users] How to add FeatureTree

Thanks Chris. You already helped me moving to the right direction, I guess. 

If anyone know the solution, please let me know.



________________________________
From: Chris Lord <chris.l...@atterotech.com>
To: General discussion for Windows Installer XML toolset. 
<wix-users@lists.sourceforge.net>
Sent: Wed, August 11, 2010 1:54:24 PM
Subject: Re: [WiX-users] How to add FeatureTree

Sadly, you are getting to the extent of my knowledge and experience here 
so I am not sure I can offer much more advice.

What you need is to take your customized version of WixUI_InstallDir and 
add to it the useful dialogs from WixUI_FeatureTree.  Unfortunately, how 
best to achieve that I do not know.

Chris

On 08/11/2010 04:23 PM, little.forest wrote:
> Thanks Chris.
>
>
> I removed "MyWixUI_InstallDir" which is the copy of WixUI_InstallDir with
some
> changes. I got it compile and run. But some problems:
> 1. The "change install dir" page is gone. But we need it back.
> 2. We added a dialog called MyAddedConfirmDlg between InstallDirDlg and
> VerifyReadyDlg. If we found some user's settings need to be upgraded then
we
> show this MyAddedConfirmDlg to let the end user decide to upgrade the
settings
> or not. This MyAddedConfirmDlg was added in the MyWixUI_InstallDir.wxs
file.
> Where can I add my own MyAddedConfirmDlg?
> 3. I didn't test all cases, are there maybe other potential problems?
>
> Thanks.
>
>
>
> ________________________________
> From: Chris Lord<chris.l...@atterotech.com>
> To: General discussion for Windows Installer XML toolset.
> <wix-users@lists.sourceforge.net>
> Sent: Wed, August 11, 2010 12:56:27 PM
> Subject: Re: [WiX-users] How to add FeatureTree
>
> I suspect your original UI refs contain a welcome dialog.  The
> FeatureTree UI is a complete UI. Its not just a FeatureTree dialog so
> the combination of your UIrefs and FeatureTree means you have duplicate
> dialogs, hence the error.
>
> If the standard feature tree UI sequence work for you as is, then remove
> your other UIrefs and just use FeatureTree on its own.  If you use a
> custom UI sequence then your only option, I think, is to add the
> individual dialogs you need to your custom UI.  You won't be able to use
> WixUI_FeatureTree as is.
>
> Chris
>
>
> On 08/11/2010 03:28 PM, little.forest wrote:
>    
>> Hi Chris,
>>
>>
>> Thanks. Yes, I have UIRef before I added the new FeatureTree:
>> <UIRef Id="MyWixUI_InstallDir"/>
>> <UIRef Id="WixUI_ErrorProgressText"/>
>>
>>
>>
>>
>>
>> ________________________________
>> From: Chris Lord<chris.l...@atterotech.com>
>> To: General discussion for Windows Installer XML toolset.
>> <wix-users@lists.sourceforge.net>
>> Sent: Wed, August 11, 2010 12:22:40 PM
>> Subject: Re: [WiX-users] How to add FeatureTree
>>
>> Did you already have a UIRef in your wxs before you added the
>> FeatureTree UIRef?
>>
>>
>> On 08/11/2010 03:00 PM, little.forest wrote:
>>
>>      
>>> We'll need to add a new component. And we'd like the end user to choose
to
>>> install it or not.
>>>
>>> I found the FeatureTree maybe a fit for us. So I add these code:
>>> <UIRef Id="WixUI_FeatureTree"/>
>>>
>>>
>>> <Property Id="INSTALL_FEATURE1" Value="1" />
>>>
>>>
>>> <DirectoryRef Id='INSTALLLOCATION'>
>>> <Component Id='COMP_FTR1' Guid='*'>
>>> <File Source='feature1.dll' KeyPath="yes" Checksum="yes" />
>>> </Component>
>>> </DirectoryRef>
>>>
>>> <Feature Id='Feature_1' AllowAdvertise='no' Description='This is for
feature
>>>
>>>        
>> 1'
>>
>>      
>>> Title='New feature 1' Level='2'>
>>> <Condition Level='1'>INSTALL_FEATURE1</Condition>
>>> <ComponentRef Id='COMP_FTR1' />
>>> </Feature>
>>>
>>>
>>> But I'm getting this error when compiling:
>>> error LGHT0130 : The primary key
>>> 'LicenseAgreementDlg/Back/NewDialog/WelcomeDlg/1' is duplicated in table
>>> 'ControlEvent'.  Please remove one of the entries or rename a part of
the
>>> primary key to avoid the collision.
>>>
>>> How can I fix it?
>>>
>>> Thanks all.
>>>
>>>
>>>
>>>        
>
----------------------------------------------------------------------------
--
>    
>>> This SF.net email is sponsored by
>>>
>>> Make an app they can't live without
>>> Enter the BlackBerry Developer Challenge
>>> http://p.sf.net/sfu/RIM-dev2dev
>>> _______________________________________________
>>> WiX-users mailing list
>>> WiX-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>>
>>>
>>>        
>> 
----------------------------------------------------------------------------
--
>> This SF.net email is sponsored by
>>
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>> 
----------------------------------------------------------------------------
--
>> This SF.net email is sponsored by
>>
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>      
>
----------------------------------------------------------------------------
--
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
----------------------------------------------------------------------------
--
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>    

----------------------------------------------------------------------------
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to