inno-setup

Inno Setup - How to hide certain filenames while installing? (FilenameLabel)


I want to hide certain filenames (not all) while installing (FilenameLabel).

I saw this Hide the file names from the Inno Setup progress page. Is this possible?


Solution

  • Some options you have:

    1. The only sure solution is to avoid installing the files, you do not want to show, using the [Files] section. Install them using a code instead. Use the ExtractTemporaryFile and CopyFile (FileCopy in older versions) functions.

      For an example of implementation, see:

    2. Or hide the files, you do not want to show, from the FilenameLabel in the CurInstallProgressChanged. Though that still likely displays the name briefly.

    3. Or hide the actual label and create a custom one, as shown in the Hide the file names from the Inno Setup progress page. In the CurInstallProgressChanged, copy the files name, you want to show from the hidden to the custom label.

      See Inno Setup - How to create a personalized FilenameLabel with the names I want?