Tvalone
Posts: 42
Joined: Sat Jul 02, 2016 1:40 am

Updater update placed on a secure server

I am having a hard time understanding how to use the updater piece of Advanced Installer. We have a server that requires you to login to upload and download files. If I want to place a MSI update on that server how do I do that? Where do I provide the login credentials to allow updater to work ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater update placed on a secure server

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can place your updates on an "HTTPS" server and use the solution described in the "Updater unable to download file with credentials" and "URL credentials for updates" threads.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tvalone
Posts: 42
Joined: Sat Jul 02, 2016 1:40 am

Re: Updater update placed on a secure server

Thanks,I was under the impression that Advanced installer will automatically upload the latest MSI to the server. I now see that it builds an executable that connects to the server. Am I correct ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater update placed on a secure server

Hi,

When an Advanced Installer project is build, it creates the package to the output location specified in the "Builds" page. Then, that package can be uploaded on a server where the Advanced Updater tool will connect when it checks for the latest updates.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tvalone
Posts: 42
Joined: Sat Jul 02, 2016 1:40 am

Re: Updater update placed on a secure server

Hello Eusebiu, thanks for your patience!

I have a Visual Studio windows application that I created an installer for. When building it I get output for 2 files. When clicking on the Installer, I get a message saying this cannot be installed by a boot strapper. When clicking on the application it installs. Deleting the installer causes the application to not install.

I think I have this part figured out, but it is still not working for me. You have to place the actual MSI on your server AND the INI file. Then when the customer clicks on the updater, it logs onto the server (this works) and checks the ini file and then if updates are present, it then downloads the new version . However, I cannot get the project to create the ini file.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater update placed on a secure server

Hi,
I have a Visual Studio windows application that I created an installer for. When building it I get output for 2 files. When clicking on the Installer, I get a message saying this cannot be installed by a boot strapper. When clicking on the application it installs. Deleting the installer causes the application to not install.
In the "Builds" page you can find more options related to the package type that will be created by your project (i.e. single MSI, single EXE, etc.). In your case the "EXE setup with resources next to it" option is selected and you need to use the EXE file in order to install the product, not the MSI file. If you want to have only the EXE file you can select the "Single EXE setup (resources inside)" option.
I think I have this part figured out, but it is still not working for me. You have to place the actual MSI on your server AND the INI file. Then when the customer clicks on the updater, it logs onto the server (this works) and checks the ini file and then if updates are present, it then downloads the new version . However, I cannot get the project to create the ini file.
In order to generate the INI file you need to create an "Updates Configuration Project" and configure it as described in the "Create Update File" tutorial.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tvalone
Posts: 42
Joined: Sat Jul 02, 2016 1:40 am

Re: Updater update placed on a secure server

Thanks!

so you cannot create an installer and add the updater piece to it to create the ini file. You have to create an update project. ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater update placed on a secure server

You're welcome.

Indeed, you need to create an Updates Configuration project with the settings you need for your application.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tvalone
Posts: 42
Joined: Sat Jul 02, 2016 1:40 am

Re: Updater update placed on a secure server

Again thanks for you support.

I have built the advanced installer project and installed it on a test machine, Then I built the update project and placed the configuration file on the server here it is

;aiu;

[FGS 3.1.1]
Name = FGS 3.1.1a
ProductVersion = 3.1.1
URL = https://userid:password@205.225.192.110/File Generation System.exe
Size = 6830592
MD5 = 9b462b7d68ecb21116d22b0ef6051dd9
ServerFileName = File Generation System.exe
Flags = Os32Only
RegistryKey = HKLM\Software\DMV\FGS 3.1.0 Installer\Version
Version = 3.1.1
Description = Rest Api Clean Up
BugFix = Rest API now has space in download windows

Here is the config file on the test machine,
[General]
AppDir=C:\Program Files (x86)\California DMV\File Generation System\
ID={F5486EE1-9611-4171-9B65-A17552131C73}
ApplicationName=File Generation System
CompanyName=California DMV
ApplicationVersion=3.1.1
DefaultCommandLine=/checknow
CheckFrequency=2
DownloadsFolder=C:\ProgramData\California DMV\File Generation System\updates\
Flags=NoDisableAutoCheck|VertSplitter|PerMachine|ShowConfigOptionsButton
URL=https://userid:password@205.225.192.110/FGS.txt

When clicking on the updater on the test machine I still get the error message. In following the tutorial, after installing the application on the test machine but before uploading the configuration file to the server, I should get a software up to date message. I tried to duplicate by deleting the configuration file off the server and clicking on the updater but got the same error message.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater update placed on a secure server

Hi,

The configuration file should always be on the server in order for the updater to check it and know if the latest version is installed on the user's machine or not, otherwise an error message will be displayed. Do you get any error when the configuration file is placed on the server?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tvalone
Posts: 42
Joined: Sat Jul 02, 2016 1:40 am

Re: Updater update placed on a secure server

Yes, I get the Invalid configuration file error message.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater update placed on a secure server

Hi,

I'm not sure why you get this error. Can you access your configuration file from a browser using the same URL that you use in the Updater? If so, can you send me your AIP file and the configuration file to support at advancedinstaller dot com, so I can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tvalone
Posts: 42
Joined: Sat Jul 02, 2016 1:40 am

Re: Updater update placed on a secure server

Eusebiu, have you had a chance to review ??
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater update placed on a secure server

Hello Toren,

This happens because the URL you configured in the "Updater" page for your updates configuration file is not pointing directly to the updates configuration file.

In the "Updates Configuration File URL" field from the "Updater" page of your installation project you should set the URL download link of your updates configuration file. Can you please open this link in the IE web browser and make sure the content of your updates configuration project is displayed?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”