Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Setting folder persmissions


2 replies to this topic

fredrik.strom

fredrik.strom
  • Full Members
  • 39 posts

Posted 06 January 2007 - 15:57

Hi

I need to garantee that all the folders that i create in the installation will be available for all users to write in.

The problem is based on the fact that in an administrator creates a file in the

"c:\documents and settings\all users\my application\" folder it cannot be removed or overwritten by an ordinary user.

In the folder permissions dialog i need to add a domain/user, but i want for all logged in users to have "full control". Can this be done?

I have a solution in my old InstallScript installation where we set the right on the
created folder by using a custom dll. Is that the only solution?

Regards F

Edited by fredrik.strom, 06 January 2007 - 15:58.


Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 07 January 2007 - 01:09

You can use MSI's LockPermission table feature, but it is rather limited. I generally rely on subinacl.exe (from Microsoft), run via a custom action. This tool is really good, but in true Microsoft fashion everything is possible and nothing is easy, so it will take a while to get the options right for your purpose.

Other than that, please see my comments here for an alternative way of deploying user files: http://forum.install...showtopic=15964
Regards
-Stein Åsmul

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 January 2007 - 18:17

In order to allow access to a file (you shouldn't open the whole folder to all users) right click the file and set its permissions. You can use "Everyone" (without quotes) to allow access for all users.