[wix-users] (no subject)

Todd Hoatson todd.hoatson at gmail.com
Fri Oct 26 10:11:07 PDT 2018


Hi,
  I have created an installer, and it works.  In spite of the fact that I
get error messages, it still creates a working installer that pretty much
does what I want it to do.  But I would like to understand why I'm getting
these error messages, and how to fix my WiX code so these error messages go
away.  (They make my coworkers nervous.)

Here are the error messages:

error LGHT0204 : ICE38: Component EmptyWorkingDIR installs to user profile.
It must use a registry key under HKCU as its KeyPath, not a file.
error LGHT0204 : ICE64: The directory WorkingFolder is in the user profile
but is not listed in the RemoveFile table.

Here are (what I believe to be) the relevant lines from my WiX code:

    <Directory Id="TARGETDIR" Name="SourceDir">
        ...
        <Directory Id="PersonalFolder">
            <Directory Id="WorkingFolder" Name="BART5" />
        </Directory>
    </Directory>
    ...
    <DirectoryRef Id="WorkingFolder">
        <Component Id="EmptyWorkingDIR"
                   Guid="0c25a284-3f3a-491a-96da-3d926a3e5f09"
                   KeyPath="yes" >
            <CreateFolder />
        </Component>
    </DirectoryRef>

Our application looks for a configuration file in the working folder.  If
it's not there, it uses the default settings, then saves its configuration
on exit.  So, we simply want the installer to create this empty folder.

Am I doing this wrong?  It works, but it gives me these errors, which I
would like to eliminate.  Any suggestions?

thanks,
Todd Hoatson
Mobile: 763-291-3312
Email:   todd.hoatson at gmail.com
www.linkedin.com/in/toddhoatson


More information about the wix-users mailing list