Patch issues - 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!

Steve524
Posts: 2
Joined: Tue Sep 28, 2010 9:37 am

Patch issues

Hi, I am having a couple of problems creating patches which I suspect are connected.

1: I created a patch which updated version 1.0 of my software to 1.1 .
When I uninstall the software only the file that was changed in 1.1 is removed.

2: I have also created a patch to update from 1.0 or 1.1 to 1.2. I used 1.0 as the Target Image and included the 1.1 patch under 'Patches to replace.
This update will take 1.0 to 1.3 (with the same issue when you uninstall) but fails to update from 1.1 to 1.2.
The error says:

"The upgrade patch cannot be installed by Windows Installer service because the program to upgraded may be missing..."

It seems the patches are removing stored information so that the software is not able to be updated or removed properly.

I would really appreciate any help.
Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Patch issues

Hi,
When I uninstall the software only the file that was changed in 1.1 is removed.
I'm not sure why this happens. Can you please send us the .AIP (project) files for 1.0 and 1.1 versions to support at advancedinstaller dot com so we can investigate them? Also, please attach a verbose log of the installation.
I have also created a patch to update from 1.0 or 1.1 to 1.2. I used 1.0 as the Target Image and included the 1.1 patch under 'Patches to replace.
The correct approach is to add versions 1.0 and 1.1 as targets for version 1.2. An upgraded image can have multiple targets.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Patch issues

Hi,

This happens because the component GUIDs and file sequences have changed in your new version. These changes are not supported by patches.

I noticed you changed the target of your folder synchronization. In this case all files and folders added from the previous synchronization are removed and the new ones are added. So components and files are generated again. The correct approach is this:
- keep the same target folder for synchronization
- close Advanced Installer
- update the synchronized folder on disk
- open your project to synchronize it

This way the files and components in your project are just updated instead of being replaced. If this is not an acceptable solution, you can use a major upgrade instead of a patch.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”