DownloadPage.Add 403 Forbidden

44 views
Skip to first unread message

Pat Sinclair

unread,
Feb 24, 2022, 12:57:32 AM2/24/22
to innosetup
Greetings:
I am trying to figure out how to download zips (contain updated library files) from a sharepoint server.

I am always receiving a Exception Download failed: 403 FORBIDDEN error.
the entry I am adding looks "something" like this:

in the [Files] section I have
Source: "{tmp}\file name.zip"; DestDir:"{tmp}"; Flags: external

What can I do to resolve this?

Thanks a bunch in advance.

Jernej Simončič

unread,
Feb 24, 2022, 2:49:55 AM2/24/22
to Pat Sinclair on [innosetup]

On Thursday, February 24, 2022, 06:57:32, Pat Sinclair wrote:


What can I do to resolve this?

Try downloading the same file with a browser in a private (incognito) window first.

 

-- 
< Jernej Simončič ><><><><>< https://eternallybored.org/ >


The light at the end of the tunnel is the headlamp of an oncoming train.
       -- Lyndons principal

Laurent Combémorel

unread,
Feb 24, 2022, 5:23:10 AM2/24/22
to innosetup

A file that is downloaded at installation time should not be in the [Files] section, it should be downloaded then processed by the code.

More, your entry is a non-sense:
Source: "{tmp}\file name.zip"; DestDir:"{tmp}"; Flags: external
It says to get a file from {tmp} directory to write in the same  {tmp} directory!

Tips for download are on the DownloadTemporaryFile help page. Particularly, the 403 Forbidden error means that an authentication is needed, which you don't provide in your URL... Check the syntax in the indicated help page...

Reply all
Reply to author
Forward
0 new messages