Login to participate
Endpoint Management & Virtualization ArticlesRSS

Setting Permissions in Wise Package Studio

Eshwar's picture

Permissions can be set for selected files\directories\registry entries. If you want to protect your application's files, directories or registry entries against getting accidentally deleted or changed. The permissions you set are applied to the domain and user you specify e.g. you can set different file permissions for the same file for different users.

Example - (working with Fireworks application)

There are two ways to set permissions

  • Custom action to set permissions
  • Customer set them up themselves

Setup Editor - Tables - Lock Permissions

LockObject - go to file table to locate key e.g. EMlaunch.dll
Table - File, Registry or CreateFolder Table is inserted into this field
User - "Everyone" unless otherwise instructed
Permissions - F1 to show valid numbers (copy & paste into table)

Check Permissions - Run regedit

  • To Edit Permissions - select reg folder you want to edit
    • Right click - select Permissions - select specific group or user name
    • Check to see if Read/Write is ticked

      This show you that this particular user or group has permissions to this key.

EXAMPLE

  • My Computer \ Manager \ Groups \New Group
  • Go to User - New User - create 2 users - one in New Group
    • Add one user to UltraEdit Group
    • Add - location - cancel
    • Select top computer on list - OK
    • Advanced
  • In Files select file (main exe) - right click - permissions - Add - Select All
  • Add - Users
  • Check Lock Permissions Table it should be populated
  • Compile application and install
  • In Explorer - right click on exe to see Properties and permissions
  • Log off as administrator
  • And log in as user - no permission
  • Log in as UltraEdit - given permissions

Setting Permissions

Permissions can be set on the following:

  1. Registry Keys
  2. Directories
  3. File

Setting permissions on Registry Keys

Registry key has to be installed

IMPORTANT: Registry permissions propagate upwards and not downwards in registry keys.

Example of an entry:

Setting permissions on Directories

Use the CreateFolder table when setting the table value and ensure that the table you want to set permissions to is in the CreateFolder Table otherwise you cannot set permissions on this directory.

For Example:

IMPORTANT: Unlike Registry permission CreateFolder permissions propagate Downwards and not Upwards.

Setting permissions on a File

Give the name of the file and set the table to File.

piyushnasa's picture

some more ways

There are other ways as well to set permissons. Same can be read in the aticle I wrote some time back:
www-secure.symantec.com/connect/articles/different-ways-giving-permissions-your-windows-installer 

Piyush Nasa
Altiris Certified Professional (ACP)