On May 13, 2007, at 9:53 PM, Karl Holmes wrote:

> Any suggestions on how to deal with shared application data when a
> program is running under a standard Vista user?
>
> In the past I have placed any data generated by my program inside the
> program's own folder in the 'Program Files' folder. However with
> Vista, standard users cannot write to the 'Program Files' folder. If
> a program tries to do this Vista directs the save/read to a
> 'virtualstore' folder deep inside the user's account folder. This
> poses some problems if data is meant to be shared between users or if
> it is required that an uninstaller removes all data generated by the
> program.
>
> I understand Microsoft recommends using the hidden folder
> 'programdata' (located on the top level of the system hard drive) but
> I can't find this folder as an option in the REALbasic Specialfolder
> object.
>
> There is a SharedApplicationData special folder. Is this what most
> people are using?
>
> Thanks in advance for any help.

SharedApplicationData is "officially" only available on Windows  
(although it should point somewhere in /Library on Mac OS X).   
SharedDocuments may be a better cross-platform solution, but it's not  
supported on Linux.

I usually have my own "FolderLoc" module which provides full multi- 
platform "special folders," but most of the time all that is  
absolutely necessary are the Preferences folder and maybe the  
Documents folder.

The problem with writing to the 'Program Files' (or Applications)  
folder is that if you can do it, other code running "as you" can do  
it as well -- possibly modifying executable files on the disk.

-- 
Glenn L. Austin <><
Computer Wizard and Race Car Driver
<[EMAIL PROTECTED]>
<http://www.austin-home.com/glenn/>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to