Archive: File Access on Limited Accounts...


File Access on Limited Accounts...
Hello,

I have a question about changing access rights to files I install through NSIS. Our software has a few ini files that get accessed and changed with every use of the different programs. When I install these ini files through NSIS they have some initial default settings. What happens is the software always gets installed through an Administrator account and these files get added. But when a user with a limited account uses the software it will not allow the ini files to be updated, throwing an error about "unable to write to...." Is there a means of giving these files the proper permissions on install so anybody can change them?

I apologize if this is easy one (it seems it might be), but after looking and searching for a while, I haven't come up with the solution.

Thanks in advance for your help...

NUZZI


Scratch that...
I figured out a way by shelling to cacls on installation success. It seems to work nicely. However, if there is a more elegant solution, I wouldn't mind using it.

Thanks,

NUZZI


Seems like you have it working, but creating a directory for your app in $APPDATA (with SetShellVarContext set to 'all') and putting the ini files there should allow any user to modify them.