gpt4 book ai didi

forms - InnoSetup : How to start the silent installation after showing my own form from the dll?

转载 作者:行者123 更新时间:2023-12-01 15:54:42 30 4
gpt4 key购买 nike

我需要在屏幕上显示我自己的表单后开始静默安装。

怎么做?

这是我的 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;

最佳答案

我为此创建了一个 hack:

[Setup]
DisableWelcomePage=yes
DisableDirPage=yes
DisableProgramGroupPage=yes
DisableReadyMemo=yes
DisableReadyPage=yes
DisableStartupPrompt=yes
DisableFinishedPage=yes


[Code]

const
WM_CLOSE = $0010;
WM_KEYDOWN = $0100;
WM_KEYUP = $0101;
VK_RETURN = 13;

procedure InitializeWizard();
begin
WizardForm.BorderStyle := bsNone;
WizardForm.Width := 0;
WizardForm.Height := 0;
OpenWizardForm(WizardForm.Handle);

// Pressing the default "Install" button to continue the silent install
PostMessage(WizardForm.Handle, WM_KEYDOWN, VK_RETURN, 0);
PostMessage(WizardForm.Handle, WM_KEYUP, VK_RETURN, 0);

// Or can exit the wizard if the user has cancelled installation
// PostMessage(WizardForm.Handle, WM_CLOSE, 0, 0);
end;

关于forms - InnoSetup : How to start the silent installation after showing my own form from the dll?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8757161/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com