How to add write access files after installation

Hmidi Amine 61 Reputation points
2022-05-21T15:01:18.993+00:00

Hi,

I'm using setup project to publish my app, i have some files in some folders that i want to add them for example to programData directory with write access for all users !

How can i do that ?

Developer technologies .NET Other
Developer technologies C#
0 comments No comments
{count} votes

Accepted answer
  1. Sreeju Nair 12,666 Reputation points
    2022-05-22T05:14:24.88+00:00

    You can create some directories by your installer and assign ACL for the sub directories to allow certain users to have write access to it. You can use Custom Actions to allow the installer to modify the folder permissions. Refer the following blog to understand how can you do this.

    https://holsson.wordpress.com/2012/08/24/modifying-installation-directory-security-with-windows-installer/

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.