Inno Setup如何在浏览对话框上显示网络? [英] Inno Setup How to show network on a browse dialog?

查看:88
本文介绍了Inno Setup如何在浏览对话框上显示网络?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的设置中,在通过浏览"按钮(例如wpSelectDirCreateInputDirPage)显示的浏览器中,从未显示过网络.

In my setup, in the browser showed by a "Browse" button (wpSelectDir or CreateInputDirPage for example), a Network is never shown.

我已经搜索了一段时间,但是目前还没有找到任何解决方案. 有没有办法显示网络并让用户选择网络路径?

I've searched a while on this but I haven't found any solution for now. Is there a way to show network and let the user select a network path?

谢谢您的帮助!

推荐答案

很难.

但是您可以使用 BrowseForFolder函数,它确实显示了网络.

But you can re-implement the button using the BrowseForFolder function, which does show the network.

例如CreateInputDirPage:

var
  Page: TInputDirWizardPage;

procedure DirBrowseButtonClick(Sender: TObject);
var
  Path: String;
begin
  Path := Page.Values[0];
  if BrowseForFolder(SetupMessage(msgBrowseDialogLabel), Path, True) then
  begin
    Page.Values[0] := Path;
  end;
end;

procedure InitializeWizard();
begin
  Page := CreateInputDirPage(...);
  Page.Add('');
  Page.Buttons[0].OnClick := @DirBrowseButtonClick;
end;

这篇关于Inno Setup如何在浏览对话框上显示网络?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆