I fix the problem :). There was a action missing in the InstallUISequence 
tables, adding the correct steps made all working fine..

Thanks
Sachin


-----Original Message-----
From: Sachin Dubey (Tata Consultancy Services)
Sent: Friday, December 19, 2008 4:21 PM
To: Sachin Dubey (Tata Consultancy Services); 'wix-d...@lists.sourceforge.net'; 
'wix-users@lists.sourceforge.net'
Subject: Error in Install Directory Dialog - WiX 3.0

Hi,
I am pretty new to WiX and MSI creation, trying to learn and do things.

I am trying to achieve a very basic functionality in my MSI where user can 
see/edit the install directly path  from the UI.
I have added two dialogs (InstallDir and Browser) for this in UI file. And 
tried to impalement the way it's in documents and tutorials, however the things 
seem not working.
I get Error 2343. An internal error has occurred.  (                  ). On UI 
when the InstallDir dialog called.

The dialogs I have written are:

   <!--Dialog to display/edit the Install directory path -->
    <Dialog Id="InstallDirDlg" Width="370" Height="270" 
Title="[SADialogWizardTitle]">
      <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" 
Height="17" Default="yes" Text="[ButtonText_Next]" >
        <Publish Event="SetTargetPath" Value="TARGETDIR">1</Publish>
        <Publish Event="NewDialog" Value="ReadyToInstallDlg">1</Publish>
      </Control>     
      <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" 
Height="17" Default="yes" Text="[ButtonText_Back]">
        <Publish Event="NewDialog" Value="WelcomeDlg">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="370" Height="234" 
TabSkip="no" Text="InstallerImage" />
      <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" 
/>
      <Control Id="InstallDirLocationLevel" Type="Text" X="148" Y="70" 
Width="220" Height="60" Transparent="yes" NoPrefix="yes" Text="Install 
Directory Path" />
      <Control Id="Title" Type="Text" X="148" Y="20" Width="220" Height="60" 
Transparent="yes" NoPrefix="yes">
        <Text><![CDATA[{\TahomaBold10}[Welcome_Title]]]></Text>
      </Control>
      <Control Id="InstallDirLocation" Type="PathEdit" X="148" Y="100" 
Width="220" Height="20" Property="TARGETDIR" />
      <Control Id="ChangeFolder" Type="PushButton" X="304" Y="130" Width="56" 
Height="17" Text="Change" >
        <Publish Event="SpawnDialog" Value="BrowseDlg">1</Publish>
      </Control>
    </Dialog>
    <!--Dialog to display the Install directory browse window -->
    <Dialog Id="BrowseDlg" Width="370" Height="270" 
Title="[SADialogWizardTitle]" NoMinimize="yes">
      <Control Id="PathEdit" Type="PathEdit" X="84" Y="202" Width="261" 
Height="17" Property="TARGETDIR" />
      <Control Id="OK" Type="PushButton" X="304" Y="243" Width="56" Height="17" 
Default="yes" Text="[ButtonText_OK]">
        <Publish Event="SetTargetPath" Value="TARGETDIR"><![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="TARGETDIR" Removable="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="TARGETDIR" Sunken="yes" TabSkip="no" />
      <Control Id="PathLabel" Type="Text" X="25" Y="205" Width="59" Height="10" 
TabSkip="no" Text="&amp;Folder name:" />
      <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>


wxs file:

    <!-- Components -->
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder" Name="." ShortName="PROGRAM" 
SourceName="Program Files">
        <Directory Id="INSTALLDIR" Name="Microsoft">

I can share more details if needed,

Few things I tried.
            If I use Property instead of TARGETDIR at all the places and assign 
the Property with fix values like "c:\" the InstallDir dialog works but now 
error is thrown by Browser dialog.


Please suggest if anyone has come across such issue or know the fix.
Appreciate any short of help.

Thanks
Sachin


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to