Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: WUPDATE problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default WUPDATE problem

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

    Sim

  2. #2

    Default Re: WUPDATE problem

    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

  3. #3

    Default Re: WUPDATE problem

    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
    Attached Images Attached Images  

  4. #4

    Default Re: WUPDATE problem

    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
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  5. #5

    Default Re: WUPDATE problem

    > 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
    Attached Images Attached Images  

  6. #6

    Default Re: WUPDATE problem

    Thanks Friedrich.

    All figured out now.

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

  7. #7

    Default Re: WUPDATE problem

    Sim,

    > Thanks Friedrich.
    >
    > All figured out now.

    Perfect. You are welcome.

    Friedrich

  8. #8

    Default Re: WUPDATE problem

    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

  9. #9

    Default Re: WUPDATE problem

    Thanks Friedrich.

    So what do you suggest instead of RUN()?

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

  10. #10

    Default Re: WUPDATE problem

    > Thanks Friedrich.
    >
    > So what do you suggest instead of RUN()?

    I would suggest to use the ShellExecuteEx Windows API instead.

    Friedrich

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •