sorry for the confusion. Try to re-describe the issue.

Build Bundle:
- All packages included in single web package (NetFX 4.51 + our installer):
MyBootstrapper.exe
- Rename to MyBootstrapper_1.00_x86.exe

Test Bundle on Win 7 VM:
MBAPreq appears ->  Install NetFx
4.51 success -> Reboot -> OurBAL appears -> Start Install ->
Before mentioned log + error 0x80070002

So how to tell the engine how to use WixBundleOriginalSource
(C:\Users\MyCompany\Desktop\Release\MyBootstrapper_1.00_x86.exe). And not
C:\Users\MyCompany\Desktop\Release\MyBootstrapper.exe?

OnResolveSource? Can this set the installation source to
WixBundleOriginalSource? Or how to tell the BAL to use the renamed Bundle?
When we do not rename the bundle it works perfectly.
Or is renaming of such a bundle no good idea?


2014/1/15 Rob Mensching <r...@robmensching.com>

> I'm a bit confused by your comments below but if a source file is missing
> (in this case the attached container) OnResolveSource() needs to respond
> with the correct path.
>
> -----Original Message-----
> From: Tobias S [mailto:tobias.s1...@gmail.com]
> Sent: Wednesday, January 15, 2014 12:40 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Failed to resolve source for file after reboot in
> custom BAL
>
> Hi,
>
> We created a custom BAL. Using this BAL we created a bundle containing Net
> FX 4.51. Now we install it on a Win 7 VM. MBAPreq appears ->  Install NetFx
> 4.51 success -> Reboot -> OurBAL appears -> Start Install ->
> [0380:0B04][2014-01-13T16:59:25]: Failed to resolve source for file:
> C:\Users\MyCompany\Desktop\Release\MyBootstrapper.exe, error: 0x80070002.
> [0380:0B04][2014-01-13T16:59:25]: Error 0x80070002: Failed while prompting
> for source (original path
> 'C:\Users\MyCompany\Desktop\Release\MyBootstrapper.exe').
>
> We did a renaming after building the Bundle!
>
> Log:
> [0250:0448][2014-01-13T16:51:00]: Caching bundle from:
>
> 'C:\Users\MyCompany\AppData\Local\Temp\{7add70a9-0569-413f-a5bd-5433197d64cf}\.be\MyBootstrapper.exe'
> to: 'C:\ProgramData\Package
> Cache\{7add70a9-0569-413f-a5bd-5433197d64cf}\MyBootstrapper.exe'
> ...
> [0778:0AFC][2014-01-13T16:54:03]: Variable: WixBundleOriginalSource =
> C:\Users\MyCompany\Desktop\Release\MyBootstrapper_1.00_x86.exe
> ...
>
> 0380:03EC][2014-01-13T16:59:25]: Apply begin
> [0380:0B04][2014-01-13T16:59:25]: Prompt for source of container:
> WixAttachedContainer, path:
> C:\Users\MyCompany\Desktop\Release\MyBootstrapper.exe
> [0380:0B04][2014-01-13T16:59:25]: Failed to resolve source for file:
> C:\Users\MyCompany\Desktop\Release\MyBootstrapper.exe, error: 0x80070002.
> [0380:0B04][2014-01-13T16:59:25]: Error 0x80070002: Failed while prompting
> for source (original path
> 'C:\Users\MyCompany\Desktop\Release\MyBootstrapper.exe').
> [0380:0B04][2014-01-13T16:59:25]: Failed to acquire container:
> WixAttachedContainer to working path:
>
> C:\Users\MyCompany\AppData\Local\Temp\{7add70a9-0569-413f-a5bd-5433197d64cf}\3313F36671A1B7780BFBBBF5676D50FA8797FD27,
> error: 0x80070002.
> [0380:03EC][2014-01-13T16:59:25]: Error 0x80070002: Failed while caching,
> aborting execution.
> [0380:03EC][2014-01-13T16:59:25]: Apply complete, result: 0x80070002,
> restart: None, ba requested restart:  No
>
> When not renaming bundle it works as expected.
>
> So how to tell the engine to not use the stripped version in
> C:\ProgramData\Package Cache\{7add70a9-0569-413f-a5bd-5433197d64cf} but use
> the WixBundleOriginalSource instead? At first glance OnResolveSource seems
> not to offer something here or am I missing something?
>
> Or is renaming WiX Bundles no good idea by design?
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical
> Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to