PDA

View Full Version : wupdate error messages



NewsArchive
11-09-2008, 02:50 AM
Anyone know where to find the wupdate return codes?

Sim Sherer

NewsArchive
11-09-2008, 02:50 AM
Hi Sim,

> Anyone know where to find the wupdate return codes?

Yes. You can see all return codes that Wupdate.exe returns in the
wupdage.sb6 script. On my machine it is located in "c:\Program
Files\Lindersoft\SetupBuilder 6 Developer\Redist\1033\"

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
11-10-2008, 02:03 AM
Thanks.
The return code I get is -1.
According to the script this means "No application detected". I still do not
know why the user gets this.
Wupdate is called by my app. The INI is there on the website, all other
users manage to locate it and they are using the same app. This is why I am
trying to trace the findings, but not succeeding. Maybe it is a registry
problem, maybe ...

Sim Sherer

NewsArchive
11-10-2008, 02:04 AM
> The return code I get is -1.
> According to the script this means "No application detected". I still do not
> know why the user gets this.
> Wupdate is called by my app. The INI is there on the website, all other
> users manage to locate it and they are using the same app. This is why I am
> trying to trace the findings, but not succeeding. Maybe it is a registry
> problem, maybe ...

Sim,

What happens if you have the user run the wupdate.exe program direct from
the program folder?

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
11-10-2008, 02:05 AM
Good idea. I'll have to go there and try that myself.
They are about 30 years my senior!!

BTW what would that tell me?

Sim Sherer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

NewsArchive
11-10-2008, 03:30 AM
> Good idea. I'll have to go there and try that myself.
> They are about 30 years my senior!!

;-)


> BTW what would that tell me?

You should get a verbose error (at least something that makes sense) if it
is unable to get the update.

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
11-11-2008, 01:51 AM
Hi Charles, (and of course Friedich!)

I tried WUPDATE from the folder and it gives me the following message:

"The Web Update client could not locate an associated application to update.
Please make sure that this software is installed properly."

Sim Sherer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

NewsArchive
11-11-2008, 01:51 AM
> I tried WUPDATE from the folder and it gives me the following message:
>
> "The Web Update client could not locate an associated application to
> update. Please make sure that this software is installed properly."

Seems to me the user (manually) moved the program to another folder.

The (executed) wupdate.exe is no registered in the Registry.

Friedrich

NewsArchive
11-11-2008, 01:52 AM
Hi Friedrich,

My WUPDATE results are always incorrect.

1) On my dev. machine, if I run WUPDATE from within the app, the RC is
always 1, even when the verson on the web is older than my PC. This, I
understand, tells me that an update is available, even when there is not.

2) If I run WUPDATE externally, from my dev. folder, the RC is always -1,
even when run from the dev. folder.

Again, what I need for tracing purposes, is to know what is being compared
to what.

Sim

NewsArchive
11-11-2008, 01:53 AM
Hi Sim,

> 1) On my dev. machine, if I run WUPDATE from within the app, the RC is
> always 1, even when the verson on the web is older than my PC. This, I
> understand, tells me that an update is available, even when there is not.
>
> 2) If I run WUPDATE externally, from my dev. folder, the RC is always -1,
> even when run from the dev. folder.

It sounds to me that the "Product GUID" for the main install and the web
install don't match. If they don't match the webupdate won't find the
information about the last installed version and can't proceed.

> Again, what I need for tracing purposes, is to know what is being compared
> to what.

For WebUpdate to find the correct application it MUST have the same Product
GUID as the main install. The information to compare is the proudct GUID in
your installs and the
"HKEY_LOCAL_MACHINE\SOFTWARE\Lindersoft\WebUpdate\A ppPaths" registry key and
the corresponding
"HKEY_LOCAL_MACHINE\SOFTWARE\Lindersoft\WebUpdate\A pps\{THE_PRODUCT_GUID_COMES_HERE}"
registry key. The AppPath key contains the full path to the web update
executable as the keyname.

For example, my Build Automator install on this machine contains this in the
name:
C:\Program Files\Icetips Creative\Build Automator\autoupdate.exe

and this in the value:
{77D5D4F0-0645-11DD-6784-004D931118BE}

Then I can go to
"HKEY_LOCAL_MACHINE\SOFTWARE\Lindersoft\WebUpdate\A pps\{77D5D4F0-0645-11DD-6784-004D931118BE}"
and see all the settings for the web update including the LOCAL_VERSION
which is what it compares to the INI that it downloads from the server.

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
11-11-2008, 01:53 AM
Hi Charles (and Friedrich)

Strange. I tried WUPDATE from my development machine, within the app, and
always get a RC of 1.
This cannot be right because the app. version and manifest file on the web
are the same or older than the one on my PC!

Sim

NewsArchive
11-12-2008, 02:39 AM
Arnor, now THERE is something! Thanks.
I'll now go and check what is actually there.

Your help is much appreciated.

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

NewsArchive
11-12-2008, 02:40 AM
Hi Sim,

> Arnor, now THERE is something! Thanks.
> I'll now go and check what is actually there.
>
> Your help is much appreciated.

Welcome! I managed to mess up an install where I didn't pay attention and
the WebUpdate install had a different GUID - or I created a new main install
and forgot to make it use the same Product GUID as the web install.
Fortunately it was only on two computers but it took me some work to fix it
up;)

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
11-12-2008, 02:41 AM
Hi Arnor,

Ok, I see the PRODUCTGUID and UPGRADEGUID are the same for the primary
install as the updates.

I then checked the registry and see that the entries for Host Directory,
Host Username and Host Password are empty!

I filled them in on my SB project in the iDeploy Web Update panel,
recompiled, uploaded, downloaded and ran the installer. These 3 registry
entries are still blank.

How do I get the data in there? Di I need to?

Furthermore, will all users then have my Host security details? Surely that
cannot be right!

Sim

NewsArchive
11-12-2008, 02:42 AM
Hi Sim,

> Furthermore, will all users then have my Host security details? Surely that
> cannot be right!

I believe they are encrypted. Don't know why they would be blank. That's
taken care of when the installer runs. Have you tried to run the install
without up/download? Also change the version number, I think this is not
updated unless the version number changes also (not sure about that though)

Best regards,


--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
11-12-2008, 02:45 AM
Sim,

> Furthermore, will all users then have my Host security details? Surely
> that cannot be right!

Did you notice the "Encrypt Username/Password" option (see attached
screenshot).

And of course, you should NOT use your "general" Host security details.
Create a new sub-folder on your web server and protect it with a
login/password. You should never ever use your web server (control
panel) login information.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
11-12-2008, 03:10 AM
Hi Friedrich,

In the original installs (SB5), not really having understood SB, I had left
these fields empty.

How can I fix that now (SB6.9) at all sites?

Sim

NewsArchive
11-12-2008, 03:31 AM
Hi Sim,

> In the original installs (SB5), not really having understood SB, I had
> left these fields empty.
>
> How can I fix that now (SB6.9) at all sites?

You have several options. If all your Host Directory, Host Username and
Host Password fields are empty, then you can "add" the required registry
entries using the "Edit Registry..." function. But you have to know where
the user installed your program, so you also have to ask for this
information.

Arnór posted the registry locations in one of the above messages.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
11-13-2008, 01:47 AM
Hi Friedrich,

> Did you notice the "Encrypt Username/Password" option (see attached
> screenshot).

Shouldn't this be checked by default rather than unchecked? Even if you
have a subfolder with separate authentication, I think the username/password
(if used) should default to being encrypted.

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
11-13-2008, 01:48 AM
Hi Arnór,

>> Did you notice the "Encrypt Username/Password" option (see attached
>> screenshot).
>
> Shouldn't this be checked by default rather than unchecked? Even if you
> have a subfolder with separate authentication, I think the
> username/password (if used) should default to being encrypted.

Yes, we can do this. The encryption feature was introduced in SB5.1
(October 2005) and at that time it was not possible to default to it. I'll
set encryption to "Yes" for new projects in SB6 and SB7.

Thank you for your suggestion.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
11-14-2008, 01:28 AM
Hi Friedrich,

> Yes, we can do this. The encryption feature was introduced in SB5.1
> (October 2005) and at that time it was not possible to default to it. I'll
> set encryption to "Yes" for new projects in SB6 and SB7.
>
> Thank you for your suggestion.

Welcome:)

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
11-18-2008, 03:57 AM
Hi Friedrich, Arnor,

Fixed!
Thanks very much for your help and patience!

Sim Sherer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~