[Beginner] Installation failed with error 0x80070002

2,229 views
Skip to first unread message

Prad Lal

unread,
Aug 25, 2013, 10:43:06 PM8/25/13
to omaha-...@googlegroups.com
Hello everyone,

 Here are the steps I have taken so far so far - 
- Successfully built Omaha
- Tagged GoogleUpdate.exe with ApplyTag.
- Wrote server side with Google app engine

 I am still getting the error 0x80070002 when I run the tagged metainstaller (even as admin). Anything that I am missing ?

I have been stuck on this for more than a week, so any input would be greatly appreciated. 

Cheers,

Prad


3rdBenchSetup.log

Sorin Jianu

unread,
Aug 26, 2013, 2:30:45 PM8/26/13
to omaha-...@googlegroups.com
I think I know what happens in this case. It is GoogleUpdateSetup.exe that must be tagged, not GoogleUpdate.exe. I am surprised it is even made it this far in the install execution flow, and I still have some doubts I am seeing the full picture here.

The error 0x80070002 means "file not found". In the attached log file, these are the relevant lines:

[08/26/13 10:32:41.791][GoogleUpdate:goopdate][4744:868][CopyAndValidateFiles][from=C:\Users\Prad\AppData\Local\Temp\GUM7502.tmp\3rdBenchSetup.exe][to=C:\Users\Prad\AppData\Local\3rd Bench\Update\1.3.23.0\3rdBenchSetup.exe][overwrite=1][destination file exists=0]
[08/26/13 10:32:41.792][GoogleUpdate:goopdate][4744:868][File::Copy - CopyFile failed][from=C:\Users\Prad\AppData\Local\Temp\GUM7502.tmp\3rdBenchSetup.exe][to=C:\Users\Prad\AppData\Local\3rd Bench\Update\1.3.23.0\3rdBenchSetup.exe][replace=1][0x80070002]
[08/26/13 10:32:41.792][GoogleUpdate:goopdate][4744:868][copy failed][from=C:\Users\Prad\AppData\Local\Temp\GUM7502.tmp\3rdBenchSetup.exe][to=C:\Users\Prad\AppData\Local\3rd Bench\Update\1.3.23.0\3rdBenchSetup.exe][0x80070002]
[08/26/13 10:32:41.792][GoogleUpdate:goopdate][4744:868][SetupFiles::CopyInstallFiles][Done]
[08/26/13 10:32:41.792][GoogleUpdate:goopdate][4744:868][Failed to copy the files][0x80070002]
[08/26/13 10:32:41.792][GoogleUpdate:goopdate][4744:868][SetupFiles::Install failed][0x80070002]

We can see that the setup code fails to copy 3rdBenchSetup.exe. This file, along with others, are included in the untagged GoogleUpdateSetup.exe. GoogleUpdate.exe is the shell for the Omaha updater, and it does not contain the files. Therefore, the setup code can't find them.

I hope this helps. Thank you for attaching the log files, we are on the right track, and at any rate, with the log files we'd be able to see what is going on.


--
You received this message because you are subscribed to the Google Groups "Omaha Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omaha-discus...@googlegroups.com.
To post to this group, send email to omaha-...@googlegroups.com.
Visit this group at http://groups.google.com/group/omaha-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Prad Lal

unread,
Aug 27, 2013, 10:08:07 PM8/27/13
to omaha-...@googlegroups.com, so...@chromium.org
Thanks for taking the time to reply me,  Sorin :)

My apologies, the GoogleUpdate.exe comment was a typo, the tagging was indeed done with GoogleUpdateSetup.exe, and you are right saying that the build wouldn't have reached so far.

But I found the error today after a frustrating week, it was a mistake on my part that I had changed the _MAIN_EXE_BASE_NAME in main.scons and once I resetted it to "GoogleUpdate", it works like a charm. 

I shall post the server implementation using Google App Engine shortly once I clean it up a bit, might help others to set up and test the code fast.

Cheers
- Prad

Prad Lal

unread,
Aug 28, 2013, 10:56:41 PM8/28/13
to omaha-...@googlegroups.com, so...@chromium.org
 One more doubt that I have is about the update packages. Do they have to write to the registry like the installer ?

The reason I ask this is because whenever the updater fires, I am getting a UAC prompt. Right now I am testing the application without a certificate, with the installer and updater packages made the same way. Any suggestions ?

Cheers.
Prad

On Tuesday, 27 August 2013 02:30:45 UTC+8, Sorin Jianu wrote:
Reply all
Reply to author
Forward
0 new messages