Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21922

Visual Basic 6. Global/Pulic Folder Location That Limited User Can Write Data

$
0
0
Hi, Greetings to every one..
I am a vb6 coder, and facing problem with widows 7 UAC issue.

Limited User:
When I run my installer it ask for admin account password, I enter and it installed it correctly.
My app writes date to common application data folder so that al user can access the file/data.

I windows 7 the path is :
C:\ProgramData\<CompanyName>\<AppName/Title>\Config.ini

as my installer run with admin right it create those subfolder correctly.

but when app run from limited user account. If flailed to write at that location (it actually write to virtual path)

but I want to white the that exact file.

however I have researched enough and every where it is told to write in CommonAppData folder.
But why it still fails.

please some one help me out.

I use SHGetSpecialFolderLocation api call to get the folder location and I use folder id 35.

below is the sample code for the path:

strAPPPath = fGetSpecialfolder(35) & "\" & App.CompanyName & "\" & Trim(App.Title)

thanks in advance...

best regards

Viewing all articles
Browse latest Browse all 21922

Trending Articles