Archive: Setting a File Security for Vista


Setting a File Security for Vista
Hi,

My company uses NSIS and made a script that installs fine on WinXP. On Vista however, the program crashes, because a certain file does not have 'Full Control' for the 'Users' group on the file. I changed the file type to normal using FILE_ATTRIBUTE_NORMAL but I can't seem to figure out how to make it so all the users have full control over the file. I've searched google without any luck. Any advice, suggestions, comments would be appreciated. Thanks,

-Ken


I think I should add...

If you manually run the exe as an administrator or manually change these files settings the program runs normally.

Thanks,

-Ken


You can use the AccessControl plug-in to set the permissions of that file. But you shouldn't. You should fix the program so it doesn't require such a solution as it poses a security risk.


Thanks for the quick response kichik. I'm all for doing the clean solution, but I'm not exactly sure what it would be.

The file that should be accessible for all users is a database copied to the All Users folder. We want to make it so the changes of the database impact all users, and this seems like the place to put the database. The application requires users have the ability to modify the database.

Are there any other solutions, which I am overlooking? Thanks again,

-Ken


Having the changes affect other users is the security risk itself. You can't solve it without removing this feature.