问题描述
我想在安装(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?
推荐答案
您有一些选择:
-
唯一肯定的解决方案是避免使用
[Files]
部分安装不想显示的文件.而是使用代码安装它们.使用ExtractTemporaryFile
和FileCopy
函数.
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 theExtractTemporaryFile
andFileCopy
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-如何在安装时隐藏某些文件名? (文件名标签)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!