Authenticated download with Inno Setup

2019-06-10 19:15发布

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条回答
不美不萌又怎样
2楼-- · 2019-06-10 20:08

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.

查看更多
登录 后发表回答