Setting permission for empty folder without empty component


Step 1:Create the empty folder in the required location using “New folder “ option.

clip_image002

For eg: I have used ‘BalsaTest’ folder in [ProgramFileFolder]

clip_image004

An Empty component will be getting created for this folder.

Note : Removing this empty component “AllOtherFiles” while giving permission via lockpermission table is the aim of this exercise.

clip_image006

Step 2: Set the required permission for the folder as below

clip_image008

Folder will appear with Lock icon after giving the permission

clip_image010

Lock Permission table will appear as below

clip_image012

Directory table entry as below

clip_image014

Createfolder table entry will be as below

clip_image016

We need to apply the tweak in createfolder.

Step 3:

Change the component to any other existing component in the package which is not empty.(Best practice is to give on the mainexe’s component)

clip_image018

Nothing to worry about the path of the mainexe component and the empty folder, Even the empty folder is getting created in different location .

The Parent folder mentioned in directory table will help the folder to get install on the required location.

Step 4: Delete the ‘AllOtherFiles’ componet from feature

clip_image020

clip_image022

Done!.Compile and install the MSI. Permission will be applied as below.

clip_image024

Advertisements

0 Responses to “Setting permission for empty folder without empty component”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: