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!

dpearce
Posts: 4
Joined: Fri Oct 06, 2006 6:59 am

A newbie question about updates vs patches

Sorry this may seem a stupid question.

I have created my .msi installer fine and switched on the autoupdate scripts.

I wish to have the ability to update a single file within my application on a regular basis.

I cant seem to grasp the difference between a patch and an updgrade.

Which tutorial should i follow to achieve this?

David
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

On upgrade the old package is automatically uninstalled before installing the new one. To create an upgrade increase the product version and choose yes when you are asked to generate a new product code.

A patch is the difference between two msi packages. Patches are recommended for small updates. Here is a tutorial about how you can create patches:
http://www.advancedinstaller.com/user-g ... patch.html

Is it is something that you don't understand please let me know.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
dpearce
Posts: 4
Joined: Fri Oct 06, 2006 6:59 am

is there any method of just updating a single file in the installation rather than the whole thing.

Problem is that my installation is 47mb and i just want to replace a single 2mb file?

David
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

This can be achieved with a patch. Here is a tutorial:
http://www.advancedinstaller.com/user-g ... patch.html

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
dpearce
Posts: 4
Joined: Fri Oct 06, 2006 6:59 am

Sorry I dont understand

I have tried this by creating a new verison of my software with a single change.

I create a new installer by modifying the first and change the build number by 1.

I then say no to the dialogue when i build it.

I then create a patch using the previous MSI and the new one.

This then creates a small patch file that doesnt seem to do anything to my application, even though i have changed one file in it.

I assume it is not upgrading the first installation file? this would not upgrade the actual application.

Sorry i must be missing something fundamental here?

David
dpearce
Posts: 4
Joined: Fri Oct 06, 2006 6:59 am

Getting there, bit still some problems

OK,

I have created a new version of an installation for my software with just the file i want to change.

I have created the installer and low and behold on the local machine it works!!!

I have now put the patch on the server (increased the version number now) and set the updates.ini file to correspond to it

;aiu;

[Update]
Name=Reportwriter 6
URL=http://www.d2expert.co.uk/A/downloads/r ... h6.0.9.msi
Size=920576
FilePath=c:\ProgramFiles\d2expert\Reportwriter.exe

OK now my local machine sees the update, but when i try to download it it says wrong file size.

I have checked the file size using both the update configuration and the file size on the server and they both agree to 920576

The softeware headlines it as 899K when it shows it in the update download screen.

Any ideas - i feel i am but a milimetre away from success!!!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please try that URL with Internet Explorer and tell me if its downloaded correctly.

Regards,
Gigi
_____________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”