So I'm bumbling along, just trying to get the secondary EULA displaying, not 
evening worrying about making it dependant on a selected feature yet

I've taken the EULA dialog and created a new dialog from it, and the 
FeatureTree UI and slotted in the SupplementalEulaDlg into the sequence but ...

When I compile Light complains

error LGHT0094: Unresolved reference to symbol 'Dialog:CustomizeDialog' in 
section 'Product:{43CEAB8F-910D-4949-8068-35CA2DA218A4}'.

The UI bits look as follows

   <!--License File-->
    <WixVariable Id="WixUILicenseRtf" Value="Eula.rtf" />
    <WixVariable Id="WixUISupplementalLicenseRtf" Value="SQLBinariesEula.rtf" />
    <WixVariable Id="WixUICostingPopupOptOut" Value="1" Overridable="yes" />

    <!--UI Dialog Set-->
    <UI>
      <Dialog Id="SupplementalEulaDlg" Width="370" Height="270" 
Title="Supplemental License for WPL Samples Plug-Ins">
        <Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" 
TabSkip="no" Text="!(loc.WelcomeEulaDlgBitmap)" />
        <Control Id="LicenseAcceptedCheckBox" Type="CheckBox" X="130" Y="207" 
Width="226" Height="18" CheckBoxValue="1" 
Property="SupplementaryLicenseAccepted" 
Text="!(loc.WelcomeEulaDlgLicenseAcceptedCheckBox)" />
        <Control Id="Back" Type="PushButton" X="156" Y="243" Width="56" 
Height="17" Disabled="yes" Text="!(loc.WixUIBack)" />
        <Control Id="Install" Type="PushButton" ElevationShield="yes" X="212" 
Y="243" Width="80" Height="17" Default="yes" 
Text="!(loc.WelcomeEulaDlgInstall)" Hidden="yes">
          <Publish Event="SpawnWaitDialog" 
Value="WaitForCostingDlg">!(wix.WixUICostingPopupOptOut) OR CostingComplete = 
1</Publish>
          <Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 
1]]></Publish>
          <Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 
1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT 
PROMPTROLLBACKCOST)</Publish>
          <Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
          <Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
          <Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 
AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND 
PROMPTROLLBACKCOST="F")</Publish>
          <Condition Action="disable"><![CDATA[SupplementaryLicenseAccepted <> 
"1"]]></Condition>
          <Condition Action="enable">SupplementaryLicenseAccepted = 
"1"</Condition>
          <Condition Action="show">ALLUSERS</Condition>
        </Control>
        <Control Id="InstallNoShield" Type="PushButton" ElevationShield="no" 
X="212" Y="243" Width="80" Height="17" Default="yes" 
Text="!(loc.WelcomeEulaDlgInstall)" Hidden="yes">
          <Publish Event="SpawnWaitDialog" 
Value="WaitForCostingDlg">!(wix.WixUICostingPopupOptOut) OR CostingComplete = 
1</Publish>
          <Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 
1]]></Publish>
          <Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 
1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT 
PROMPTROLLBACKCOST)</Publish>
          <Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
          <Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND 
OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
          <Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 
AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND 
PROMPTROLLBACKCOST="F")</Publish>
          <Condition Action="disable"><![CDATA[SupplementaryLicenseAccepted <> 
"1"]]></Condition>
          <Condition Action="enable">SupplementaryLicenseAccepted = 
"1"</Condition>
          <Condition Action="show">NOT ALLUSERS</Condition>
        </Control>
        <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" 
Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
          <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
        </Control>
        <Control Id="Title" Type="Text" X="130" Y="6" Width="225" Height="30" 
Transparent="yes" NoPrefix="yes" Text="Supplemental License for WPL Sample 
Plug-Ins" />
        <Control Id="LicenseText" Type="ScrollableText" X="130" Y="36" 
Width="226" Height="162" Sunken="yes" TabSkip="no">
          <Text SourceFile="SQLBinariesEULA.rtf" />
        </Control>
        <Control Id="Print" Type="PushButton" X="88" Y="243" Width="56" 
Height="17" Text="!(loc.WixUIPrint)">
          <Publish Event="DoAction" Value="WixUIPrintEula">1</Publish>
        </Control>
        <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" 
Height="0" />
      </Dialog>
    </UI>
    
    <UI Id="SupplementalEulaFeatureTree">
      <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
      <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
      <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />

      <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
      <Property Id="WixUI_Mode" Value="FeatureTree" />

      <DialogRef Id="ErrorDlg" />
      <DialogRef Id="FatalError" />
      <DialogRef Id="FilesInUse" />
      <DialogRef Id="MsiRMFilesInUse" />
      <DialogRef Id="PrepareDlg" />
      <DialogRef Id="ProgressDlg" />
      <DialogRef Id="ResumeDlg" />
      <DialogRef Id="UserExit" />

      <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" 
Value="Return" Order="999">1</Publish>

      <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" 
Value="LicenseAgreementDlg">NOT Installed</Publish>
      <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" 
Value="VerifyReadyDlg">Installed AND PATCH</Publish>

      <Publish Dialog="LicenseAgreementDlg" Control="Back" Event="NewDialog" 
Value="WelcomeDlg">1</Publish>
      <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" 
Value="CustomizeDlg">LicenseAccepted = "1"</Publish>

      <Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" 
Value="MaintenanceTypeDlg" Order="1">Installed</Publish>
      <Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" 
Value="LicenseAgreementDlg" Order="2">NOT Installed</Publish>
      <Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" 
Value="SupplementalEulaDlg">1</Publish>

      <Publish Dialog="SupplementalEulaDlg" Control="Back" Event="NewDialog" 
Value="CustomizeDialog" Order="1"></Publish>
      <Publish Dialog="SupplementalEulaDlg" Control="Next" Event="NewDialog" 
Value="VerifyReadyDlg">SupplementaryLicenseAccepted = "1"</Publish>

      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" 
Value="CustomizeDlg" Order="1">NOT Installed OR WixUI_InstallMode = 
"Change"</Publish>
      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" 
Value="MaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish>
      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" 
Value="WelcomeDlg" Order="3">Installed AND PATCH</Publish>

      <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" 
Value="MaintenanceTypeDlg">1</Publish>

      <Publish Dialog="MaintenanceTypeDlg" Control="ChangeButton" 
Event="NewDialog" Value="CustomizeDlg">1</Publish>
      <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" 
Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
      <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" 
Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
      <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" 
Value="MaintenanceWelcomeDlg">1</Publish>
    </UI>

    <UIRef Id="WixUI_Common" />

    <UIRef Id="SupplementalEulaFeatureTree"/>   

I just don't know what I'm doing wrong.

-----Original Message-----
From: Barry Dorrans [mailto:bdorr...@microsoft.com] 
Sent: Tuesday, July 27, 2010 07:34
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Adding a feature specific EULA

Ah that makes sense, insert the second EULA after the feature tree if the 
feature that requires it is selected (well the two features). OK I'll have a 
shot - and no doubt be back for more once the bruises from bashing my head 
against the wall subside :)

Thanks all.
________________________________________
From: Pally Sandher [pally.sand...@iesve.com]
Sent: Tuesday, July 27, 2010 07:10
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Adding a feature specific EULA

There are Properties you can use to unselect Features but I think an easy way 
to achieve this is to use the normal WiX UI LicenseAgreementDlg. If you've seen 
it already you'll have noticed the Next button is disabled until the user 
clicks the "I accept" check box.
That should neatly sidestep any issues with forcing features to be unselected 
if the user declines the license. As long as the back button allows them to go 
back to the FeatureTree page & unselect the Feature themselves it shouldn't be 
much of an issue as they're unable to start installation of those Features if 
they haven't accepted the second license.

Maintenance should be handled with the same code as Install. Try getting it 
working as you would like for Install first then test Modify later as you'll 
have a base to work from which you can tweak your Conditions for showing the 
dialog.

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: Barry Dorrans [mailto:bdorr...@microsoft.com]
Sent: 27 July 2010 14:52
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Adding a feature specific EULA

Ah that looks like a good starting point. Forgive the stupid question, but how 
do I then remove things from the feature tree due the responses on a dialog? 
Ideally I'd also want it in maintenance mode - display it again if maintenance 
mode is started if it's not already been accepted.

________________________________________
From: Pally Sandher [pally.sand...@iesve.com]
Sent: Tuesday, July 27, 2010 02:24
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Adding a feature specific EULA

You could add a second EULA dialog after the dialog with the FeatureTree which 
only shows when the Feature or Features you need to show it for are selected. 
The user guide page on Customizing the WiX UI should help you get started -> 
http://wix.sourceforge.net/manual-wix3/WixUI_customizations.htm
You may also find Neil Sleightholm's blog page on the same topic useful too -> 
http://neilsleightholm.blogspot.com/2008/08/customised-uis-for-wix.html

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: Barry Dorrans [mailto:bdorr...@microsoft.com]
Sent: 26 July 2010 21:05
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Adding a feature specific EULA

Hi folks,

I've only ever used WiX for simple installers before, with no UI customisation. 
I now have to display a second EULA which is specific for a feature. I'm at a 
loss on how to do this.

Ideally when the user selects the feature that requires the second EULA from 
the feature tree I'd like to ensure they accept it there and then, if they 
don't then the feature doesn't get selected. At some point the same EULA will 
control access to two features.

Is this possible? Where should I start looking for instructions?

Thanks in advance,
Barry
------------------------------------------------------------------------
------
The Palm PDK Hot Apps Program offers developers who use the Plug-In Development 
Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP 
Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------
------
The Palm PDK Hot Apps Program offers developers who use the Plug-In Development 
Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP 
Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
------
The Palm PDK Hot Apps Program offers developers who use the Plug-In Development 
Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP 
Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the Plug-In Development 
Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP 
Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the Plug-In Development 
Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP 
Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to