CommonAppDataFolder property
Applies to: desktop apps only
The CommonAppDataFolder property is the full path to the file directory containing application data for all users.
Requirements
|
Version | Windows Installer 5.0 on Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003, Windows XP, and Windows 2000. See the Windows Installer Run-Time Requirements for information about the minimum Windows service pack that is required by a Windows Installer version. |
|---|
See also
Send comments about this topic to Microsoft
Build date: 2/3/2012
Write Access to Common App Data folder in win 7
My application creates a text file in Common App Data folder to store temp data accross all the users. This file is creted when the application is launched first time by the user having admin rights.
If another user with the admin rights logs in to OS and run the application. The application runs but it can not write the data to the text file in Windows 7 (x86).
This data is required as long as the application is required in the computer. This data is retained even while installing the higher versions of the application.
If another user with the admin rights logs in to OS and run the application. The application runs but it can not write the data to the text file in Windows 7 (x86).
This data is required as long as the application is required in the computer. This data is retained even while installing the higher versions of the application.
- 8/31/2011
- Mouleswara
Location
The directory location depends on operating system.
XP: C:\Documents and Settings\All Users\
Vista / Win7: C:\ProgramData\
- 3/29/2011
- CodingBugs