Setting folder's permission at MSI installation

Posted on 2009-12-22
Last Modified: 2013-11-26
Trying to find an answer to my problem of setting folder's permission at installation time I bumped into this question/answer
I thought the following paragraph was the answer to my problem:
"What exactly did not work with the standard way? by the way, you mentioned the table lockpermissions; why going directly to the table if you can simply right-click your folder in the "destination computer's folders" panel, select Properties/Permissions... and specify the permissions in user-friendly dialog?"
But I don't seem to get the same options, particularly I don't get the option to set the permissions.  I use Visual Studio 2008.
I attach a picture of what I get with translations from spanish
What am I missing here?
Question by:KLBO
    LVL 8

    Assisted Solution

    It's been a while since I created a MSI with Visual Studio, but from my recollection, I think the MSI creation part of VS is kinda limited.  I do not think that there is a way to set File/Folder Permissions when creatiing the MSI.

    However, you could include an EXE and have this run at the end of the installation to set the permissions.  I have used both "SetAcl.exe" and "FileAcl.exe" in the past.  I would recommend using "SetAcl.exe", which is available here:

    Also, you could call "CACLS" to set permissions, which is part of the Windows OS already.
    LVL 40

    Accepted Solution

    Q_24315443 was asked in the Installshield area, so when I answered it, it was about Installshield, that's where it's all seen.

    The phylosophy of Visual Studio setup and deployment project is that you see only a very limited subset of all installation functionality in IDE; for everything else, you write custom actions that have API access to the internal structures of the installation package.

    See however that explains why this approach is incompatible with the very Windows Installer it's all about.
    LVL 12

    Assisted Solution


    I'm used to setting the permissions in Installshield by going to the component that I am dealing with, and setting the permissions in the property grid that shows up in the right panel when you have a component selected.  But it appears that this is the same type of thing you have in your picture.

    I don't use Visual Studio for the installation design because it is so limited, and this appears to be the case here.

    Also, somewhat related but worth noting.  I believe that until the most recent version (IS 2010) setting permissions on a folder using the installshield IDE during installation design will blow away all of the existing security on that directory.  Just be aware of that going forward, make sure to be cautious setting security unless you are doing it on a folder you are creating or else using a custom action of some sort.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now