davidrichens
Posts: 4
Joined: Tue Jan 10, 2012 11:55 am

Patch not applying properly

Hello,

I am trying to create a patch from a large installer (only 1 file has changed)
I have removed all synchronization from the folders and removed all files bar the updated file.

I have then created the patch in the Patch wizard, and set the new patch file and its target file.

The patch runs smoothly, no errors and confirms it has been installed, but when I check the folder for the new file - it hasn't been installed

I was looking for: update_file_test.txt in the updated folder.

The patch creation log is:

Code: Select all

Running MSI patch compatibility tests... done.
Creating PCP database... done.
Creating MSP... 
***** Log starting: 2012-02-19 16:53:48 *****

  INFO: Using Pcp Path: C:\Users\david.richens\Documents\Advanced Installer\Update 2.5.0001\patch\gaia3dpatch_250001.pcp.
  INFO: Using Temporary Directory: C:\Users\DAVID~1.RIC\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 {5524CFE6-44FA-4675-8ED0-E034EB6D482B}.
  INFO: 		PatchOutputPath is C:\Users\david.richens\Documents\Advanced Installer\Update 2.5.0001\patch\gaia3dpatch_250001.msp.
  INFO: 		PatchSourceList is PatchSourceList.
  INFO: 		PATCH_CACHE_DIR is C:\Users\david.richens\Documents\Advanced Installer\Update 2.5.0001\cache.
  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 1.
  INFO: 		OptimizePatchSizeForLargeFiles is 0.
  INFO: 		TrustMsi is 0.
  INFO: 		AllowLaxValidationFlags is 0.
  SCHEMA: Table: ExternalFiles has mismatched schema (or missing column) for: Order
  SCHEMA: Table: ExternalFiles has mismatched schema (or missing column) for: RetainOffsets
  INFO: Phase III:	Entering Prepare Files.
INFO File Key: PlaceGoogleWarehousemodelsinhere.txt is newly added
INFO File Key: update_file_test.txt is newly added
INFO Comparing Files: C:\Users\david.richens\Documents\Advanced Installer\Update 2.5.0001\images\v240001\update.exe C:\Users\david.richens\Documents\Advanced Installer\Update 2.5.0001\images\v250001\update.exe...
INFO Comparing bytes...
  INFO: Phase IV:	Entering Generate Payload.
  INFO: Phase V:	Entering Generate MSP.
  INFO: 		 Generating Patch Metadata.[url][/url]
  INFO: Temporary folder is about to be cleaned out and deleted: C:\Users\DAVID~1.RIC\AppData\Local\Temp\~pcw_tmp.tmp
  INFO: Patch created successfully.
done.
Writing Summary Information... done.

Total build time: 1 sec.
Build finished successfully.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch not applying properly

Hello,

Patching is a very delicate process and requires careful settings and keeping the patching rules:
http://www.advancedinstaller.com/user-g ... tches.html
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Please keep in mind If any of the patching rules is broken, the patch will fail.

Unfortunately, I cannot spot anything from the log file you attached. Perhaps by following our tutorial you can get a different result?
http://www.advancedinstaller.com/user-g ... patch.html

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”