Hi all,

I am a newbie to Wix and I am learning the User Interface Part.

I made a few modifications myself and my goal is to ask the user to change
the "Destination Directory" by using a "Browse Dialog". My small software
has only one feature thus there is no feature selection panal.

However, an error occured when generating the "Browse Dialog", saying: "The
installer has encountered an unexpected error ... the Error code is 2812"

Below is my code


        <Media Id="1" Cabinet="hvr.cab" EmbedCab="yes" />


        <Directory Id="TARGETDIR" Name="SourceDir">

            <Directory Id="ProgramFilesFolder" Name="PFiles">

                <Directory Id="HVR" Name="hvr">

                    <Directory Id="INSTALLDIR" Name="testprod"
LongName="TestProduct">

                        <Component Id="TestComponent"
Guid="DEAFBEEF-DEAD-DEAD-DEAD-DEADBEEF0003">

                            <File Id="TestFile" Name="Test.txt"
KeyPath="yes" DiskId="1" Source="Test.txt" />

                        </Component>

                    </Directory>

                </Directory>

            </Directory>

        </Directory>


        <Feature    Id="Complete" 
                    Title="HVR" 
                    Level="1"
                    ConfigurableDirectory="INSTALLDIR">

            <ComponentRef Id="TestComponent" />

        </Feature>



            <!-- Destination Directory -->
            <Dialog Id="DestinationDlg" Width="370" Height="270"
Title="[ProductName] Destination Directory" NoMinimize="yes">

                <Control Id="Back" Type="PushButton" X="180" Y="243"
Width="56" Height="17" Text="[ButtonText_Back]">

                    <Publish Event="NewDialog"
Value="LicenseAgreementDlg"><![CDATA[1]]></Publish>

                </Control>

                <Control Id="Next" Type="PushButton" X="236" Y="243"
Width="56" Height="17" Default="yes" Text="[ButtonText_Next]">

                    <Publish Event="NewDialog"
Value="VerifyReadyDlg"><![CDATA[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"><![CDATA[1]]></Publish>

                </Control>

                <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0"
Width="374" Height="44" TabSkip="no" Text="[BannerBitmap]" />

                <Control Id="BannerLine" Type="Line" X="0" Y="44"
Width="374" Height="0" />

                <Control Id="BottomLine" Type="Line" X="0" Y="234"
Width="374" Height="0" />

                <!--
                <Control Id="Description" Type="Text" X="25" Y="23"
Width="280" Height="15" Transparent="yes" NoPrefix="yes">

                    <Text>Please read the following license agreement
carefully</Text>

                </Control>

                -->
                <Control Id="Title" Type="Text" X="15" Y="6" Width="200"
Height="15" Transparent="yes" NoPrefix="yes">

                    <Text>[DlgTitleFont]Destination Directory</Text>

                </Control>

                <Control Id="Location" Type="Text" X="75" Y="200"
Width="215" Height="20">

                    <Text>&lt;The selection's path&gt;</Text>

                    <Subscribe Event="SelectionPath" Attribute="Text" />

                    <Subscribe Event="SelectionPathOn" Attribute="Visible"
/>

                </Control>

                <Control Id="LocationLabel" Type="Text" X="25" Y="200"
Width="50" Height="10" Text="Location:">

                    <Subscribe Event="SelectionPathOn" Attribute="Visible"
/>

                </Control>

                <Control Id="Browse" Type="PushButton" X="304" Y="200"
Width="56" Height="17" Text="[ButtonText_Browse]">

                    <Publish Event="SelectionBrowse"
Value="BrowseDlg">1</Publish>

                    <Condition Action="hide">Installed</Condition>

                </Control>

            </Dialog>


            <!-- Browse -->
            <Dialog Id="BrowseDlg" Width="370" Height="270"
Title="[ProductName] [Setup]" NoMinimize="yes">

                <Control Id="PathEdit" Type="PathEdit" X="84" Y="202"
Width="261" Height="18" Property="_BrowseProperty" Indirect="yes" />

                <Control Id="OK" Type="PushButton" X="304" Y="243"
Width="56" Height="17" Default="yes" Text="[ButtonText_OK]">

                    <Publish Event="SetTargetPath"
Value="[_BrowseProperty]"><![CDATA[1]]></Publish>

                    <Publish Event="EndDialog"
Value="Return"><![CDATA[1]]></Publish>

                </Control>

                <Control Id="Cancel" Type="PushButton" X="240" Y="243"
Width="56" Height="17" Cancel="yes" Text="[ButtonText_Cancel]">

                    <Publish Event="Reset" Value="0"><![CDATA[1]]></Publish>

                    <Publish Event="EndDialog"
Value="Return"><![CDATA[1]]></Publish>

                </Control>

                <Control Id="ComboLabel" Type="Text" X="25" Y="58"
Width="44" Height="10" TabSkip="no" Text="&amp;Look in:" />

                <Control Id="DirectoryCombo" Type="DirectoryCombo" X="70"
Y="55" Width="220" Height="80" Property="_BrowseProperty" Indirect="yes"
Fixed="yes" Remote="yes">

                    <Subscribe Event="IgnoreChange" Attribute="IgnoreChange"
/>

                </Control>

                <Control Id="Up" Type="PushButton" X="298" Y="55" Width="19"
Height="19" ToolTip="Up One Level" Icon="yes" FixedSize="yes" IconSize="16"
Text="Up">

                    <Publish Event="DirectoryListUp"
Value="0"><![CDATA[1]]></Publish>

                </Control>

                <Control Id="NewFolder" Type="PushButton" X="325" Y="55"
Width="19" Height="19" ToolTip="Create A New Folder" Icon="yes"
FixedSize="yes" IconSize="16" Text="New">

                    <Publish Event="DirectoryListNew"
Value="0"><![CDATA[1]]></Publish>

                </Control>

                <Control Id="DirectoryList" Type="DirectoryList" X="25"
Y="83" Width="320" Height="110" Property="_BrowseProperty" Sunken="yes"
Indirect="yes" TabSkip="no" />

                <Control Id="PathLabel" Type="Text" X="25" Y="205"
Width="59" Height="10" TabSkip="no" Text="&amp;Folder name:" />

                <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0"
Width="374" Height="44" TabSkip="no" Text="[BannerBitmap]" />

                <Control Id="BannerLine" Type="Line" X="0" Y="44"
Width="374" Height="0" />

                <Control Id="BottomLine" Type="Line" X="0" Y="234"
Width="374" Height="0" />

                <Control Id="Description" Type="Text" X="25" Y="23"
Width="280" Height="15" Transparent="yes" NoPrefix="yes">

                    <Text>Browse to the destination folder</Text>

                </Control>

                <Control Id="Title" Type="Text" X="15" Y="6" Width="200"
Height="15" Transparent="yes" NoPrefix="yes">

                    <Text>[DlgTitleFont]Change current destination
folder</Text>

                </Control>

            </Dialog>


Could anybody help me figuring out where the problem is please?
-- 
View this message in context: 
http://n2.nabble.com/How-to-correct-my-%22Browse-Dialog%22--tp2123131p2123131.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to