PDA

View Full Version : RunCode wucheck.exe



NewsArchive
08-06-2009, 12:53 PM
Helle Friedrich,

i check for updates with:

Run('wucheck.exe /C /S',1)
GLO:RC = RunCode()

If the customer Subscription is outdated i get a RunCode = -1

Is that right? Can´t find that in the documents.

Thanks much

Kai

NewsArchive
08-06-2009, 12:54 PM
Kai,

wucheck and wupdate are documented in the source code.
The source for both applications (which you can customize) is installed with
SetupBuilder.
Look in the Redist\1033 folder for the .SB6 source files.

Jane

NewsArchive
08-06-2009, 12:55 PM
Hi Kai,

> i check for updates with:
>
> Run('wucheck.exe /C /S',1)
> GLO:RC = RunCode()
>
> If the customer Subscription is outdated i get a RunCode = -1
>
> Is that right? Can´t find that in the documents.

What Jane said.

The standard wucheck.exe does not do anything with "subscriptions".
Subscription key verification (if you support it) is done from your web
update installer package (the thing that is downloaded and executed from
wucheck.exe or wupdate.exe).

Friedrich

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

SetupBuilder is installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
08-06-2009, 12:55 PM
Hi Friedrich,

ok, but that is the only what i do:

Run('wucheck.exe /C /S',1)
GLO:RC = RunCode()

And GLO:RC get "-1"

And it should be 1 if update avaiable and 0 if not...

Best regards

Kai

NewsArchive
08-06-2009, 12:56 PM
Kai,

> ok, but that is the only what i do:
>
> Run('wucheck.exe /C /S',1)
> GLO:RC = RunCode()
>
> And GLO:RC get "-1"
>
> And it should be 1 if update avaiable and 0 if not...

What Jane suggested. Open the wucheck.sb6 source file.

See attached screenshot. -1 is an error!

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

Hope this helps.

Friedrich

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

SetupBuilder is installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
08-06-2009, 12:56 PM
Hi Friedrich,

i found that in wucheck there is a check for ideploy that returns -1.

I take a look at that.

Thanks much

Kai

NewsArchive
08-06-2009, 12:57 PM
Hi Kai,

> If the customer Subscription is outdated i get a RunCode = -1
>
> Is that right? Can´t find that in the documents.

This is the code in wucheck.sb6 that gives you this return code:

If %APPTITLE% Equals "" Then
Display Message Box "#ERR_IDEPLOYCONFIG#" -- "Web Update"
Exit Installation -1
End

The %APPTITLE% is retrieved from the registry:

Set Variable %APPTITLE% to FUNCTION:Get Registry("LOCAL_APP") from
"HKEY_LOCAL_MACHINE\Software\Lindersoft\WebUpdate\A pps\%APPKEY%"

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

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

NewsArchive
08-06-2009, 12:57 PM
Arnór,

> This is the code in wucheck.sb6 that gives you this return code:
>
> If %APPTITLE% Equals "" Then
> Display Message Box "#ERR_IDEPLOYCONFIG#" -- "Web Update"
> Exit Installation -1
> End
>
> The %APPTITLE% is retrieved from the registry:
>
> Set Variable %APPTITLE% to FUNCTION:Get Registry("LOCAL_APP") from
> "HKEY_LOCAL_MACHINE\Software\Lindersoft\WebUpdate\A pps\%APPKEY%"

That's a better explanation than mine :)

Thanks,
Friedrich

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

SetupBuilder is installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
08-07-2009, 01:45 AM
Hi Friedrich,

> That's a better explanation than mine :)

The code, like all good code, is fairly self-documentary:)

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

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

NewsArchive
08-07-2009, 01:46 AM
Hi Arnor,

thanks much - found it :-)

Best regards

Kai