I'm working on a patch for our product. And I noticed that non-versioned files are not cached in "C:\Windows\Installer\$PatchCache$" when they are overwritten during the patch install. It's the reason why I get prompt to resolve source location when I try to uninstall the patch. I checked this on Windows Server 2003 and Windows 7, behavior is the same in both cases: non-versioned files are not cached and versioned files are cached.
Could someone explain me is it proper behavior of windows installer for non-versioned files? Here are some parts of l*v log from sample Test.Wix.msp installing (Test.Wix.txt is non-versioned file, Test.Exe.exe is versioned), here https://docs.google.com/file/d/0BxhGrUzAbn8ySHEtb0lQVlk3eEE/edit you can download full logs and binary files: --------- MSI (s) (84:E0) [18:26:26:814]: Patch Modified Files List: MSI (s) (84:E0) [18:26:26:814]: File = Test.Wix.txt: Final State = Install MSI (s) (84:E0) [18:26:26:814]: File = Test.Exe.exe: Final State = Install ... Action start 18:26:26: InstallValidate. MSI (s) (84:E0) [18:26:26:861]: Feature: Test.Wix; Installed: Local; Request: Reinstall; Action: Reinstall MSI (s) (84:E0) [18:26:26:861]: Component: Test.Wix.txt; Installed: Local; Request: Local; Action: Local MSI (s) (84:E0) [18:26:26:861]: Component: ConnnProp.dll; Installed: Local; Request: Local; Action: Local MSI (s) (84:E0) [18:26:26:861]: Component: Test.Exe.exe; Installed: Local; Request: Local; Action: Local MSI (s) (84:E0) [18:26:26:861]: Component: __Test.Wix.txt65; Installed: Null; Request: Local; Action: Local MSI (s) (84:E0) [18:26:26:861]: Component: __Test.Exe.exe65; Installed: Null; Request: Local; Action: Local ... Action start 18:26:28: InstallFiles. MSI (s) (84:E0) [18:26:28:955]: Patch Modified Files List: MSI (s) (84:E0) [18:26:28:955]: File = Test.Wix.txt: Final State = Install MSI (s) (84:E0) [18:26:28:955]: File = Test.Exe.exe: Final State = Install MSI (s) (84:E0) [18:26:28:955]: Note: 1: 2205 2: 3: MsiPatchOldAssemblyFile MSI (s) (84:E0) [18:26:28:955]: Note: 1: 2228 2: 3: MsiPatchOldAssemblyFile 4: SELECT `MsiPatchOldAssemblyFile`.`Assembly_` FROM `MsiPatchOldAssemblyFile` WHERE `MsiPatchOldAssemblyFile`.`File_` = ? MSI (s) (84:E0) [18:26:28:955]: Note: 1: 2205 2: 3: Error MSI (s) (84:E0) [18:26:28:955]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1302 MSI (s) (84:E0) [18:26:28:955]: Note: 1: 2205 2: 3: MsiSFCBypass MSI (s) (84:E0) [18:26:28:955]: Note: 1: 2228 2: 3: MsiSFCBypass 4: SELECT `File_` FROM `MsiSFCBypass` WHERE `File_` = ? MSI (s) (84:E0) [18:26:28:955]: Note: 1: 2205 2: 3: MsiPatchHeaders MSI (s) (84:E0) [18:26:28:955]: Note: 1: 2228 2: 3: MsiPatchHeaders 4: SELECT `Header` FROM `MsiPatchHeaders` WHERE `StreamRef` = ? MSI (s) (84:E0) [18:26:28:955]: Caching Test.Exe.exe from C:\Program Files (x86)\Test.Wix\Test.Exe.exe for baseline 0 Action ended 18:26:28: InstallFiles. Return value 1. --------- Thanks in advance. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Non-versioned-files-are-not-cached-in-PatchCache-folder-during-patch-install-tp7586063.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users