Link to home
Start Free TrialLog in
Avatar of pfiekowsky
pfiekowsky

asked on

Can't write to CSIDL_COMMON_APPDATA on a customer's computer

A potential customer can't get my VB6 app to write files on his computer (XP). Every directory he tries is read only to my app. It's a huge corporation in Taiwan, so their security is high, and I have not yet gotten to talk to their IT folks.

My program defaults to save its history and temporary files to CSIDL_COMMON_APPDATA (using SHGetFolderPath, of course). I have not yet seen what directory this gets on his computer.

I will ask him to "right click on the EXE and run as administrator", but I need a long term solution.

What do I ask IT to do for me?
Avatar of Steve Smith
Steve Smith
Flag of United Kingdom of Great Britain and Northern Ireland image

Have you considered for testing, saving all history and files to a set folder on the C: drive e.g. c:\temp ?

Failling that it may be down to security and permissions - ask their IT to run it; i'd also find out what restrictions are in place in case there are other aspects of the app that may be affected either now or later on down the line.

Not a good place to save to.....

That value should be determined by this reg key....

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Value is "Common AppData"

Almost always is

"C:\Documents and Settings\All Users\Application Data"

You should be able to grant Users "Modify" rights to this folder, but that opens the potential for infections when something can write to the AllUsers path. Especially the rogues that are flying around now......

Only save to for testing not in production, just to ensure it works.
ASKER CERTIFIED SOLUTION
Avatar of pfiekowsky
pfiekowsky

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial