Question about automatice updater (regarding Patch) - 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!

javaguy
Posts: 9
Joined: Thu Jun 15, 2006 3:02 pm

Question about automatice updater (regarding Patch)

Hi,
If I understand this correct, updater works like:
1. check to see if there is a new version (or different file size)
2. download new installer onto a local folder
3. uninstall old one
4. install new one

I wonder if there is a way to only update one or some packages instead of the whole thing. e.g. there are 5 jar files in a .msi installer, but only one jar includes some bug fixes. Now what I want is automatic updater only updates (download) this changed jar and replaces (or overwrites) the old one.
Thanks a lot.
Last edited by javaguy on Fri Jun 16, 2006 9:18 pm, edited 1 time in total.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

What are you trying to do can be achieve with a patch. Create a patch between old version and the new version of your package and then the updater will download this patch and install it.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
javaguy
Posts: 9
Joined: Thu Jun 15, 2006 3:02 pm

OK. I tried as you suggested.
It works but not as expected. Maybe I missed something. Now the automatic updater can install my patch when clicking on updater icon on desktop (I set /checknow). I thought the updater should report something like your software is up to date when I click on the updater icon second time but unfortunately it pops up a window and install it again. That's ugly. is there any way to avoid it? Many thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I think that you forgot to specify in the updates configuration file (the updates.ini file on your server) a criteria to determine if the update is already installed on the target computer. If this does not solves the problem then please send us the ini file to support at advancedinstaller dot com.

Please see the following link:
http://www.advancedinstaller.com/user-g ... ation.html

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
javaguy
Posts: 9
Joined: Thu Jun 15, 2006 3:02 pm

Thanks for your link to a document. It helps to solve my problem. Actually I put '/' after [APPDIR]. The slash caused the problem. Thanks for your help.
javaguy
Posts: 9
Joined: Thu Jun 15, 2006 3:02 pm

Another problem:
Now my patch works fine for sequential ones. e.g. I have three patches (same jar file but different size in each patch), second patch works only after the first one is installed, and the third one follows the same pattern. However what if users install application prorgam while the third patch is deployed.
My question is how to handle multiple patches. That is, how to let users directly install the most current patch or intall all patches and keep the newest one but never install old ones next time when users click on updater icon . I tried keys like Depends or Replaces but it seems not play the trick. Many thanks.
javaguy
Posts: 9
Joined: Thu Jun 15, 2006 3:02 pm

I find a solution. Actually I put patch descriptor in wrong order. Here is a link giving more details about how to do http://www.advancedinstaller.com/user-g ... dater.html

Return to “Common Problems”