Hello,
This can be achieved through a custom action. For this, we will use a PowerShell script to call the attrib.exe tool whose purpose is to change a file attribute. Here is the PowerShell script that will do what you need:
Code: Select all
# Block for declaring the script parameters.
Param($appdir)
# Your code goes here.
$var = $appdir + "updater.ini"
attrib +h $var
To implement this solution in your project, please proceed as it follows:
- go to
"Custom Actions" page and add a "Run PowerShell inline script"
with sequence. To do so, simply press the
"Add custom action with sequence" button which is placed to the right side of the custom action's name.
the custom action should look something like this:

- CA.PNG (16.77 KiB) Viewed 3099 times
Hope this helps.
All the best,
Catalin
FOLLOW US
Get the latest news in Application Packaging