通过Inno Setup进行认证下载 [英] Authenticated download with Inno Setup
问题描述
我的HTTP服务器上有文件应该下载。
我可以从通常的HTTP服务器上正确下载它们,但是我的服务器在下载期间要求授权(这个下载应该受到保护)。
I have files on my HTTP server which should be downloaded. I can properly download them from usual HTTP-server, but my server asks for authorization during download (this download should be protected).
我如何包括登录/密码信息exe文件或强制Inno安装程序向用户显示授权窗口?
How can I include login/password information to exe-file or to force Inno Setup to show authorization window to user?
因为现在Inno安装程序只显示错误窗口:访问被拒绝,无法输入登录名/密码。
Because now Inno Setup just shows me error window: access denied, with no possibility to enter login/password.
我正在使用Inno Download Plugin。
I'm using Inno Download Plugin for this purpose.
推荐答案
使用 idpSetLogin
函数设置凭据:
procedure idpSetLogin(login, password: String);
external 'idpSetLogin@files:idp.dll cdecl';
如果要查询用户的凭据,您可以使用 CreateInputQueryPage
支持功能。
这篇关于通过Inno Setup进行认证下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!