Hi Rob, Thanks for your answer. Even if I did not yet find the reason or workaround for the packages being removed from cache on this error, I found the reason for the "Failed to resolve source for file" error. I am using a managed UI which was redesigned starting from the WiX installer managed UI, and the problem was in InstallationViewModel.ResolveSource. this.downloadRetries[e.PackageOrContainerId] = retries + 1; e.Result = retries < 3 && !String.IsNullOrEmpty(e.DownloadSource) ? Result.Download : Result.Ok;
It just stopped due to this on the first package with more than 3 payloads... I will keep looking for the problem with the completely downloaded packages being removed from cache in such a case and send an email or create a bug in case I spot the problem. Thanks, Adrian ________________________________ From: Rob Mensching <r...@robmensching.com> To: Adrian Gantoi <gantoiadr...@yahoo.com>; General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Sent: Monday, August 13, 2012 12:06 AM Subject: Re: [WiX-users] Burn - multiple PackageGroupRef in Chain - download issues There was a bug reported that packages are incorrectly being cleaned from the cache during repair. It is possible this is the same or similar bug. A full log file would be necessary to understand better. You will get the error code on the XxxComplete() callbacks. There is also a bug open to send more error messages. However, I do not understand the root issue that is causing the original failure, triggering the clean up. That would need a more complete log file to diagnose. On Fri, Aug 10, 2012 at 8:20 AM, Adrian Gantoi <gantoiadr...@yahoo.com> wrote: Hi all, > >I have a question on using burn for a multi package install with full download. >I have a chain of packages like below: ><Chain> > <PackageGroupRef Id="msi1"/> > <PackageGroupRef Id="msi2"/> > <PackageGroupRef Id="msi3"/> > <PackageGroupRef Id="msi4"/> > <PackageGroupRef Id="msi5"/> > <PackageGroupRef Id="msi6"/> ></Chain> > > >Each PackageGroup consists of a MSI and it's payloads. All have the >DownloadUrl data set - I deliver only the exe which should download everything. >I did not specify anything for the Cache attribute in any of the MsiPackage >units. > >My problem is that for some reason, at some random point, for example, the >chainer stops with an error like: >Prompt for source of package: 4.msi, payload: aaa.cab, path:... >Failed to resolve source for file: ....aaa.cab, error: 0x80070002. >Error 0x80070002: Failed while prompting for source (original path >'....aaa.cab'). >Failed to acquire payload: aaa.cab to working path: C:\DOCUME~1\....aaa.cab, >error: 0x80070002. > > >This happens randomly for one of the packages (all have large size payloads). >When this happens while downloading payloads for the msi4 package (for >example), the log will show: >Removing cached package: 3.msi, from path: .... >Removing cached package: 2.msi, from path: .... >Removing cached package: 1.msi, from path: .... > > >I end up having after this some still cached files from the 4.msi package (all >that got downloaded), and no files remain cached from the previous packages in >the chain. >If I start the chainer again, the download will be restarted for the first 3 >packages.... and some files will be found when getting to 4th package. >Why do the first 3 get removed and the incompletely downloaded package remains >partially cached ? >I need to avoid the re-download of the first 3 packages due to their big size. >Can I do something that in such a case, all downloaded packages remain cached >until they are uninstalled ? >Specifying Cache="yes" on each MsiPackage will produce this result ? Does >Cache="yes" means they will remain cached until they are uninstalled (even if >they are not installed, just cached after download) ? > > >A second question - is there any event raised/property changed in such a case >(failed download) - just to be able to inform the user about the error ? > >Regards, >Adrian >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >WiX-users mailing list >WiX-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/wix-users > -- virtually, Rob Mensching http://RobMensching.com LLC ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users