【问题标题】:InnoSetup - What is the textbox name in the folder selection dialog?InnoSetup - 文件夹选择对话框中的文本框名称是什么?
【发布时间】:2018-01-26 11:38:13
【问题描述】:

你能修改 InnoSetup 中的默认文件夹选择对话框吗?我主要需要在此对话框中更改文件夹路径文本框。当用户单击“下一步”按钮时,它需要检查给定的文件夹路径是否为“C:\Data1”。如果给出了此路径,则需要将其更改为“C:\Data”。

【问题讨论】:

  • 使用文本框是错误的方式,有一个专门的API用于检查和调整PATH。
  • 什么是 API?
  • jrsoftware.org/ishelp,Pascal 脚本

标签: dialog inno-setup folderbrowserdialog


【解决方案1】:

这个解决方案有效,

[code]
function NextButtonClick(CurPageID: Integer): Boolean;
begin
  case CurPageID of
    wpSelectDir:
      begin
        if WizardForm.DirEdit.Text = 'C:\Data1' then 
          WizardForm.DirEdit.Text := 'C:\Data';
      end;
  end;
end;

感谢这些链接,

Get the path in the wpSelectDir before {app} is set Inno Setup

How to allow installation only to a specific folder?

Inno Setup with three destination folders

【讨论】:

    猜你喜欢
    • 2011-04-29
    • 2015-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-21
    • 1970-01-01
    • 1970-01-01
    • 2020-11-24
    相关资源
    最近更新 更多