Ok, I've discovered the XmlFile custom action and have incorporated into
my build (Wix 3.x). Problem is, the "Language" in the XmlFile action is
always English no matter which radio button I choose in the interface
below. I tested that the ElementPath is correct by using a hard-coded
value which did appear in the .config file so it really seems to by the
Language property. Could some please point out the error of my ways?
Here are the relevant portions.

    <Property Id="Language">English</Property>

....
            <Component Id="ReportBinaryComponent"
Guid="AE8E1085-2F1A-43ce-B167-7A4E4888AFA1">
              <File Id="CRC.ReportDesigner.exe.config"
Name="CRC.ReportDesigner.exe.config"
Source="CRC.ReportDesigner.exe.config" Vital="yes" />
              <util:XmlFile Id="ModifyLanguage" Action="setValue"
ElementPath="/configuration/applicationSettings/KinetDx.ReportDesigner.P
roperties.Settings/[EMAIL PROTECTED]'InstalledLanguage'[\]]/value"
                            File="[Bin]\CRC.ReportDesigner.exe.config"
Value="[Language]"/>
            </Component>

....

      <Dialog Id="WelcomeDlg" Width="370" Height="270"
Title="[ProductName] [Setup]" NoMinimize="yes">
        <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="[ButtonText_Install]">
          <Publish Event="EndDialog" Value="Return">1</Publish>
        </Control>
        <Control Id="Cancel" Type="PushButton" X="304" Y="243"
Width="56" Height="17" Cancel="yes" Text="[ButtonText_Cancel]">
          <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
        </Control>
        <Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="110"
Height="234" TabSkip="no" Text="[DialogBitmap]" />
        <Control Id="Languages" Type="RadioButtonGroup" X="135" Y="120"
Width="150" Height="90" Property="Language" HasBorder="yes" />
        <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56"
Height="17" Disabled="yes" Text="[ButtonText_Back]" />
        <Control Id="Description" Type="Text" X="135" Y="70" Width="220"
Height="30" Transparent="yes" NoPrefix="yes">
          <Text>The [Wizard] will install [ProductName] on your
computer. Choose a language and click Install to continue or Cancel to
exit the [Wizard].</Text>
        </Control>
        <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370"
Height="0" />
        <Control Id="Title" Type="Text" X="135" Y="20" Width="220"
Height="60" Transparent="yes" NoPrefix="yes">
          <Text>{\VerdanaBold13}Welcome to the [ProductName]
[Wizard]</Text>
        </Control>
      </Dialog>

      <RadioButtonGroup Property="Language">
        <RadioButton Text="{\DlgFont8}&amp;English" Value="English"
X="5" Y="10" Width="100" Height="15" />
        <RadioButton Text="{\DlgFont8}&amp;German" Value="German" X="5"
Y="30" Width="100" Height="15" />
        <RadioButton Text="{\DlgFont8}&amp;Portuguese"
Value="Portuguese" X="5" Y="50" Width="100" Height="15" />
        <RadioButton Text="{\DlgFont8}&amp;Swedish" Value="Swedish"
X="5" Y="70" Width="100" Height="15" />
      </RadioButtonGroup>


----------------------------------------------------------------------------
This message and any included attachments are from Siemens Medical Solutions
and are intended only for the addressee(s).
The information contained herein may include trade secrets or privileged or
otherwise confidential information. Unauthorized review, forwarding, printing,
copying, distributing, or using such information is strictly prohibited and may
be unlawful. If you received this message in error, or have reason to believe
you are not authorized to receive it, please promptly delete this message and
notify the sender by e-mail with a copy to [EMAIL PROTECTED]

Thank you

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to