ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

How do I add NTFS security permissions to files installed by my .MSI installation?


Article ID: 180616


Updated On:


Symantec Products




How do I add NTFS security permissions to files installed by my .MSI installation?


During an installation, you may need to give additional file, folder, or registry access rights to a user in order for the application to function properly. The LockPermissions table in Windows Installer lets you set specific security permissions for your installation. By using the tips provided in this article, you can define security settings for files, folders and registry keys with ease.

By configuring the permissions for files, folders, or registry keys, you are actually replacing the computer's or user's current permission settings. If you need to add to the current security permissions for files, folders, or registry keys, you must specify the current information as well as the permission changes.

Setting File Permissions:

  1. Open Wise for Windows Installer, Wise for Visual Studio .NET, or Windows Installer Editor in Wise Package Studio.
  2. In Installation Expert, open the Files page.
  3. In the bottom-right pane, select the file to which you want to set permissions and click Details. The File Details dialog appears.
  4. On the Permissions tab click Add. The Lock Permissions Details dialog appears.
  5. Enter the following information in the fields on the Lock Permissions Details dialog:
    Enter the appropriate domain. If you want to set rights for a local computer user, specify the domain as [ComputerName] or, to specify the current user's domain, use [%USERDOMAIN]. Leaving the Domain blank encompasses the largest group.
    Enter the appropriate user. You can specify a group name, such as Users or Everyone, or a specific username. To specify the current user's ID, use the property, [LogonUser].
  6. Click OK to save your changes.

Using the above information, you can add and modify any permissions that Windows Installer allows you to define. By setting security permissions, you can make certain that your installed application runs effectively and properly.