本文介绍了Inno Setup-如何在安装时隐藏某些文件名? (文件名标签)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在安装(FilenameLabel)时隐藏某些文件名(不是全部).

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

我看到了这个隐藏Inno Setup进度页面上的文件名.这可能吗?

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

推荐答案

您有一些选择:

  1. 唯一肯定的解决方案是避免使用[Files]部分安装不想显示的文件.而是使用代码安装它们.使用 ExtractTemporaryFile FileCopy 函数.

  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.

或从CurInstallProgressChanged中的FilenameLabel隐藏不想显示的文件.尽管那仍然可能会短暂显示名称.

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

或隐藏实际标签并创建自定义标签,如隐藏Inno Setup进度中的文件名页.在CurInstallProgressChanged中,将您要显示的文件名 从隐藏标签复制到自定义标签.

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.

请参见 Inno设置-如何使用我想要的名称创建个性化FilenameLabel?

这篇关于Inno Setup-如何在安装时隐藏某些文件名? (文件名标签)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 13:20