如何在安装程序时隐藏文件名?

时间:2021-03-05 22:40:12

I am using InstallShield 2010 to build the installer of my project and I would like to hide the name of files showed while they are transferred to HD:

我正在使用InstallShield 2010构建我的项目的安装程序,我想隐藏在转移到HD时显示的文件的名称:

如何在安装程序时隐藏文件名?

Can I hide the file name and keep the progress bar? Or even to suppress the window and replace it by another?

我可以隐藏文件名并保留进度条吗?或者甚至压制窗户并用另一个窗户替换它?

Anyone have any idea about how can I do this?

任何人都知道我该怎么做?

2 个解决方案

#1


1  

You can use "SetStatusWindow" function in installscript to overcome this. An example is in InstallShield site itself: SetStatusWindow Example

您可以在installscript中使用“SetStatusWindow”函数来克服这个问题。一个例子是InstallShield站点本身:SetStatusWindow示例

#2


0  

To enable the display of the name and path of the file being installed on the second line of the status bar, call Enable with the INDVFILESTATUS parameter before calling FeatureMoveData.

要在状态栏的第二行显示正在安装的文件的名称和路径,请在调用FeatureMoveData之前使用INDVFILESTATUS参数调用Enable。

Enable(STATUSEX);
Disable(INDVFILESTATUS);
...
SetStatusWindow(100, "Setup is complete.");
Disable(STATUSEX);

#1


1  

You can use "SetStatusWindow" function in installscript to overcome this. An example is in InstallShield site itself: SetStatusWindow Example

您可以在installscript中使用“SetStatusWindow”函数来克服这个问题。一个例子是InstallShield站点本身:SetStatusWindow示例

#2


0  

To enable the display of the name and path of the file being installed on the second line of the status bar, call Enable with the INDVFILESTATUS parameter before calling FeatureMoveData.

要在状态栏的第二行显示正在安装的文件的名称和路径,请在调用FeatureMoveData之前使用INDVFILESTATUS参数调用Enable。

Enable(STATUSEX);
Disable(INDVFILESTATUS);
...
SetStatusWindow(100, "Setup is complete.");
Disable(STATUSEX);