Removing a 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!

mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

Removing a patch!!

I'm a bit disappointed to find that Advanced Installer does not support the creation of removable patches.

I had expected that once I had applied a patch, that I would see the patch show up in "Add/Remove Programs", allowing me to back the patch out if it introduced some undesirable problem.

Since patches are frequently used for deploying 'quick fixes', the chances of needing to do this are quite high. Having to uninstall and reinstall the base package, and then reapply earlier patches is just not acceptable.

This issue is exacerbated the longer the chain of patches is since the base version.

Removable patch support has been in MSI Installer for a while (as of ver 3). Must I resort to using a third party tool to create my patches??

This is the main reason I was considering upgrading from java to enterprise edition, but I don't think so now!

Look forward to your reponse,
Milt
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Milt,

I'm afraid that this feature is not yet implemented. We have it on our TODO list (I increase its priority) and will be available in a future version of AI (I cannot give an ETA for now). Thank you for your suggestion.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

Hmm, I was afraid of that.

After a lot of experimentation, I have managed to work around this I think. What I did was to preserve the pcp file that AI creates, and then edited it with orca to add the PatchMetadata table with the desired values. Then rebuilt the msp manually with msimsp.exe. This ended up being a removable patch.

I still need to investigate how patch sequencing works though.

I hope this whole area will be improved soon...my workaround would still require updating to the enterprise version of AI, which I'm not willing to do yet based on what you've told me.

I really don't fancy the idea of manually creating pcp files if I can avoid it!

...Milt
mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

By the way, I think I just found a nasty bug in your patch creator, which had me confused for a while until I figured out what was happening.

When you select your two msi files (target and upgrade) to use as the basis for patch creation, what's supposed to happen is that an admin install is done on each of the two msi files. But, if an earlier msi with the same ProductCode happens to already be installed on the dev machine, (and this is quite legitimate), it actually did an admin install on that one, i.e. the cached msi held by windows, instead of the file you think it's doing an admin install on. Does that make sense?

This was easy to verify by looking at what files ended up in the images subdirectories. They weren't the right ones.

--Milt
mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

By the way, I think I just found a nasty bug in your patch creator, which had me confused for a while until I figured out what was happening.

When you select your two msi files (target and upgrade) to use as the basis for patch creation, what's supposed to happen is that an admin install is done on each of the two msi files. But, if an earlier msi with the same ProductCode happens to already be installed on the dev machine, (and this is quite legitimate), it actually did an admin install on that one, i.e. the cached msi held by windows, instead of the file you think it's doing an admin install on. Does that make sense?

This was easy to verify by looking at what files ended up in the images subdirectories. They weren't the right ones.

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

Hi Milt,

We cannot reproduce this. In order to investigate it please send to support at advancedinstaller dot com both MSI files (target and upgraded) or a small similar test case reproducing this behavior.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

I think you may be off the hook. The behavior I am seeing appears to be coming from msiexec itself.

I will email you about this, because I can't understand why it's doing what it's doing. I have a simple test case.

--Milt

Return to “Common Problems”