InnoSetup:如何在从 dll 显示我自己的表单后开始静默安装?
在屏幕上显示我自己的表单后,我需要开始静默安装。
怎么做呢?
这是我的 ISS 代码,OpenWizardForm
过程是从我自己的 DLL 导入的。它将打开模式表单,接受用户数据,关闭模式表单,然后继续执行。
[Setup]
DisableWelcomePage=yes
DisableDirPage=yes
DisableProgramGroupPage=yes
DisableReadyMemo=yes
DisableReadyPage=yes
DisableStartupPrompt=yes
DisableFinishedPage=yes
[Code]
procedure InitializeWizard();
begin
WizardForm.BorderStyle := bsNone;
WizardForm.Width := 0;
WizardForm.Height := 0;
OpenWizardForm(WizardForm.Handle); // here is my own modal form will appear
// and now the silent installation must be started
end;
I need to start the silent installation after showing my own form on the screen.
How to do that?
Heres is my ISS code, an OpenWizardForm
procedure is imported from my own DLL. It will open the modal form, accept the user's data, close the modal form and then continue execution.
[Setup]
DisableWelcomePage=yes
DisableDirPage=yes
DisableProgramGroupPage=yes
DisableReadyMemo=yes
DisableReadyPage=yes
DisableStartupPrompt=yes
DisableFinishedPage=yes
[Code]
procedure InitializeWizard();
begin
WizardForm.BorderStyle := bsNone;
WizardForm.Width := 0;
WizardForm.Height := 0;
OpenWizardForm(WizardForm.Handle); // here is my own modal form will appear
// and now the silent installation must be started
end;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我为此创建了一个黑客:
I created a hack for this:
安装程序一旦开始就无法保持静默。
唯一的方法是在命令行上传递
/silent
或/verysilent
参数。It is not possible to make the setup silent once it's started.
The only way is to pass the
/silent
or/verysilent
parameter on the command line.