简体   繁体   English

NsDialog NSIS页面的文件安装

[英]Files Installation for a NsDialog NSIS page

I have written my installer pages with the custom UI needed. 我已经用所需的自定义UI编写了安装程序页面。 I dont understand where to put the actual installation part code. 我不知道将实际安装零件代码放在哪里。 For eg: I want to extract some files and stamp them. 例如:我想提取一些文件并标记它们。

I have a installation progress bar status page. 我有一个安装进度栏状态页面。 I am trying to perform all these operations while user is on this page. 我正在尝试在用户位于此页面上时执行所有这些操作。

Wrote a function as follows 编写功能如下

Function MyInstallFun

;Extract something
;Execute msi file
;Execute bat file

FunctionEnd

I tried following approach 我尝试了以下方法

Page custom ProgressPage MyInstallFun 

But this way the part is executed on after user clicks Next 但是这样,在用户单击“下一步”之后就可以执行该部分

Also, Tried Call MyInstallFun from inside of Function ProgressPage but the UI looks blank for a while until operations take place and then progress Page is displayed which is wrong. 另外,尝试从Function ProgressPage内部Call MyInstallFun ,但是UI会显示一段时间,直到进行操作,然后显示进度页面,这是错误的。

Can someone please suggest how to install some heavy files using NSDialog custom page? 有人可以建议使用NSDialog自定义页面安装一些繁重的文件吗?

You are not really supposed to perform long operations on other pages. 您实际上不应该在其他页面上执行长时间的操作。 You could try running the operation in a background thread ... 您可以尝试在后台线程中运行操作...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM