[wix-users] : Error 0x80070002: Failed while prompting for source

Nick Elmer NElmer at veriato.com
Fri Nov 15 13:41:34 PST 2019


Jacob,
Thanks for the reply! After some trial and error I was able to determine that the issue was related to how our bootstrapper was elevating after launch. Initially the bundle .exe was launched from the desktop where I copied the file initially. Once launched, the BA was extracted and executed from %temp%\<GUID> as it should be. But then the logic in our bootstrapper UI was checking to see if it was running as Admin, and since it was not, it would then request elevation. Once the user accepted the elevation, the files were immediately moved from %temp%\<GUID> to C:\Windows\Temp\<GUID>. Caching of the bundle was successful from the new C:\windows\temp location, however, the embedded MSI packages were still trying to be resolved in the %temp%\<GUID> location as I show below. It seems as though there is an issue with ResolveSource finding the packages after the elevation. I know this is against install best practices and so I'm looking at how to resolve it as I update this logic I have inherited. 😊

Thanks
Nick

-----Original Message-----
From: Hoover, Jacob <Jacob.Hoover at greenheck.com> 
Sent: Friday, November 15, 2019 2:01 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Nick Elmer <NElmer at veriato.com>
Subject: RE: : Error 0x80070002: Failed while prompting for source

http://errco.de/win32/winerror-h/error_file_not_found/0x80070002/

Did you give your AV software a look?

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Nick Elmer via wix-users
Sent: Thursday, November 14, 2019 2:46 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Nick Elmer <NElmer at veriato.com>
Subject: [wix-users] : Error 0x80070002: Failed while prompting for source

Hi All,
Looking for some assistance with an install issue. I am updating a package from Wix 3.8 to 3.11. The package used to expect dependent MSI's to exist on the disk. However, with the changes in Wix 3.10 and beyond, that obviously doesn't work any longer. So, I decided to embed the dependent MSI's inside the installer. However, now when I execute, I get the errors below. Searching the web there are many who renamed their installer. My installer is not being renamed, so that is not my issue. Other references were to use insignia to sign. I fixed that as well.

Looking for some assistance to help me resolve the issue. Thanks in advance!

[2614:2360][2019-11-14T15:26:43]w341: Prompt for source of container: WixAttachedContainer, path: C:\Users\MyUser\AppData\Local\Temp\{5B44D15B-6D90-41A1-8858-FC71B8333173}\.cr\MyInstaller.exe
[2614:2360][2019-11-14T15:26:43]e054: Failed to resolve source for file: C:\Users\MyUser\AppData\Local\Temp\{5B44D15B-6D90-41A1-8858-FC71B8333173}\.cr\ MyInstaller.exe, error: 0x80070002.
[2614:2360][2019-11-14T15:26:43]e000: Error 0x80070002: Failed while prompting for source (original path 'C:\Users\MyUser\AppData\Local\Temp\{5B44D15B-6D90-41A1-8858-FC71B8333173}\.cr\MyInstaller.exe').
[2614:2360][2019-11-14T15:26:43]e311: Failed to acquire container: WixAttachedContainer to working path: C:\Windows\Temp\{E01B5626-AF50-4A85-BA73-F3DE008E433E}\A45AC195AF2460CCFB3033FC4E5D98C43DC09063, error: 0x80070002.
[2614:2054][2019-11-14T15:26:43]e000: Error 0x80070002: Failed while caching, aborting execution.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.


More information about the wix-users mailing list