[wix-users] Managed Bootstrapper: How to resolve WixAttachedContainer?

Phill Hogland phill.hogland at rimage.com
Wed Sep 16 05:36:20 PDT 2015


I do not know the exact answer to your question about WixAttacedContainer, but use ResolveSource handler to resolve the source to the Container (whether that involves prompting the user or some other approach).

In CacheAcquireComplete you can check a dictionary of packages (like the downloadRetries in InstallViewModel of WixBA in wix source) and determine if you want to retry if it failed, and if so, increment the retry count and  return Result.Retry.  Similar implementation in CachePackageComplete.  Also similar implementation in CacheVerifyComplete, except if you want to retry, increment the retry count and return Result.TryAgain.  In each case if it fails it goes back to ResolveSource, if I recall correctly to give you a chance to  resolve the source.  (In my case I call SetDownloadSource on packages, but not on containers.  I'm not sure the exact function call in your case.)


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Farrukh Waheed
Sent: Wednesday, September 16, 2015 6:58 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Managed Bootstrapper: How to resolve WixAttachedContainer?

This is a re-post. as I'm eager to solve this.

Upon launching setup from Control Panel -> Programs & Features, my installer (MBA) failed with following errors:

[0AB4:096C][2015-09-15T14:52:06]w341: *Prompt for source of
container:* WixAttachedContainer,
path: E:\VA\My.Setup.exe
[0AB4:096C][2015-09-15T14:52:06]e054: Failed to resolve source for file:
E:\VA\My.Setup.exe, error: 0x80070002.
[0AB4:096C][2015-09-15T14:52:06]e000: Error 0x80070002: Failed while prompting for source (original path 'E:\VA\My.Setup.exe').
[0AB4:096C][2015-09-15T14:52:06]e311: Failed to acquire container:
WixAttachedContainer to working path:
C:\Users\My\AppData\Local\Temp\{993269ac-9279-46f9-a14d-29db116d9f1e}\AA0C8038D5F9D76891056E8FA562328025092F68,
error: 0x80070002.

I guess, this was happening in CachePackageBegin event. so I tried to read WixAttachedContainer as string variable, but it popups this error:
---------------------------
Exception
---------------------------
BootstrapperCore:Element not found. (Exception from HRESULT: 0x80070490)
---------------------------

*Question: How can I resolve WixAttachedContainer and raise the dialog to get user's input for "Prompt for source of container"??*

Thanks a bunch

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list