I wouldn't recommend circumventing Windows Installer practices just because you refuse to do things the correct way. As Rob said it's explained how to work with per-user components in http://wix.sourceforge.net/manual-wix3/create_start_menu_shortcut.htm
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: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: 24 August 2012 12:23 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] How do I install to LocalAppData folder? Was going to suggest what I did, by setting the value of "ProgramFilesFolder" to "LocalAppDataFolder" but I see on StackOverflow that you figured that one out..:) -----Original Message----- From: Rob Hamflett [mailto:rob_hamfl...@sn.scee.net] Sent: 24 August 2012 12:00 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How do I install to LocalAppData folder? You can either suppress it with the -sice flag, or check out the "How To: Create a Shortcut on the Start Menu" section from the manual as it covers the same ground. Rob On 24/08/2012 05:35, Huang, Deqing wrote: > 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#syste > m_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/ > ---------------------------------------------------------------------------- -- 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 ------------------------------------------------------------------------------ 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