updater.exe always gives me 'software is up to date'! - Advanced Installer Community
MarwaAhmad
Posts: 14
Joined: Mon Mar 24, 2014 2:16 pm

updater.exe always gives me 'software is up to date'!

Hi there!
I have an issue with the updater.exe; each time i run it i got your software is up to date although it's not!
Any suggestions?

FYI
updater.ini

[General]
URL=file://person-pc\shared\updates-SetupFiles\updates.txt
AppDir=C:\Program Files\company\TestAdvancedInstaller\
CheckFrequency=2
CompanyName=company
DownloadsFolder=C:\ProgramData\company\TestAdvancedInstaller\updates\
ApplicationName=TestAdvancedInstaller
Flags=PerMachine
ID={F3788A3B-C38F-4277-9AC7-FE92BCE347E5}
ApplicationVersion=1.0.0
DefaultCommandLine=/checknow


And the updates.txt (@ server side)
;aiu;

[Update]
Name=TestAdvancedInstallerUpdates
ProductVersion=5.0.0.0
URL=file://person-pc\shared\TestAdvancedInstaller.exe
Size=5120
ReleaseDate=24/03/2014
MD5=c5c97d87b4f013f31fcfb1678d043cb3
ServerFileName=TestAdvancedInstaller.exe
Flags=NotSelected
FilePath=[APPDIR]YourApplication.exe
Version=1.0.0

Thanks in advance,
Marwa
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: updater.exe always gives me 'software is up to date'!

Hello Marwa and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Unfortunately this happens due to a wrong information in our "Update Properties Tab" article. In order to access a network shared location you should use an URL like this:

Code: Select all

file://\\computername\path\filename.ext
We will correct the above article with this information in a future version of Advanced Installer.

So, in order to test your scenario can you please edit your installation project -> "Updater" page -> Updates configuration file URL" field like this:

Code: Select all

file://\\person-pc\shared\updates-SetupFiles\updates.txt
and your updates configuration project -> "Updates" page -> "Properties" tab -> "Update Properties" section -> "Download URL" field like this:

Code: Select all

file://\\person-pc\shared\TestAdvancedInstaller.exe
rebuild your projects and then test again your scenario?

Also, please take a look on our "Why do I receive the "Some of the updates failed to install properly" message?" FAQ article which should be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MarwaAhmad
Posts: 14
Joined: Mon Mar 24, 2014 2:16 pm

Re: updater.exe always gives me 'software is up to date'!

Thank you Daniel, i build after writing "file://\\" & I could see the updates folder which contains ''updates.aiu".
But when i run the updater.exe(at client side) i still got the software is up to date?! why?
Although the updates.txt (at the server side) contains a version higher than the version located at the client side?
Could the client run the updater.exe in order to install the updated version of the product?


Thanks in advance,
Marwa
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: updater.exe always gives me 'software is up to date'!

Hello Marwa,

Please keep in mind that the updater will find and install the updates only if the search, added in the updates configuration project -> "Updates" page -> "Properties" tab -> "Installed Detection" section, fails. If the above search is successful (this means the updates package is already installed), then the updates package will not be selected to be installed.

So, can you please check your updates detection criteria added in the updates configuration project and test again? If the behavior still persist can you please send us the AIPs (project file) of you target, upgraded and updates configuration projects to support at advancedinstaller dot com so we can investigate them? Also, it would be useful if you could isolate the behavior in a sample and send it us so we can investigate.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MarwaAhmad
Posts: 14
Joined: Mon Mar 24, 2014 2:16 pm

Re: updater.exe always gives me 'software is up to date'!

Hi Danial,
I've checked the Detection criteria and it was "registry value search".
Problem description: updates.aiu is updated but the updates weren't installed.

How to reproduce ?:
1. create the config file using the Advanced Installer updates project config & build.
2. updated the setup.aip project(project contains the updated resources) & build.
3. copy the setup.exe generated from setup.aip to myserver/courierdownload.
4. copy the updates.txt to myserver/courierdownload.
5. run the updater.exe from the client side.
6. i got the courierupdates.aiu up to date
7. i didn't get my updates installed !

Environment
Attached the aip project file and the updates config file project.

BTW, I've checked the registry(HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE) and i didn't find a key with the following name under software
Co\Courier\Version


Waiting for your response after the analysis.
Thanks in advance,
Marwa
Attachments
updates.aip
project to create the updates config. file
(1.37 KiB) Downloaded 271 times
setup.aip
(20.49 KiB) Downloaded 300 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: updater.exe always gives me 'software is up to date'!

Hello Marwa,

I've tested your scenario and I've replicated the behavior. However, please keep in mind that is the normal behavior. This happens because you have added the "TestAdvancedInstaller" application in your updates configuration project -> "Updates" page -> "Update Targets" tab. This means that the updates package added in your updates config project can be downloaded and installed only by the Updater tool installed by the "TestAdvancedInstaller" application setup package. Any other Updater tools (installed by the setup package having a different ProductName than "TestAdvancedInstaller") will ignore this update.

So, can you please remove the "TestAdvancedInstaller" application added in the "Update Targets" tab, rebuild your updates config project and test again your scenario.

Also, as a side note I've observed that your setup package install the "Version" registry value under the following location:

Code: Select all

Software\Co\Courier7.0.0
while you are using the following location for your "Version" registry search in the update config project:

Code: Select all

Software\Co\Courier
Another observation would be that you have added your "updates.txt" file in your updates configuration project -> "Updates" page -> "Properties" tab -> "Update Installer" section -> "File Path" field. Please note that in this field you should add the location of your updates EXE setup (i.e. couriersetup7.0.0.exe).

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MarwaAhmad
Posts: 14
Joined: Mon Mar 24, 2014 2:16 pm

Re: updater.exe always gives me 'software is up to date'!

Thank you Daniel, the issue has been solved just as you stated; modifying the location of the registry and removed the update target from the updates configuration project. Also, I've modified the file path to refer to the installer exe.

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

Re: updater.exe always gives me 'software is up to date'!

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

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

Return to “Common Problems”