myost21
Posts: 6
Joined: Tue Jan 17, 2012 3:49 pm

Issue Patching install

Hi,

I'm receiving the following error during the creation of a new patch. We've upgraded from 10.2 to 10.6 since the previous patch. Here's the log...any ideas?

Checking builds status... done.
Build required.
Building package: C:\Users\matt.yost.GLDSOLUTIONS\Documents\Advanced Installer\Projects\GTMS Ship - 3.2.11\Patch Files\patch3211.msp
Running MSI patch compatibility tests...
Warning: Different authoring tools versions. The target "W:\SMS\3.2.10\Setup\Client\3.2.10g\smsclientupdate3210.msi" was built with "Advanced Installer 10.0 build 50412" and the upgraded "W:\SMS\3.2.10\Setup\Client\3.2.11\smsclientupdate3210.msi" was built with "Advanced Installer 10.6 build 53162".

Analyzing the MSI files found that the resulting patch might not apply correctly. The target or upgraded MSI broke some of the patch rules. For more details, please see the Patch help page.
done.
Creating PCP database... done.
Creating MSP...
***** Log starting: 2014-01-07 14:08:14 *****

INFO: Using Pcp Path: C:\Users\MATTYO~1.GLD\Documents\Advanced Installer\Projects\GTMS Ship - 3.2.11\Patch Files\patch3211.pcp.
INFO: Using Temporary Directory: C:\Users\MATTYO~1.GLD\AppData\Local\Temp\~pcw_tmp.tmp.
INFO: Passed all of the main control parameter validation to PatchWiz, now calling the next 5 phases.
INFO: Phase I: Entered validation and processing phase.
INFO: Validation of Pcp.
INFO: MinimumRequiredMsiVersion is 200.
INFO: SEQUENCE_DATA_GENERATION_DISABLED is 1.
INFO: ListOfPatchGUIDsToReplace is .
INFO: ListOfTargetProductCodes is *.
INFO: MsiFileToUseToCreatePatchTables is .
INFO: PatchGUID is {8D745666-825D-4A60-B2ED-A6C99B05F15F}.
INFO: PatchOutputPath is C:\Users\MATTYO~1.GLD\Documents\Advanced Installer\Projects\GTMS Ship - 3.2.11\Patch Files\patch3211.msp.
INFO: PatchSourceList is PatchSourceList.
INFO: PATCH_CACHE_DIR is .
INFO: AllowDualPatch is 0.
INFO: AllowProductCodeMismatches is 1.
INFO: AllowProductVersionMajorMismatches is 1.
INFO: ApiPatchingSymbolFlags is 0.
INFO: DontRemoveTempFolderWhenFinished is 0.
INFO: IncludeWholeFilesOnly is 0.
INFO: PATCH_CACHE_ENABLED is 0.
INFO: OptimizePatchSizeForLargeFiles is 0.
INFO: META_DATA_GENERATION_DISABLED is 0.
INFO: TrustMsi is 0.
INFO: AllowLaxValidationFlags is 0.
INFO: Phase III: Entering Prepare Files.
ERROR: Could not create the patch authoring transform at path: C:\Users\MATTYO~1.GLD\AppData\Local\Temp\~pcw_tmp.tmp\smsclientu_1Tosmsclientu.MST.
ERROR: The Last Error Received is: 1624
ERROR: The Last Error Received is: 1: 2248 2: C:\Users\MATTYO~1.GLD\Documents\Advanced Installer\Projects\GTMS Ship - 3.2.11\images\smsclientu\smsclientupdate3210.msi 3: Patch 4: 2
INFO: Temporary folder is about to be cleaned out and deleted: C:\Users\MATTYO~1.GLD\AppData\Local\Temp\~pcw_tmp.tmp
ERROR: Internal PatchWiz Error occurred.
ERROR: The Last Error Received is: 145
ERROR: During cleanup, could not delete the temporary folder: C:\Users\MATTYO~1.GLD\AppData\Local\Temp\~pcw_tmp.tmp.
ERROR: The Last Error Received is: 145
ERROR: Internal PatchWiz Error occurred.
ERROR: The Last Error Received is: -1072803323
error.
MsiMsp.exe failed to create the patch file.

Build finished because an error was encountered.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Issue Patching install

Hello,

This is happening because you are trying to create a patch between two .MSIs which are build with different versions of Advanced Installer. This is why you get that warning :
Warning: Different authoring tools versions. The target "W:\SMS\3.2.10\Setup\Client\3.2.10g\smsclientupdate3210.msi" was built with "Advanced Installer 10.0 build 50412" and the upgraded "W:\SMS\3.2.10\Setup\Client\3.2.11\smsclientupdate3210.msi" was built with "Advanced Installer 10.6 build 53162".
Please keep in mind that when you authoring a patch package you have a number of restrictions.

So, here is what you can try:
1) create the upgrade project using the 10.0 version of Advanced Installer and then create the patch project.
2) Create the upgrade project using the 10.6 version of Advanced Installer(or the last version 10.8 ) and send the updates as a major update, not as a patch.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
myost21
Posts: 6
Joined: Tue Jan 17, 2012 3:49 pm

Re: Issue Patching install

I understand that it would be a warning but is that what is causing the error? It seems to me that Msimsp wouldn't really care what the authoring tools are as long as they follow Windows Installer's patching rules.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Issue Patching install

Hi,

Each new Advanced Installer version includes new features, improvements and bugfixes. Therefore, some differences may appear between packages created with different versions of Advanced Installer because new Advanced Installer version will include new code compared to an older version.

Since the patch creation process is very strict and doesn't allow many changes, it is not recommended to create a patch between packages created with different versions of Advanced Installer.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”