Bugs item #1506008, was opened at 2006-06-14 12:41
Message generated for change (Comment added) made by barnson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1506008&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wixui
Group: v3.0
Status: Closed
Resolution: Invalid
Priority: 5
Submitted By: Matthijs van der Vleuten (zr40)
Assigned to: Bob Arnson (barnson)
Summary: WixUI_InstallDir generates error 2819

Initial Comment:
When using WixUI_InstallDir, clicking Change on the
Destination Folder dialog generates 'an unexpected
error' with error code 2819. This does not happen with
WixUI_Mondo.

----------------------------------------------------------------------

>Comment By: Bob Arnson (barnson)
Date: 2006-10-05 23:59

Message:
Logged In: YES 
user_id=26581

As documented in wix.chm, you must set the WIXUI_INSTALLDIR
property to the id of the directory you want the user to be
able to change. For example:

<Property Id="WIXUI_INSTALLDIR" Value="TESTFILEPRODUCTDIR" />


----------------------------------------------------------------------

Comment By: Terry Denham (terrydenham)
Date: 2006-10-05 15:39

Message:
Logged In: YES 
user_id=1014678

I'm using Votive 3.0.2120.0 that can only be found at 
http://wix.sourceforge.net/releases/3.0.2120.0. This file 
is not available in the SourceForge files listing at 
http://sourceforge.net/project/showfiles.php?
group_id=105970

Here is my simple wxs file that is causing this error. If 
munged the GUIDs before posting.

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
        <Product Id="MYPATCH3-cb97-49a7-95a9-0d92883eef01" 
Name="Telligent Patch Generation Tool (SQLPatch)" 
Language="1033" Version="1.0.0.0" Manufacturer="Telligent 
Systems, Inc." UpgradeCode="MYPATCHe-ed04-409e-a2d3-
82f78c3b0bdd">
                <Package InstallerVersion="200" 
Compressed="yes" />

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

                <UIRef Id="WixUI_InstallDir" />
                <UIRef Id="WixUI_ErrorProgressText" />

                <Directory Id="TARGETDIR" Name="SourceDir">
                        <Directory Id="ProgramFilesFolder">
                                <Directory 
Id="TelligentFilesFolder" Name="Telligent">
                                        <Directory 
Id="APPLICATIONFOLDER" Name="Utilities">
                                                <Component 
Id="SqlPatchComponent" Guid="MYPATCHb-a03e-4219-bdaf-
5a735edb2a84" KeyPath="yes">
                                                
        <File Id="SQLPATCHEXE" 
Source="..\..\..\SqlPatch\bin\release\sqlpatch.exe" 
Name="SqlPatch.exe" />
                                                
        <Environment Id="SQLPATCHPATH" Action="set" 
Part="last" Name="PATH" System="no" 
Value="[APPLICATIONFOLDER]"/>
                                        
        </Component>
                                                <Component 
Id="RedGateLicensingClientComponent" Guid="">
                                                
        <File Id="REDGATELICENSINGCLIENTDLL" 
Source="..\..\..\SqlPatch\bin\release\RedGate.Licensing.Cli
ent.Dll" Name="RedGate.Licensing.Client.Dll" />
                                        
        </Component>
                                                <Component 
Id="RedGateLicensingHelperComponent" Guid="">
                                                
        <File Id="REDGATELICENSINGHELPERDLL" 
Source="..\..\..\SqlPatch\bin\release\RedGate.Licensing.Hel
per.Dll" Name="RedGate.Licensing.Helper.Dll" />
                                        
        </Component>
                                                <Component 
Id="RedGateSqlSharedComponent" Guid="">
                                                
        <File Id="REDGATESQLSHAREDDLL" 
Source="..\..\..\SqlPatch\bin\release\RedGate.SQL.Shared.Dl
l" Name="RedGate.SQL.Shared.Dll" />
                                        
        </Component>
                                                <Component 
Id="RedGateSqlCompareEngineComponent" Guid="">
                                                
        <File Id="REDGATESQLCOMPAREENGINEDLL" 
Source="..\..\..\SqlPatch\bin\release\RedGate.SQLCompare.En
gine.dll" Name="RedGate.SQLCompare.Engine.dll" />
                                        
        </Component>
                                        </Directory>
                                </Directory>
                        </Directory>
                </Directory>

                <Feature Id="ProductFeature" 
Title="SQLPatch Program" Level="1">
                        <ComponentRef 
Id="SqlPatchComponent" />
                        <ComponentRef 
Id="RedGateLicensingClientComponent" />
                        <ComponentRef 
Id="RedGateLicensingHelperComponent" />
                        <ComponentRef 
Id="RedGateSqlSharedComponent" />
                        <ComponentRef 
Id="RedGateSqlCompareEngineComponent" />
                </Feature>
        </Product>
</Wix>


I see from checking the releases directory on SF that 
there is now a 3.0.2128 MSI. I'll download this to see if 
it fixes this bug.

I'm not doing anything special here. I just created a 
Votive project and tried to use the WixUI_InstallDir UI 
since all I want is the user to be able to choose the 
installation directory. 

----------------------------------------------------------------------

Comment By: Bob Arnson (barnson)
Date: 2006-09-30 03:56

Message:
Logged In: YES 
user_id=26581

WIXUI_INSTALLDIR is a simple property whose value is the
name of an all-uppercase directory. No custom action
required. (WixUI_Advanced is another dialog set that's
currently still in development.) 

Which version of WiX are you using? Recent builds have a
PropertyRef so you get an error if you don't define it.


----------------------------------------------------------------------

Comment By: Terry Denham (terrydenham)
Date: 2006-09-29 23:30

Message:
Logged In: YES 
user_id=1014678

Doing some reading it seemed like I needed to define the 
WIXUI_INSTALLDIR property. I went this route by adding the 
property and setting up a custom action, but this still 
failed.

Next I did a search for WIXUI_INSTALLDIR in the wixlib 
directory and see that in WixUI_Advanced.wxs there is the 
property definition with a value of APPLICATIONFOLDER but 
I was using INSTALLDIR as my application root directory.

So I changed my directory id to APPLICATIONFOLDER and 
compiled and run again but I get the same 2819 error.

I'm using Votive 3.0/ VS2005 if that has any bearing.

----------------------------------------------------------------------

Comment By: Terry Denham (terrydenham)
Date: 2006-09-29 22:47

Message:
Logged In: YES 
user_id=1014678

I've been able to reproduce this error. I've created a 
simple single file install and tried to use the 
WixUI_InstallDir element

<UIRef Id="WixUI_InstallDir" />
<UIRef Id="WixUI_ErrorProgressText" />

It builds fine, but when I run it I get an error 

The installer has encountered an unexpected error 
installing this package. This may indicate a problem with 
this package. The error code is 2819.

If I change the package to use WixUI_Mondo it runs without 
error.

I changed it back to WixUI_InstallDir and ran the 
installer using msiexec with the log option. This reports 
the following error condition:

Action 17:25:50: LicenseAgreementDlg. Dialog created
DEBUG: Error 2819:  Control Folder on dialog InstallDirDlg 
needs a property linked to it
The installer has encountered an unexpected error 
installing this package. This may indicate a problem with 
this package. The error code is 2819. The arguments are: 
InstallDirDlg, Folder, 
MSI (c) (98:B4) [17:25:55:860]: Product: Telligent Patch 
Generation Tool (SQLPatch) -- The installer has 
encountered an unexpected error installing this package. 
This may indicate a problem with this package. The error 
code is 2819. The arguments are: InstallDirDlg, Folder, 

Opening the InstallDirDlg.wxs file the Folder control 
looks like this :

<Control Id="Folder" Type="PathEdit" X="20" Y="100" 
Width="320" Height="18" Property="WIXUI_INSTALLDIR" 
Indirect="yes" />


----------------------------------------------------------------------

Comment By: Bob Arnson (barnson)
Date: 2006-06-21 02:26

Message:
Logged In: YES 
user_id=26581

Feel free to reactive the bug if you run into problems with
2.0.4221.0 or 3.0.1821.0 or later.

----------------------------------------------------------------------

Comment By: The Mad Butcher (mad_burcher)
Date: 2006-06-16 08:35

Message:
Logged In: YES 
user_id=295880

In WiX.chm do a search for WIXUI_INSTALLDIR.
I took me also some time before i found it in the chm 
file :-)


----------------------------------------------------------------------

Comment By: Bob Arnson (barnson)
Date: 2006-06-15 14:17

Message:
Logged In: YES 
user_id=26581

WIXUI_INSTALLDIR must be a property, not a directory. See
WiX.chm for details. So it looks like:

<Directory Id="TARGETDIR" Name="SourceDir">
  <Directory Id="ProgramFilesFolder" Name="PFiles">
    <Directory Id="TESTFILEPRODUCTDIR" Name="WIXTEST"
LongName="Test File">
      <Component ...>
      </Component>
    </Directory>
  </Directory>
</Directory>

<Property Id="WIXUI_INSTALLDIR" Value="TESTFILEPRODUCTDIR" />
<UIRef Id="WixUI_InstallDir" />


----------------------------------------------------------------------

Comment By: Matthijs van der Vleuten (zr40)
Date: 2006-06-15 07:32

Message:
Logged In: YES 
user_id=832662

No, I was using INSTALLDIR, as recommended by the WiX
Tutorial. Setting it to WIXUI_INSTALLDIR generates an error:
error LGHT0205 : ICE18: KeyPath for Component: 'Environment'
is Directory: 'WIXUI_INSTALLDIR'. The Directory/Component
pair must be listed in the CreateFolders table.

By the way, where is WIXUI_INSTALLDIR documented?

----------------------------------------------------------------------

Comment By: Bob Arnson (barnson)
Date: 2006-06-14 17:29

Message:
Logged In: YES 
user_id=26581

Have you set WIXUI_INSTALLDIR to the directory you want the
dialog to control? If not, you need to do so. If so, please
attach a verbose log because I can't reproduce it with the
current WiX build.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1506008&group_id=105970

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to