PDA

View Full Version : wucheck and /F parameter issue



NewsArchive
10-19-2010, 12:07 AM
Hi Friedrich,

I'm having a problem with the /F parameter for wucheck.exe. Whenever I use
it I get -3 returned.

The command line is:

C:\BrokerOffice\wucheck.exe /C /S /F="C:\BrokerOffice\serverversion.ini"

This returns -3 every time. I compiled wucheck.exe from the wucheck.sb7
script to make sure it was all up to date, but that didn't make any
difference.

If I do _not_ use double quotes around the name I get 1 (correct) but the
serverversions.ini is not created.

If I remove the /S so it's not silent I get a message:

"Server Version File Error:

Host version 0

Local Version: C:\BrokerOffice\serverversion.ini"

Hmm... Something is NOT right here:

! Command Line Switch: /C
If %_SB_INSTALLERFLAG% Equals "1" on Position "$SB_CHECKFORUPDATES$" Then
! Download version file from host
Download File from "%HOST_ADDRESS%/%HOST_DIRECTORY%/%HOST_INI%" to
"%TMPPATH%" [no-cache] [Permanent]
If %_SB_ERRORCODE% Does Not Equal "0" Then
Display Message Box "Cannot download server manifest file.\n\nNetwork
C..." -- "Web Update"
Exit Installation(-2)
End

! Read version ID located on host
Set Variable %HOST_VERSION% to FUNCTION:Get INI Value("Version") from
"%LOCAL_INI%"
Set Variable %HOST_UPDATEFILENAME% to FUNCTION:Get INI Value("Setup")
from "%LOCAL_INI%"
If %HOST_VERSION% Equals "0" Then
Display Message Box "Server Version File Error:\n\nHost Version:
%HOST_..." -- "Web Update"
Exit Installation(-3)
End

This downloads the %HOST_INI% to "TMPPATH% and then it sets the
%HOST_VERSION% to the value FROM %LOCAL_INI% This will always be 0 thus
terminating the install with -3.

I.e. the host_ini is downloaded to the _temp_ folder, but then it tries to
read the host version from the /F _specified_ folder. I don't see how this
can work???

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
10-19-2010, 08:45 AM
Hi Arnór,

I checked the development papers and I think that we added this /F= switch
for you two years ago. Hmm, and I don't think that it ever worked :-( And
as far as I can see, there is even an installer runtime modification
required to support this functionality.

I'll see what we can do.

Friedrich

NewsArchive
10-19-2010, 08:45 AM
Hi Arnór,

I think this was the original request:

>> Can you make this so that it can be set to download the manifest file to
>> a specified folder? With something like:
>>
>> WCHECK.EXE /S /C /F="C:\Documents and Settings\All Users\Mymanifest.ini"

We did not implement what you requested. Would the following be okay for
you (we can change this for V7.3):

WCHECK.EXE /S /C /F="C:\Documents and Settings\All Users"

This will then download the server manifest file (defined in the
IDEPLOY.CLI) to "C:\Documents and Settings\All Users".

Friedrich

NewsArchive
10-22-2010, 02:12 AM
Hi Friedrich,

> WCHECK.EXE /S /C /F="C:\Documents and Settings\All Users"
>
> This will then download the server manifest file (defined in the
> IDEPLOY.CLI) to "C:\Documents and Settings\All Users".

Absolutely! It makes perfect sense to just specify the path for the
manifest. I _think_ all you need to do is to change the download statement
and then re-assign the INI variable to point to that path before you hit the
code for the /S and /C.

It was probably my responsibility to test this but apparently I never got to
it;)

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
10-22-2010, 02:12 AM
Hi Arnór,

>
>> WCHECK.EXE /S /C /F="C:\Documents and Settings\All Users"
>>
>> This will then download the server manifest file (defined in the
>> IDEPLOY.CLI) to "C:\Documents and Settings\All Users".
>
> Absolutely! It makes perfect sense to just specify the path for the
> manifest. I _think_ all you need to do is to change the download
> statement and then re-assign the INI variable to point to that path
> before you hit the code for the /S and /C.
>
> It was probably my responsibility to test this but apparently I never got
> to it;)

;-)

The above modification (in fact, it's a bug fix in the wucheck.sb7 source
codes because this never worked as expected) will be available in the next
build.

Thanks again!

Friedrich