We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

NovaES
Posts: 149
Joined: Tue Feb 24, 2015 5:20 pm

(Help) Hide updater.ini file

As the title says, how can I hide the update file.ini since it does not give me the possibility from the installer's properties
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: (Help) Hide updater.ini file

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
CA.PNG (16.77 KiB) Viewed 3100 times
Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”