Error in Patch installation

Got a problem you cannot solve? Try here.
manma
Posts: 3
Joined: Sun Oct 04, 2015 8:24 pm

Error in Patch installation

Postby manma » Sun Oct 04, 2015 8:27 pm

You may find my attachment. I built the patch successfully and I ran the patch.

When the patch was installing the things, It got the error.

I cannot find any solution for this. Could anyone help?

[Version: InstallAware X3 (Build 8.03.15) Mevlana]
Attachments
2015-10-05 09_25_04-Setup - InstallAware Wizard.png
2015-10-05 09_25_04-Setup - InstallAware Wizard.png (34.72 KiB) Viewed 3970 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Error in Patch installation

Postby FrancescoT » Mon Oct 05, 2015 11:08 am

Dear Manma,

did you follow the correct steps when creating the patch?

II suggest you to have a look at following topics, where are available useful information on how to avoid common errors with patch creation.

Note, it's also available a ready to use sample project with the second link below.
http://www.installaware.com/forum/viewtopic.php?f=2&t=9656&hilit=+patch
http://www.installaware.com/forum/viewtopic.php?f=2&t=8697

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

manma
Posts: 3
Joined: Sun Oct 04, 2015 8:24 pm

Re: Error in Patch installation

Postby manma » Mon Oct 05, 2015 9:33 pm

FrancescoT wrote:Dear Manma,

did you follow the correct steps when creating the patch?

II suggest you to have a look at following topics, where are available useful information on how to avoid common errors with patch creation.

Note, it's also available a ready to use sample project with the second link below.
http://www.installaware.com/forum/viewtopic.php?f=2&t=9656&hilit=+patch
http://www.installaware.com/forum/viewtopic.php?f=2&t=8697

Hope this helps you.

Regards


I followed http://www.installaware.com/installaware_patching.pdf

I think my steps are correct. Because the Patch built successfully.

Sample Patch (a single text file) can be created. I suspected that is it any problems when compressing some files?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Error in Patch installation

Postby FrancescoT » Tue Oct 06, 2015 11:50 am

Dear Manma,

I am sure you didn't follow the correct steps.

The fact that you are able to build the patch "apparently" correctly, it does not give you any guarantee about the presence of possible error with the patch logic or with patch requirement.

Please have a deeper look at the sample.

In addition, did you had a look at the other link I posted with my previous email?

////////

- 1. The setup logic must be the same across your projects.
To be more clear, the patch project must be the exact copy of the base project.
If for example your base project installs File A and B and with the patch you want to replace file B, the installation of file A must be still present in your patch code. Otherwise out of sync errors may be generated if the MSI database will not match the one generated with the BASE project and consequently, the MSI engine will be not able to identify the MSI patch correctly.

- 2. The project name, Product code, Upgrade code and Version number, must be exactly identical in all patches projects with those defined in the base project. Otherwise even in this case, the MSI engine may generate out of sync errors.

- 3. Each patch project must include the reference (in patch references) to the full build of any previous version involved with the patch process.

If you have:

- Project 1 (base project)
- Project 2 (patch project)
- Project 3 (patch project)

The patch relation references will be:

- Project 1 - No references
- Project 2 - Reference to Project 1 full build
- Project 3 - Reference to Project 1 and Project 2 full build

Without following the above rules, the patch project will be not able to resolve binaries differences correctly at build time.

- 4. The "Always Cache Setup Sources (enables easy patching)" control under "Build Settings" must be checked (not filled).
This must be true with every project involved with your patch process (base and patch projects - please refer to IA documentation for more details).

To conclude you should try to:

- Rebuild your base project using the correct settings as at point 4.
- To create a patch project, open you base project and save it to a different folder.

- Open the project copy (the patch project), verify that everything works exactly as the original and check that all the files involved are present. The main script file must now refer to the new folder location, if not save it (switch To MSICode View, right click the Main Script File listed in the left tree pane and then save it under the new folder).

- Make the required file modifications in the patch project.
Eg, replace File A with its new version and leave all the others files to install as defined in the base project.

- In the Patch project, add the reference to the full build of your base project.

- Produce a full build of your patch project.
- Finally produce a patch build.

I hope the above suggestions will help you with your issue.
Please also remember that patches should be used for minimal modification only.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 84 guests