nistech
Posts: 3
Joined: Fri Mar 07, 2014 3:38 pm

Patch creation incorrect with 11.6

Hello!

I create patches for customers rollout. This is my patch structure:
- Version 7.3 (family)
-- Version 7.2 (target)
-- Version 7.1 (target)

the Version 7.3 is created with Advanced Installer 11.6, the other Versions are created with 11.4 or ealier. The patching from 7.1 to 7.2 was created without Problems. Now the patch from 7.1/2 to 7.3 is created without errors (only the warnings using different authoring tools, causes in the different versions of Advanced Installer). But the patch is not functionally. It patches only a view files. A view with Orca (opening 7.1 or 7.2 and view patch 7.3) offers, that the new version numbers are not applied. The patch uses the old version numbers. But some patched files has the correct version numbers.
I tried out to create a patch with InstallShield trial, based on the same MSI (7.1 or 7.2) and changed files. This patch has the correct version numbers.

Is this a known bug? When an update is released for this?

Twice, I saw that my main application file has the version with max(uint) (65535.65535.65535.65535). I think this behavior is, because the checkbox "Always replace" in the file properties was checked. I think that a warning should appear. This file is actually not capable patch, because it cannot have a higher version number in file table.
But just this file is patched. But the filetime is not correct on the target system. Can you explain this?

Greetings from Germany

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

Re: Patch creation incorrect with 11.6

Hello Sylvio,

I apologize for my delayed reply, but we are quite busy at the moment.
the Version 7.3 is created with Advanced Installer 11.6, the other Versions are created with 11.4 or ealier. The patching from 7.1 to 7.2 was created without Problems. Now the patch from 7.1/2 to 7.3 is created without errors (only the warnings using different authoring tools, causes in the different versions of Advanced Installer). But the patch is not functionally. It patches only a view files. A view with Orca (opening 7.1 or 7.2 and view patch 7.3) offers, that the new version numbers are not applied. The patch uses the old version numbers. But some patched files has the correct version numbers.
I tried out to create a patch with InstallShield trial, based on the same MSI (7.1 or 7.2) and changed files. This patch has the correct version numbers.

Is this a known bug? When an update is released for this?
This may happen because you have built the target and upgraded MSI with different Advanced Installer versions. I'm afraid we cannot guarantee the accuracy of the patch build process when the target and upgraded MSI files are built with different authoring tools (even with different Advanced Installer versions). Can you please try to build the upgraded MSI using the same Advanced installer version as for your target MSI and test again the scenario?
Twice, I saw that my main application file has the version with max(uint) (65535.65535.65535.65535). I think this behavior is, because the checkbox "Always replace" in the file properties was checked.

That's right. When the "Always overwrite existing file" option is enabled for a file the "65535.65535.65535.65535" value (highest possible) is set in the "Version" column from "File" table.
I think that a warning should appear. This file is actually not capable patch, because it cannot have a higher version number in file table.
But just this file is patched. But the filetime is not correct on the target system. Can you explain this?
Even when the target and upgraded files have the same version (i.e. 65535.65535.65535.65535) the patch will install the upgraded file. This is because when launching a patch built with Advanced Installer the "REINSTALLMODE" property is set to "ecmus". The "e" code means that the source file will be reinstalled if the target file is missing, or is an equal or older version.

If you have any questions let us know.

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

Return to “Common Problems”