Article View: borland.public.cppbuilder.nativeapi
Article #1543Re: Is CSIDL_COMMON_APPDATA read-only for some users ?
From: Kris
Date: Tue, 31 Jul 2007 17:04
Date: Tue, 31 Jul 2007 17:04
25 lines
2193 bytes
2193 bytes
Miguel Gimenez wrote: > How can I append the subfolders if I can't write to > CSIDL_COMMON_APPDATA? I was planning to do my own installer, who should > create the "Company Name\Product Name\Version" folder tree, but now I'm > in doubt if it can be done. Should the installer be executed by the > administrator, or there is another trick? > > Regards > Miguel Gimenez Even though while googling I found several references to write permission issues with CSIDL_COMMON_APPDATA I was unable to reproduce any problems when writing to this folder (both on Vista and XP I logged in as a limited user and had no problems creating folders and writing files in CSIDL_COMMON_APPDATA). Neverteless, to be absolutely sure this isn't going to be an issue I also modified my installer script (which requires admin priviliges since I need to write to \program files anyway) to modify the NTFS ACL (access control list) of the CSIDL_COMMON_APPDATA subfolder so that everyone always has full read/write access to this subfolder. This should take care of any problems that otherwise still might arise. Better safe than sorry. Kris
Technical Details
Message-ID:
<46af6bae$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46adc5ec$1@newsgroups.borland.com> <46ae1dcb$1@newsgroups.borland.com> <46af1a38@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c3abf88ccc8026f2 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 31 Jul 2007 19:04:52 +0200 From: Kris <ks@ks.com> User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Is CSIDL_COMMON_APPDATA read-only for some users ? References: <46adc5ec$1@newsgroups.borland.com> <46ae1dcb$1@newsgroups.borland.com> <46af1a38@newsgroups.borland.com> In-Reply-To: <46af1a38@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.134.82.222 Message-ID: <46af6bae$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1185901486 83.134.82.222 (31 Jul 2007 10:04:46 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail