Greetings.  Please excuse my noobness, but I am new to WiX and all things MSI.  
I'm guessing this is a trivial issue:
 
I've read the WiX tutorial and am trying to deviate just a bit, by creating a 
directory on the Desktop and copy a file in there and then also create a 
shortcut to that file on the Desktop.  After that works, I want to do that to 
the LocalAppDataFolder.
 
Here is my test.wxs file:
 
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  
    <Product Id="9D9B2995-C2AD-4df0-AF5C-003066CABA43" Name="Product Name 
Setup" Language="1033" Version="1.0.0.0" Manufacturer="Company Name" 
UpgradeCode="F735EEA3-3421-4324-A907-BA01F5AB4681">
        <Package Id="FDDFF53B-8B84-4083-A04E-4BCA53BE7A90" Description="My 
first Windows Installer package" Comments="This is my first attempt at creating 
a Windows Installer database" InstallerVersion="200" Compressed="yes" />
        
        <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
 
        <Directory Id="TARGETDIR" Name="SourceDir">
          <Directory Id="DesktopFolder">
            <Directory Id="INSTALLDIR" Name="TestFolder">
 
              <Component Id="idTestProgram" 
Guid="472DADD7-BA14-4733-9C90-B7B973BF3C1D" >
                <File Id="readme" Name="readme.txt" DiskId="1" 
Source="readme.txt" Vital="yes" >
                  <Shortcut Id="idShortcutReadme" Directory="DesktopFolder" 
Name="ReadMe Long Name" WorkingDirectory='INSTALLDIR' Icon="readme.ico" 
IconIndex="0" Advertise="yes" >
                    <Icon Id="readme.ico" SourceFile="favicon.ico" />
                  </Shortcut>
                </File>
                
                <RemoveFolder Id='INSTALLDIR' On='uninstall' />
              </Component>
                  
            </Directory>
          </Directory>
        </Directory>
 
        <Feature Id="MyFeature" Title="Test Program" Level="1">
          <ComponentRef Id="idTestProgram" />
        </Feature>
    </Product>
</Wix>
 
 
Here is what light.exe outputs:
 
Microsoft (R) Windows Installer Xml Linker version 3.0.2925.0
Copyright (C) Microsoft Corporation 2003. All rights reserved.
 
test.wxs(18) : error LGHT0204 : ICE38: Component idTestProgram installs to user 
profile.
It must use a registry key under HKCU as its KeyPath, not a file.
 
 
 
I tried learning what KeyPath means, but I can't find anything that really 
talks about it in the WiX help file.  Many topics refer to it, but I can't find 
what ICE38 is and why I need a registry key, and I still don't know what a 
KeyPath means.
 
Thank you so much for your help!
 
_________________________________________________________________
Shed those extra pounds with MSN and The Biggest Loser!
http://biggestloser.msn.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to