Use LocalAppDataFolder
(http://msdn.microsoft.com/en-us/library/aa369768.aspx) not
AppDataFolder (http://msdn.microsoft.com/en-us/library/aa367565.aspx)

Palbinder Sandher 
Software Deployment & IT Administrator
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: Zhou, Lei [mailto:[email protected]] 
Sent: 26 March 2010 16:55
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] How do I create a folder under AppData/Local?

My application creates a data folder under a user's AppData/Local
(Win7/Vista, XP: Local Settings\Application Data). I have the following
in WiX,

        <Directory Id="AppDataFolder" Name="AppDataFolder">
            <Directory Id="MYDATA_ROOT" Name="myAppData">
                <Component Id="MYDATA_ROOT"
Guid="DB80A786-0529-4eb5-9348-0A99EA12F919"  >
                    <RegistryKey  Action="none" Key="dummy" Root="HKCU"
>
                        <RegistryValue Type="integer"  Value="1"
KeyPath="yes" />
                    </RegistryKey >
                    <CreateFolder />
                </Component>
            </Directory>
        </Directory>

My application would actually create the directory if it does not exist.
But I want the uninstaller to remove it therefore I put it in the
installer.

Checking the log, I found out that the above snippet created myAppData
folder under AppData/Roaming instead of AppData/Local. Could someone
please tell me how to correct this? Thank you in advance.

Louis

------------------------------------------------------------------------
------
Download Intel&#174; Parallel Studio Eval Try the new software tools for
yourself. Speed compiling, find bugs proactively, and fine-tune
applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to