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

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

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.

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

Folder will appear with Lock icon after giving the permission

Lock Permission table will appear as below

Directory table entry as below

Createfolder table entry will be as below

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)

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


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