Inno Setup - How to hide certain filenames while i

2020-02-06 04:39发布

问题:

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?

回答1:

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 FileCopy functions.

    For an example of implementation, see:

    • Install file in Inno Setup Pascal code using FileCopy function (not to show the installation on wizard form) or
    • Inno Setup - Avoid displaying filenames of sub-installers.
  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?



标签: inno-setup