Creating second patch. - Advanced Installer Community
supertrio17
Posts: 24
Joined: Mon May 04, 2020 7:06 pm

Creating second patch.

Hi, so I can't really understand how do I do this. I want my patch to be as small as possible. So how do I do multiple patches. For example I already made patch for version 1.0.0 to 1.0.1, but there is no guide for second patch.

I'm a little bit confused, because how do I make a patch that just doesn't grow in size. My first patch was 100mb and secound one should be about the same size. But I don't want my patch to be 200mb. There is no point in it then.

Can anyone tell me how to do this?
supertrio17
Posts: 24
Joined: Mon May 04, 2020 7:06 pm

Re: Creating second patch.

can anyone help?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Creating second patch.

Hi,

To create a second patch you should just create a newer version (e.g. v1.0.2) of your MSI that follow the patch rules. Then simply create a patch between v1.0.1 and v1.0.2 of your MSI packages.

If you have any questions or doubts just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
supertrio17
Posts: 24
Joined: Mon May 04, 2020 7:06 pm

Re: Creating second patch.

Daniel wrote: ↑Tue May 26, 2020 6:27 am Hi,

To create a second patch you should just create a newer version (e.g. v1.0.2) of your MSI that follow the patch rules. Then simply create a patch between v1.0.1 and v1.0.2 of your MSI packages.

If you have any questions or doubts just let us know.

All the best,
Daniel
I'm sorry, I didn't quite understand. I made patch 1 that was patch from v1.0.0 to v1.0.1, and what do I do now, I create patch from v1.0.1 to 1.0.2, do I have to have 2 targets then? Because if that is the case, how do I do that, every time I make a patch I have to have one new target, witch means more space. But is there any way to do this with only one patch.

I do not understad this. So if I have like v1.0.0, v1.0.1 and 1.0.2, how it would update from 1.0.0 to 1.0.2? Can you please like explain it to me?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Creating second patch.

Yes, your supposition is right.

You will have to create a new upgraded version of your setup project (e.g. setup_v1.0.2.msi) each time you want to build a new patch. And then build a patch between target setup_v1.0.1.msi and upgraded setup_v1.0.2.msi.

This is the only solution you can use. You cannot use the previous patch version as a starting point for the new patch version.

If you have any questions or doubts just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
supertrio17
Posts: 24
Joined: Mon May 04, 2020 7:06 pm

Re: Creating second patch.

Daniel wrote: ↑Thu May 28, 2020 11:06 am Yes, your supposition is right.

You will have to create a new upgraded version of your setup project (e.g. setup_v1.0.2.msi) each time you want to build a new patch. And then build a patch between target setup_v1.0.1.msi and upgraded setup_v1.0.2.msi.

This is the only solution you can use. You cannot use the previous patch version as a starting point for the new patch version.

If you have any questions or doubts just let us know.

All the best,
Daniel
But then I see no point in that. I use patches primarly for small updates of 20-50 mb. If every time I have to use more space, then my patch will be bigger than my setup.

Can I do something like for every version one patch so I get something like this. I create patch from v1.0.0 to 1.0.1 and from v1.0.1 to 1.0.2, so here is the idea, I do not use both patches for the first one, but I have something like this. So first I get update for patch v1.0.1 and when that updates I get update for patch 1.0.2.

Hope I made some sence and that this is possible
supertrio17
Posts: 24
Joined: Mon May 04, 2020 7:06 pm

Re: Creating second patch.

bump.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Creating second patch.

Hi,

A patch will only include the diff between two MSI setup packages. Thus in a patch file there will be included only the resources that changes from one version of your MSI to another. Therefore it is very unlikely you will ever get a patch whose size is bigger than the one of your setup package. This will defeat the patch purpose.

If this still does not help you, then please give me more details about your scenario, maybe exemplify a bit.

On a side note, have you tried to create the two patches as per my previous advice? If no, please give it a trial and I am sure you will get a better understanding of how the Windows Installer patches works.

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

Return to “Common Problems”