Problem with Online Updater - Advanced Installer Community
RoSch
Posts: 11
Joined: Fri Feb 06, 2015 10:53 am

Problem with Online Updater

Hello Team,

i have buyed advanced installer for automation of setup creation on my build server.
It is a joy to work with especially in comparison to my install shield experiences ;)

However, i have one issue or maybe i only need some clarification from your side:

1.) I have configured your online update application so it gets called from my application on startup.
I also have configured your update application using the update service so no elevation is required.
This works fine for the most part, but i have seen one reproducable issue:

- When my build server builds a new setup for my application and the preconditions are as follows:
- When my Application has changed (new exe, new dll, etc), but no changes on the advanced installer setup.aip project were made everything works as expected.
Online Update downloads and installs without any issues and is really quick.

- When my build server builds a new setup for my application and the preconditions are as follows:
- When my Application has changed and i have modified the advanced installer setup.aip project as well (say, removed a link, the smallest change is enough) then something weird happening:
- Online Update downloads setup as normal, but then for some minutes nothing happened. After a couple of minutes, the setup gui shows up (normally i have configured the project to hide the gui...) if i hit cancel the update failes.
If i click next the updated setup gets installed.
After this the following online updates are again acting normal as long as i did not change settings on the .aip file.

Is this normal behavior?

Best Regards
Robert
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with Online Updater

Hello Robert and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

As long as you have implemented all steps as it is exposed in our "Handle updates without elevation" article, the updates installation should be performed without any UI.

However, in order to get a better view of your projects settings, can you please send us your .AIPs (project files) of the old product version, of the new (updated) product version and of your updates configuration file to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RoSch
Posts: 11
Joined: Fri Feb 06, 2015 10:53 am

Re: Problem with Online Updater

Thanks for your reply Daniel.

I have sent you an email as requested.

Do note: Old and New Version are the same .aip projekt file, i use it on my build server and set new version information via command line.

Best Regards
Robert
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problem with Online Updater

Hi Robert,

I apologize for the delayed reply.

I looked over the AIP file that you sent and I noticed that the "Start" option is not checked for the control operation of the "updater" service in the "Services" page. Are you sure that the "updater" service is started (you can check this in the "services.msc" window) when you try to update your application?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RoSch
Posts: 11
Joined: Fri Feb 06, 2015 10:53 am

Re: Problem with Online Updater

Hello Eusebiu,

i have checked the updater service while installing as you suggested.
Indeed it is not running when i encounter the problem.
However, if i start it manually it automatically stops a second later.
What can be the cause for that?

I automatically create two setup packages, one for production and one for development (They have both different Product Codes and names, but do include the same files)
For that reason, both installed applications are bundled with the advanced installer online update.exe (with the exact same executable name)
I mention this because i can only find one updater service in service.msc list pointing to executable from my development setup package. (online update executable from product setup package is not there.)

Is this ok?

Best Regards
Robert
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problem with Online Updater

Hi Robert,
i have checked the updater service while installing as you suggested.
Indeed it is not running when i encounter the problem.
However, if i start it manually it automatically stops a second later.
What can be the cause for that?
I found that this is the normal behavior. The "updater" service is set to start "on demand" (when the "updater.exe" application is launched) and that's why it stops when the "updater.exe" application does not run.
I automatically create two setup packages, one for production and one for development (They have both different Product Codes and names, but do include the same files)
Please keep in mind that when you want to duplicate a project, you should not copy and past it and only change the Product Code, you need to use the "Save as template" option to avoid other problems.
I mention this because i can only find one updater service in service.msc list pointing to executable from my development setup package. (online update executable from product setup package is not there.)

Is this ok?
This behavior is normal, but I do not think it is ok. It is normal because two services with the same name cannot be installed on a machine, hence only one of them will be installed.

However, it is recommended that you set different names for the two services, so they will be both installed and each packages will have its own service.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RoSch
Posts: 11
Joined: Fri Feb 06, 2015 10:53 am

Re: Problem with Online Updater

Hello again Eusebiu,

i have recreated the second (beta) installer project by using a template from the first one as you suggested.
Additionally i have renamed the updater service in both projects to different names.
At first, the error persists. But after a reboot of my testing machine, everything runs as expected.
I have done a couple of tests (and will do some more ;))
but i haven't had a single problem since then.

Thank you very much for your help!

Best Regards
Robert
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problem with Online Updater

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

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”