Authenticated download with Inno Setup

自闭症网瘾萝莉.ら 提交于 2019-12-08 12:49:44

问题


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).

How can I include login/password information to exe-file or to force Inno Setup to show authorization window to user?

Because now Inno Setup just shows me error window: access denied, with no possibility to enter login/password.

I'm using Inno Download Plugin for this purpose.


回答1:


Use idpSetLogin function to set the credentials:

procedure idpSetLogin(login, password: String);                
  external 'idpSetLogin@files:idp.dll cdecl';

If you want to query the user for the credentials, you can use CreateInputQueryPage support function.



来源:https://stackoverflow.com/questions/34002150/authenticated-download-with-inno-setup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!