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!

R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Replacing previous patches completely

Hi Advanced Installer Team,

At the moment I am creating patches for our product, each patch contains all changed files, so I must replace all previous patches. When I install the patches, I see the following list in programs&features (in the update section):
Programs and Features - Update View.png
Programs and Features - Update View.png (7.25 KiB) Viewed 7564 times
Remarkable here is, that the update 2 is 12.0.5 and update 3 is 12.0.6, but the list shows only 12.0.6 (the latest version) for both patches. I have also trouble uninstalling the patches, I guess this is due to the complete replacement of all files and might be connected to the version number issue.

Please help me to fix the issues with answering the following questions:
  • Is there any chance to hide/replace previous patches?
  • Should uninstalling a patch restore the original/previous version?
  • Can I avoid the removal of the patches completely?
Thanks for helping!

Regards,

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

Re: Replacing previous patches completely

Hello Roland,
Remarkable here is, that the update 2 is 12.0.5 and update 3 is 12.0.6, but the list shows only 12.0.6 (the latest version) for both patches. I have also trouble uninstalling the patches, I guess this is due to the complete replacement of all files and might be connected to the version number issue.
I'm not sure why this happens. In order to investigate closer your scenario can you please send us the .AIPs (project files) of you target installations, upgraded installations and of your patch projects to support at advancedinstaller dot com so we can check their settings? If you cannot disclose the projects, then you can try to replicate the behavior in a sample and send it us alongside a test case so we can test on our end.
Is there any chance to hide/replace previous patches?
Yes, you can use the "Patches to replace" section from your patch projects -> "Patch Details" page.
Should uninstalling a patch restore the original/previous version?
Yes, after uninstalling a patch on target machine should remain only the installed files of the target version of your product.
Can I avoid the removal of the patches completely?
Yes, just make sure the "Allow Patch Removal" option is not checked in your patch projects -> "Add/Remove [Control Panel]" page.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Replacing previous patches completely

Hi Daniel,

I sent you the project files for your review. In the meantime I changed the latest patch (12.0.6) to replace all previous patches according to your instructions:
2014-12-03 14_52_26-Patch Update 3 x64.aip.png
2014-12-03 14_52_26-Patch Update 3 x64.aip.png (3.47 KiB) Viewed 7530 times
But the test environment still shows the same behaviour (I see all previous patches):
2014-12-03 14_58_10-QA - Test Update.png
2014-12-03 14_58_10-QA - Test Update.png (6.3 KiB) Viewed 7530 times
(I just removed the product name)

Removing the patch fails also due to a file installed in the global assembly cache, I create an extra post for this.

How can I fix the behavior?

Regards,

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

Re: Replacing previous patches completely

Hello Roland,

It seems that a newer patch (i.e. v12.0.6) cannot replace previous patches (12.0.3/4/5, etc) which are also targeted by the newer patch. So, if your current patch has as targets previous patch versions (added in the "Images" page of your patch project), then you cannot also add the previous patches in the "Patches To Replace" section of your current patch. Therefore, you should either add a previous patch as a target version for your current patch or add it in the "Patches To Replace" section.

Why do you need to remove a previous patch version which is added as a target for your current patch version?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Replacing previous patches completely

Hi Daniel,

thanks for your quick answer.

The idea is, that this patch is able to be installed on the base version and all previously patched versions, e.g. 12.0.2 - 12.0.x (where x is the current latest version).

Is it sufficient, when I just add it to the "Patches to replace" list instead to the list of target images? Is the patch then installable on all previous versions of the product (because this was problematic until I added them to the target images list)?

Regards,

Roland
R.Mueller
Posts: 202
Joined: Thu Aug 02, 2012 3:31 pm

Re: Replacing previous patches completely

Hi Daniel,

unfortunately this doesn't work:
2014-12-03 16_39_31-QA - Testing patches only.png
2014-12-03 16_39_31-QA - Testing patches only.png (21.54 KiB) Viewed 7523 times
I changed the project file as proposed by you. I removed all the images, except the base version and the updated version and added the other patches as "patches to replace".

I will sent you the project files and the log via email.

Regards,

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

Re: Replacing previous patches completely

Hello Roland,

I've tested the scenario in a sample, but I cannot replicate the issue. Can you please test your setup packages on a clean machine and see if the behavior still persists? It is recommended to use virtual machines with clean snapshots for testing purposes, so that something goes wrong you can easily restore the VM to a clean state.

Also, I've attached a sample (created with AI 11.1) which implements a similar scenario.
sample.zip
(1.13 MiB) Downloaded 544 times
Let us know if this helped.

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

Return to “Building Installers”