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 ?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,263 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,097 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sreeju Nair 11,601 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