We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mfreeman
Posts: 3
Joined: Thu Feb 06, 2014 9:48 pm

check for updates before installation not working for me

Hello,

When I run my EXE installer, the first thing I see is a "Checking for updates..." message window that displays for one second and disappears. An update is available, but it is not being picked up. The installation wizard just comes up, and when I'm done clicking through, version 1.0 of my program is installed instead of version 1.1. I was expecting, instead, a window to pop up stating that a newer version (1.1) of my program was found and would I like to download and install it. Here are the steps I took:

For the first release of my program (version 1.0), I created a 'Single EXE setup (resources inside)' installer with both of the following options selected:
- Check for updates before installation
- Check for updates using Advanced Updater
For the second release of my program (version 1.1), I created another 'Single EXE setup (resources inside)' installer.
I built an updates configuration file for the new installer.
I placed the updates configuration file and the installer EXE on my website.
I ran the first installer (the one for version 1.0) and got the results described above.
If at this point I run Updater (which was installed by the version 1.0 installer), the update is found and I'm offered a chance to download and install it. If I go ahead and select 'download and install', the installation works smoothly and version 1.1 is installed.

Does anyone have an idea why Updater, but not my EXE installer, would find the update. The same updates configuration file URL is used in both cases---at least that's how I configured it in AI; copy and paste.

Thanks in advance for your help.

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

Re: check for updates before installation not working for me

Hello Mike,

I've tested the scenario using our last version (10.9.1) of Advanced Installer, but I cannot replicate the behavior. Can you please send us the .AIPs (project files) of your initial version, upgraded version and updates configuration project 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
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: check for updates before installation not working for me

Hello Mike,

I've tested the scenario using your sent updates configuration file and I was able to replicate the behavior. It seems that your updates configuration file has different line separators than the config files built using Advanced Installer updates configuration projects. This may happen if you edited (with a different tool) the updates configuration file after it was built with Advanced Installer. Please keep in mind this is not recommended at all.

So, can you please rebuild your updates configuration project, add the built config file on your server and then test again the scenario and see if the behavior still replicates?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mfreeman
Posts: 3
Joined: Thu Feb 06, 2014 9:48 pm

Re: check for updates before installation not working for me

I had not edited the updates configuration file, but I had unknowingly changed the line break characters when I FTPed the file. I just now tried transferring in binary mode and now the EXE installer finds the newer version. Thank you very much for solving my problem.

Do you know why your Updater program works fine (in my test) with the modified line breaks and the EXE installer fails? If possible, shouldn't the two programs (EXE installer and Updater program) work consistently as far as their handling of line breaks goes?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: check for updates before installation not working for me

Hello Mike,
I had not edited the updates configuration file, but I had unknowingly changed the line break characters when I FTPed the file. I just now tried transferring in binary mode and now the EXE installer finds the newer version. Thank you very much for solving my problem.
You're welcome. I'm glad you got this working.
Do you know why your Updater program works fine (in my test) with the modified line breaks and the EXE installer fails? If possible, shouldn't the two programs (EXE installer and Updater program) work consistently as far as their handling of line breaks goes?
Indeed, as you already noticed, the bootstrapper uses a different approach to read the updates configuration file than our Updater tool. However, we will try to add an improvement regarding this in a future version of Advanced Installer. Thank you for your suggestion.

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

Return to “Building Installers”