Problem with update - Advanced Installer Community

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!

breitbach@treucom.de
Posts: 2
Joined: Sat Feb 04, 2012 1:02 pm

Problem with update

Hello,

I'm new to advanced installer and I don't understand how to build automatical updates. I read the tutorials and search the forum, but I can't find an answer.

I made an install msi V 4.0.50. After that I generated two patches
Patch V 4.0.51.msp and
Patch V 4.0.52.msp

When I installed V 4.0.50 I can run Patch V 4.0.51 and so I have installed Version 4.0.51.
After that I run Patch V 4.0.52 and I so I have installed Version 4.0.52.

Now I configure the updater.

If the Version 4.0.50 is installed and I checked for Updates the updater gives the message actualising found. ==> Patch 4.0.52 installed
After the download and installation I have the Version 4.0.52 installed. Thats very good.

If the version 4.0.51 is installed and I checked for Updates the updater gives the message : Your Software is actual. Not so good.


======================================================================================================================================
My updater.ini :
======================================================================================================================================

[General]
AppDir=C:\Program Files (x86)\Treucom Data Consult GmbH\RepKon 2012\
CheckFrequency=2
CompanyName=Treucom Data Consult GmbH
ApplicationName=RepKon 2012
ID={80CE0C31-5BB0-46E1-A7A4-AA0D1EE99DC3}
ApplicationVersion=4.0.52
DownloadsFolder=C:\Users\breitbach.DDP\AppData\Roaming\Treucom Data Consult GmbH\RepKon 2012\updates\
URL=http://www.treucom.de/download/UpdateRe ... pdates.txt


======================================================================================================================================
My updates.txt :
======================================================================================================================================
;aiu;

[Update V 4.0.52]
Name=RepKon 2012 Patch V 4.0.52
ProductVersion=4.0.52
URL=http://www.treucom.de/download/UpdateRe ... 4.0.52.msp
Size=45568
MD5=0c711b1310d63398af723f74f16913ce
ServerFileName=patchV4.0.52.msp
Flags=Critical|IsPatch
RegistryKey=HKUD\Software\Treucom Data Consult GmbH\RepKon 2012\Version
Version=4.0.51
Replaces=All

[Update V 4.0.51]
Name=RepKon 2012 Patch V 4.0.51
ProductVersion=4.0.51
URL=http://www.treucom.de/download/UpdateRe ... 4.0.51.msp
Size=27648
MD5=b2710ba0f66aaa6899d7c5a7cb2d9596
ServerFileName=patchV4.0.51.msp
Flags=Critical|IsPatch
RegistryKey=HKUD\Software\Treucom Data Consult GmbH\RepKon 2012\Version
Version=4.0.50
AutoCloseApplication=[APPDIR]RepKon2012.exe|;;NoRestart

I don't understand what I make wrong. Please can you give me a tip ?

Thanks a lot for help

Jürgen
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem with update

Hi Jürgen and welcome to Advanced Installer forums,

I believe your problem lies in the "Installed Detection" criteria:
http://www.advancedinstaller.com/user-g ... rties.html

The detection criteria must determine if the version of the patch is already installed. If the comparison condition is true, the patch is considered installed.
You need to set the "Expected value" field to the version number of the patch. You current settings are:
  • 4.0.51 for patch 4.0.52
  • 4.0.50 for patch 4.0.51
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
breitbach@treucom.de
Posts: 2
Joined: Sat Feb 04, 2012 1:02 pm

Re: Problem with update

Hello Mihai,

It works. Maybe the problem is that my english is not so good as my german.

Thanks a lot for your help.

Jürgen
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem with update

You're welcome Jürgen, glad to help.

Return to “Common Problems”