PDA

View Full Version : WUPDATE problem



NewsArchive
06-17-2010, 02:05 AM
wupdate.exe returns RC -2.
TBOMK this indicates an internet connection error but no internet problem
exists.
What could be the problem?

Sim

NewsArchive
06-17-2010, 02:06 AM
Sim,

> wupdate.exe returns RC -2.
> TBOMK this indicates an internet connection error but no internet problem
> exists.
> What could be the problem?

Error Code "-2" means:

---
Cannot download server manifest file.

Network Communication Error: %_SB_ERRORCODE%
---

You should see an additional "Network Communication Error" code (the last
five digits represent the WinSock error code). This should give you more
information.

HTH,
Friedrich

NewsArchive
06-17-2010, 02:07 AM
Can't download manifest file (see attached pic).
Remember that you have the source code for wupdate and wucheck (in the
setupbuilder\redist\1033 folder on my machine).

First thing to try is to see whether you can download the manifest file
using Internet Explorer.
May be a bad file name. May be an invalid MIME type on the web server.

Jane Fleming

NewsArchive
06-18-2010, 01:14 AM
If I go directly to the file via IE, the INI file comes up shining.

I do not get that script message box coming up at all. Why not?
I only get the -2 from the SB as a return code.

How can I tell what is "translated" from "%HOST ADDRESS%/%HOST
DIRECTORY%/%HOST INI%"?

Sim
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

NewsArchive
06-18-2010, 01:17 AM
> If I go directly to the file via IE, the INI file comes up shining.
>
> I do not get that script message box coming up at all. Why not?
> I only get the -2 from the SB as a return code.
>
> How can I tell what is "translated" from "%HOST ADDRESS%/%HOST
> DIRECTORY%/%HOST INI%"?

Start your wupdate.exe with an additional /E switch to enable "event
logging":

wupdate.exe /E /C /S

Then check the created "c:\sbevents.txt" log file -- scroll down a bit and
you should find something similar to the attached screenshot.

HTH,
Friedrich

NewsArchive
06-18-2010, 01:18 AM
Thanks Friedrich.

All figured out now.

Sim
~~~~~~~~~~~~~~~~~~~~~~~

NewsArchive
06-18-2010, 01:18 AM
Sim,

> Thanks Friedrich.
>
> All figured out now.

Perfect. You are welcome.

Friedrich

NewsArchive
06-18-2010, 01:18 AM
BTW, as I understand it, you are still using the RUN() Clarion command.

If you application is UAC-aware and has an "asInvoker" manifest, this will
fail on Windows Vista, Server 2008, Windows 7 and Windows Server 2008 R2.

It's not a good idea to use RUN() here. The Clarion RUN() command is a
wrapper around the CreateProcess Windows API. CreateProcess will always
fail if a non-elevated application under Vista/2008/Win7 attempts to launch
another application whose manifest requires elevation. GetLastError will
return 740 (ERROR_ELEVATION_REQUIRED) in this case.

BTW, wucheck.exe does not require administrator execution level privileges.

Friedrich

NewsArchive
06-18-2010, 01:19 AM
Thanks Friedrich.

So what do you suggest instead of RUN()?

Sim
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

NewsArchive
06-18-2010, 01:19 AM
> Thanks Friedrich.
>
> So what do you suggest instead of RUN()?

I would suggest to use the ShellExecuteEx Windows API instead.

Friedrich

NewsArchive
06-18-2010, 01:19 AM
Thanks once again.

Sim