[wix-users] Error code 2819

Bob rkamarowski at yahoo.com
Wed Feb 17 11:02:28 PST 2016


I received the following error when running an installer I have created:

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

Not the most helpful error message 😊

The error occurred when I changed the UIRef to ‘WixUI_InstallDir’. I have the INSTALLDIR defined as recommended. Any help would be appreciated.

XML:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
                <Product Id="*" 
    Name="EES Photography" 
    Language="1033" 
    Version="1.0.0.0" 
    Manufacturer="!(loc.ManufactureNameComplete)" 
    UpgradeCode="23d3ea46-fe06-425d-8109-82b87a2a69a3">
    
                                <Package 
      InstallerVersion="200" 
      Compressed="yes" 
      InstallScope="perMachine"
      Description="Install EES - Photography" 
      Keywords="Install, EES, Elephant Ear Software, Photography, MSI"
      Manufacturer="!(loc.ManufactureNameComplete)"/>

                                <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
    
                                <MediaTemplate />

    <!--launch conditions-->
     <!--.net 4.5-->
    <PropertyRef Id="NETFRAMEWORK45"/>
    <Condition Message=".NET 4.5 or higher must be installed.">
      <![CDATA[Installed OR NETFRAMEWORK45]]>
    </Condition>

    <!--<PropertyRef Id="AlreadInstalled"/>-->
    <PropertyRef Id="OSBits"/>
    <PropertyRef Id="OSVersion"/>
    
                                <Feature Id="ProductFeatures" Title="EES Photography" Level="1">
      <ComponentRef Id="CMP_BackupFolder"/>
      <ComponentRef Id="CMP_PhotographyDatabase"/>
      <ComponentRef Id="CMP_PhotographyShortcut"/>
      <ComponentGroupRef Id="CMP_InstallFiles" />
    </Feature>
    
    <!--check for data file-->
    <Property Id="PATH_DATAFILE">
      <DirectorySearch Path="CommonAppDataFolder" 
                       Id="ProgramDataFolder" 
                       AssignToProperty="no" 
                       Depth="0">
        <DirectorySearch Path="DatabaseSubDir" 
                         Id="ProgramDataSubFolder" 
                         AssignToProperty="no" 
                         Depth="0">
          <DirectorySearch Path="DatabaseInstallDir" 
                           Id="ApplicationDataFolder" 
                           AssignToProperty="no" 
                           Depth="0">
            <FileSearch Name="eesData.db" 
                        Id="eesDataFile"/>
          </DirectorySearch>
        </DirectorySearch>
      </DirectorySearch>
    </Property>
     
    <UIRef Id="WixUI_InstallDir"/>

    <!--directory structure-->
    <Directory Id="TARGETDIR"
                 Name="SourceDir">
      <Directory Id="ProgramFiles64Folder">
        <Directory Id="INSTALLMAINDIR" Name="!(loc.ManufacturerName)">


Sent from Mail for Windows 10



More information about the wix-users mailing list