jason.morris
Posts: 5
Joined: Mon Dec 08, 2014 6:32 pm

Updater unable to download file with credentials

Hi,

I am trying to set up the Advanced Installer Updater. I have successfully created the updates.txt file and the upgraded version of my product. The server from which the updates.txt and upgraded product msi file are being checked needs credentials to be embedded within the URL. The updates.txt file is obviously being read correctly as the update available box is shown when checking for updates from the application (without the need to enter any credentials) however when it comes to download the update file it asks for credentials despite the fact they are included in the updates URL and within the updates.txt file.

The following is the updates.txt file:
;aiu;

[Perception DQ Server Version 1.1.0.0]
Name=Perception DQ - Server
ProductVersion=1.1.0.0
URL=http:username:password@//www.mysite.co.uk/myapplication/RunMeToUpgradeServer.msi
Size=47108096
MD5=c178800b7c60feaf7fed804a273bb349
ServerFileName=RunMeToUpgradeServer.msi
Flags=Critical
FilePath=[APPDIR]PerceptionDQ.exe
Version=1.1.0.0
Description=Upgrade from Version 1.0.0.0 to Version 1.1.0.0

If I enter the credentials manually when prompted the update is downloaded and installed.

I am using version 11.6.3 of Advanced Installer and IE version 11.

All seems to be fine but it is not working, any help will be gratefully received.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater unable to download file with credentials

Hi and welcome to Advanced Installer forums.

In the URL that you posted, the username and password are placed between the ":" and "//" characters, but they should be written after the double slash, as in the example below:

Code: Select all

http://<username>:<pwd>@www.mysite.co.uk/myapplication/RunMeToUpgradeServer.msi
Can you correct this and see if it works?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jason.morris
Posts: 5
Joined: Mon Dec 08, 2014 6:32 pm

Re: Updater unable to download file with credentials

Hi,

Thank you for the reply. It was just a typo error when posting the issue on the forum it is actually as you suggest within the updates.txt file:

URL=http://username:password@www.mysite.co. ... Server.msi

I still am asked for credentials when trying to download the update file.

Jason
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater unable to download file with credentials

Hi Jason,

I'm not sure why this problem appears. Can you send us a sample MSI package that reproduces the issue to support at advancedinstaller dot com, so we can test it and try to investigate the problem?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jason.morris
Posts: 5
Joined: Mon Dec 08, 2014 6:32 pm

Re: Updater unable to download file with credentials

Eusebiu,

I will put together a small MSI to test, as the application is 42mb zipped. I am however confused as to the reason for requesting the MSI package, as the package downloads and installs correctly once the credentials are entered.

The updates.txt file is accessed (read) using the same credentials in the same format, this is working fine when the application checks for updates. The correct update information is retrieved and bug fix/enhancement information is also displayed in the updates available window, it is only upon clicking to continue does it request credentials.

regards,

Jason
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater unable to download file with credentials

Hi Jason,

Sorry because I didn't explain correctly my request, but it is not the installation of the MSI that I want to test. I want to test the updater connection to one of your test servers, if you can configure one in the MSI package.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jason.morris
Posts: 5
Joined: Mon Dec 08, 2014 6:32 pm

Re: Updater unable to download file with credentials

Hi Eusebiu,

I have just emailed a test project with test credentials to access our server. Thanks.

Jason
jason.morris
Posts: 5
Joined: Mon Dec 08, 2014 6:32 pm

Re: Updater unable to download file with credentials

This issue is now resolved.

Thank you for your help.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater unable to download file with credentials

You're welcome Jason. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PavelRakowski
Posts: 5
Joined: Thu Apr 23, 2015 1:50 pm

Re: Updater unable to download file with credentials

RESOLVED? So wtf is solution? I have same issue, why you not post the issue here but in your EMAILS?
I go to buy EnigmaProtector, as you support = shit.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater unable to download file with credentials

Hi,

The solution described in the second post of this thread is correct and it worked for jason.morris. His problem was that he used incorrect credentials (username and password) in the URL and they were not accepted by the server, but when the correct credentials were used, everything worked.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PavelRakowski
Posts: 5
Joined: Thu Apr 23, 2015 1:50 pm

Re: Updater unable to download file with credentials

Ok thanks but anyways is there a way to protect updates pass and user?
I just entered in config.aiu this url:
http://user:pass123@www.website.com/upd ... config.aiu

and then when I lunch Updater.exe manually from installed path, then open TELERIK Fiddler and check the AUTH I get this:
No Proxy-Authorization Header is present.
Authorization Header is present: Basic VnNUYkJ1OUtNNDVkRGVtU0FhVmJuQmVyRGRzc3BsaTU0
Decoded Username:Password= user:pass123


SO for what is this useful if any HACKER can get the Setup and see the protected password? hmm..?? Dont you think it is really useless your soft??

PROBLEM 2:

Also I set this correctly and then lunch app, it use autoupdater, then it not filled user AND pass automatically but popup form opened and I had to enter manually credentials, so another bug, or ???

SO SOME FIX to this both issues of mine?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater unable to download file with credentials

Hi,
Ok thanks but anyways is there a way to protect updates pass and user?
Please note that the "HTTP" protocol is not secure and that is why the username and the password are not encrypted. In order for the information to be encrypted you need to use the "HTTPS" protocol which is a secure protocol.
Also I set this correctly and then lunch app, it use autoupdater, then it not filled user AND pass automatically but popup form opened and I had to enter manually credentials, so another bug, or ???
I'm not sure why this happens. Can you test that URL in a web browser and see if it works there? Otherwise it may be a problem with the configuration of your server.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rileydog
Posts: 17
Joined: Fri Jul 27, 2007 2:00 am

Re: Updater unable to download file with credentials

Hello, I know this is a very old post; however, it addresses what I need.

I have also looked here: viewtopic.php?t=32426

As i understand the solution, it is to included the user/pwd in the url. I understand that.

My Question: How do i make that happen with AI (need new initials for your product ") )? i don't see anywhere in the AI screens to enter the user/pwd, so how would AI attach to the url?

I noticed in the product comparision table, i found this:

FEATURE FEATURE DESCRIPTION
HTTP authentication, HTTPS Downloading over HTTPS is supported, as well as HTTP authentication which prompts for a user and password.

Note: this feature was only for Architect and Enterprise. I have "Professional" Does this mean i can't download files to support what i want to do as described above.


Thanks

Wayne Glover
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Updater unable to download file with credentials

Hello Wayne,

As you've seen, the password and username can be sent via the URL:
Screenshot_35.png
Screenshot_35.png (47.71 KiB) Viewed 2988 times

The URL can be found in the "Updates configuration project", undet the "Properties" tab.
Screenshot_36.png
Screenshot_36.png (18.9 KiB) Viewed 2988 times
Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”