LocalAppDataFolder is perfectly acceptable. The ICE38 error is telling you that you need to change the KeyPath for your components to be compliant with Windows Installer expected behaviour.
It sounds to me like you've written a per-machine package & are trying to turn it into a per-user package. They are not the interchangeable. Palbinder Sandher Software Platform Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Huang, Deqing [mailto:deqing.hu...@intel.com] Sent: 24 August 2012 05:39 To: wix-users@lists.sourceforge.net Subject: [WiX-users] How do I install to LocalAppData folder? Hi All, I'd like to install my app to %LocalAppData% folder. Following directory setting worked perfectly for me: <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id="ProgramFilesFolder"> <Directory Id='INSTALLDIR' Name='MyApp'/> </Directory> </Directory> However, when I tried changing "ProgramFilesFolder" to "LocalAppDataFolder", I got lots of error when using light to link and generate my msi: D:\runGroup.wxs(53) : error LGHT0204: ICE38: Component cmpA5561BE36D80EB58252E69DDA0C2FF8C installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file. ... D:\main.wxs(38) : error LGHT0204 : ICE64: The directory INSTALLDIR is in the user profile but is not listed in the Remove File table. Looks like "LocalAppDataFolder" is not acceptable for WiX, while I believe it is one of the system folder properties which defined in http://msdn.microsoft.com/en-us/library/aa370905%28VS.85%29.aspx#system_folder_properties What am I supposed to use for LocalAppData folder? Regards, Deqing ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users