Hi,
I am very new to WiX installer development. I am building an installer
where I keep all files in separate folders like this:


I included settings and launch conditions in Product.wxs like:

<?include Includes\Settings.wxi ?>
<?include LaunchConditions\Conditions.wxi ?>
I am not sure about how to include\import .wxl files


Also, I am using this this UI block:

 <UI>      <UIRef Id="UI_Texts" />      <Property
Id="DefaultUIFont">DlgFont8</Property>      <Property
Id="ErrorDialog">ErrorDlg</Property>            <InstallUISequence>
    <Show Dialog="FatalError" OnExit="error" />        <Show
Dialog="UserExit" OnExit="cancel" />        <Show Dialog="ExitDialog"
OnExit="success" />        <Show Dialog="PrepareDlg"
After="LaunchConditions" />        <Show Dialog="WelcomeDlg"
After="MigrateFeatureStates">NOT Installed</Show>        <Show
Dialog="ResumeDlg" After="WelcomeDlg">Installed AND (RESUME OR
Preselected)</Show>        <Show Dialog="MaintenanceWelcomeDlg"
After="ResumeDlg">Installed AND NOT RESUME AND NOT Preselected</Show>
      <Show Dialog="ProgressDlg" After="MaintenanceWelcomeDlg" />
</InstallUISequence>    </UI>

where Dialog folder contains following files:



Now everytime I complie the sloution I get a lots of *Location of symbol
related to previous error* error from all the dialog files. I can give an
example og WelcomeDlg.wxs file:

<?xml version="1.0" encoding="UTF-8"?><Wix
xmlns="http://schemas.microsoft.com/wix/2006/wi";>       <Fragment>    <UI>
   <Dialog Id="WelcomeDlg" Width="370" Height="270"
Title="[ProductName] !(loc.Setup)" NoMinimize="yes">        <Control
Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17"
Default="yes" Text="!(loc.ButtonText_Next)">          <Publish
Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
</Control>        <Control Id="Cancel" Type="PushButton" X="304"
Y="243" Width="56" Height="17" Cancel="yes"
Text="!(loc.ButtonText_Cancel)">          <Publish Event="SpawnDialog"
Value="CancelDlg">1</Publish>        </Control>        <Control
Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234"
TabSkip="no" Text="[DialogBitmap]" />        <Control Id="Back"
Type="PushButton" X="180" Y="243" Width="56" Height="17"
Disabled="yes" Text="!(loc.ButtonText_Back)" />        <Control
Id="Description" Type="Text" X="135" Y="70" Width="220" Height="30"
Transparent="yes" NoPrefix="yes" Text="!(loc.WelcomeDlgDescription)"
/>        <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="!(loc.WelcomeDlgTitle)" />      </Dialog>
       <TextStyle Id="VerdanaBold13" FaceName="Verdana" Size="13"
Bold="yes" />    </UI>  </Fragment></Wix>

Is this error occurs from *!(loc.Setup)*? as localization file is in
Localization folder named English.wxl but I am not sure how to reference to
other .wxs files
Similarly I am too confused about Property.wxs (in properties directory)
and so on.


Similarly I am also getting error *Duplicate symbol 'Dialog:WelcomeDlg'
found. This typically means that an Id is duplicated. Check to make sure
all your identifiers of a given type (File, Component, Feature) are
unique.*for WelcomeDlg.wxs and similar error for every dialogs I have
created. when
I click the error it navigate it to staring of this line:

<Dialog Id="WelcomeDlg" Width="370" Height="270" Title="[ProductName]
!(loc.Setup)" NoMinimize="yes">

Am I missing something? is my <UI> in Product.wxs is correctly defined?


-- 
Ravi Raj
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to