Issue creating 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!

lakpappu
Posts: 9
Joined: Fri Feb 19, 2010 1:39 pm

Issue creating a patch

Hi Team,

I am pretty new to Advanced installer.I was trying a create a patch after reading stuff from the below link:

http://www.advancedinstaller.com/user-g ... patch.html
demo.gif
demo.gif (14.67 KiB) Viewed 3478 times
I have a folder demo which the folders F1 and F2.

F1 has files x1,x2 and Folder f2 has files b1,b2.I am building a simple project exe with Version 1.0.0 using the simple project build demo.

After installing this version in my system I created a new patch following the tutorial above by adding one more file to the Folder F1 and one more Folder F3 to the root folder(I removed the previous files in Folder F1 and the Folder F2).

For some reason when I run the patch it is not updating in my system,Can some1 help me to solve this issue.

Thanks,
Pavan Pappu.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Issue creating a patch

Hi Pavan,

Please note that when using a patch to deploy an update for your application you must not delete or rename
any files from the first version, i.e. the one that is updated.

In your case:
  • F1 has files x1,x2
  • F2 wil need to have files x1,x2 and the new ones b1 and b2 in order for the path to install correctly
Please use the following tutorial when creating the patches. Pay attention to the rules enumerated.

If you have other questions please let us know.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lakpappu
Posts: 9
Joined: Fri Feb 19, 2010 1:39 pm

Re: Issue creating a patch

Hi Bogdan,

Thank you very much for all your support,I built the patch using the links you provided.

Attached is the file structure I am using to build original and the patch versions. But I am getting the error below when I use this one:
errorMessage.gif
errorMessage.gif (16.35 KiB) Viewed 3466 times
I am not getting a error when I include the updated version files only in the patch and build the exe.My version is 6.9.2(an older one).Let me know if there is some other mechanism to build a patch in that version.

Thanks,
Pavan Pappu.
Attachments
demo1.0.1.zip
First patch of version#1.0.1.Added a file in Folder f1 and added a new folder in the root directory.
I am removing the old version files in the Target structure tree and adding this one to it and later changing the version and clicking on "No" button.
Next I am following the steps in the article.
(1.09 KiB) Downloaded 251 times
demo1.zip
First version of install version#1.
(695 Bytes) Downloaded 314 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Issue creating a patch

Hi,

You are encountering this behavior because you are creating the upgraded package incorrectly. A patch for a previous installation is done by modifying the Advanced Installer project of that installation.

Here are the steps you can follow:
- back-up of the AIP of the first installation
- open the AIP of the first installation in Advanced Installer
- in the "Product Details" page increase the version (in the "Product Version" field)
- after you select another page you are prompted about changing the Product Code
- in this dialog select "No" because the target and upgraded packages must have the same product code
- update the package (add/modify files, registry keys etc.)
- make sure that nothing is removed from the project
- save and build the project (the target and upgraded packages must have the same name, for example: "test.msi")
- in Advanced Installer create a Patch project
- set the target (old MSI) and the upgraded (updated MSI) packages
- build the project

Please note that a patch must respect some rules in order to work correctly.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lakpappu
Posts: 9
Joined: Fri Feb 19, 2010 1:39 pm

Re: Issue creating a patch

Thank you very much for the update Cosmin and Team.

It worked the way you explained.

Thanks,
Pavan Pappu.

Return to “Common Problems”