WebUpdate and UpdateBuilder issue

Hello,

I tried a few times but I cannot update the .exe via TWebUpdate.
The following are the parameters of TWebUpdate and UpdateBuilder:

  object WebUpdate1: TWebUpdate
    Agent = 'TWebUpdate'
    DateFormat = 'dd/mm/yyyy'
    DateSeparator = '/'
    ExtractCAB = True
    FTPDirectory = '/home/xxxxxxxxxxxx/'
    FTPPassive = True
    Host = 'ftp.xxxxxx.com'
    LogFileName = 'WUPDATE.LOG'
    Password = 'xxxxxxxxx'
    PostUpdateInfo.Enabled = False
    ShowDownloadProgress = True
    Signature = 'WebUpdate'
    TempDirectory = '.'
    TimeFormat = 'hh:nn'
    TimeSeparator = ':'
    UpdateType = ftpUpdate
    UpdateConnect = wucConnectPromptHangup
    URL =
      'ftp://ftp.xxxxxxxxxxxxx.INF'
    UserID = 'xxxxxxxxxx.com'
    Version = '2.2.7.1'
    Left = 336
    Top = 88
  end


[update]
newversion=1.0.0.2
localversion=xxxxxxx.exe
[files]
count=1
[file1]
url=xxxxxxxx.exe_NEW
newversion=1.0.0.2
localversion=xxxxxxxxxxx.exe
mandatory=1
[application]
appupdate=1
appname=xxxxxxxxxx.exe
appcomps=xxxxxxxxxxxx.exe_NEW
[eula]
file=EULA.txt

When I run the .exe I have the warning saying a new version is available. I proceed with the update and the new file is correctly downloaded and saved in C:\Users\admin\AppData\Local\Temp with the name xxxxxxxx.exe_NEW.
When the application restarts I still have the old .exe version and the warning saying a new version is available pops up again.

Where I am doing things wrong ?

Many thanks

Alberto

I add the log file too.

22/02/2015 18:47:07 : [968] Start update : Non threaded update --------------------------- (Status:0) (Error:0)
22/02/2015 18:47:07 : [966] OS version : 6.1(Win 7) (Status:0) (Error:0)
22/02/2015 18:47:07 : [967] IE version : 9.0000 (Status:0) (Error:0)
22/02/2015 18:47:07 : [969] Compiler : DXE2 (Status:0) (Error:0)
22/02/2015 18:47:07 : [970] Installed IDEs : DXE2 (Status:0) (Error:0)
22/02/2015 18:47:07 : [963] Start WebUpdate process with version : 2.2.7.1 (Status:0) (Error:0)
22/02/2015 18:47:07 : [918] Checking for Internet connection (Status:3) (Error:0)
22/02/2015 18:47:07 : [921] Found open Internet connection (Status:3) (Error:0)
22/02/2015 18:47:07 : [923] Connect to host : ftp.xxxxxxxx.com (Status:3) (Error:0)
22/02/2015 18:47:07 : [915] Download : ftp://ftp.xxxxxxx.com/home/xxxxxxx.INF (Status:3) (Error:0)
22/02/2015 18:47:07 : [974] Change FTP directory to : /home/xxxxxxx  (Status:3) (Error:0)
22/02/2015 18:47:09 : [000] UPD has EXE restarted
22/02/2015 18:47:09 : [926] Update control file found (Status:3) (Error:0)
22/02/2015 18:47:09 : [939] Found license agreement instruction (Status:13) (Error:0)
22/02/2015 18:47:09 : [915] Download : EULA.txt (Status:3) (Error:0)
22/02/2015 18:47:12 : [954] Closed FTP connection (Status:3) (Error:0)
22/02/2015 18:47:12 : [949] Closed Internet connection (Status:3) (Error:0)
22/02/2015 18:47:12 : [949] Closed Internet connection (Status:3) (Error:0)

Given you have an EULA option configured, I see it stops after downloading the EULA file, so this could indicate the EULA was not accepted and therefore the update did not proceed?

No, the EULA is accepted

The last point in the log file is

 [915] Download : EULA.txt (Status:3) (Error:0)
and after this, nothing happens, so, I cannot see any other reason than the EULA that is not accepted.
If this problem persists, please put a breakpoint in the code where  message 939 is logged and trace from there why it is stopping the update process.

I got rid of the EULA and the following is the UpdateBuilder set up now:

[update]
newversion=1.0.0.2
localversion=xxx.exe
[files]
count=1
[file1]
url=xxxxxxxxx.exe_NEW
newversion=1.0.0.2
localversion=xxxxxxxxx.exe
targetdir={app}
mandatory=1
[application]
appupdate=1
appname=xxxxxxxx.exe
appcomps=xxxxxxxxxx.exe_NEW

The issue remains for me and the following is the log file:

23/02/2015 00:30:28 : [968] Start update : Non threaded update --------------------------- (Status:0) (Error:0)
23/02/2015 00:30:28 : [966] OS version : 6.1(Win 7) (Status:0) (Error:0)
23/02/2015 00:30:28 : [967] IE version : 9.0000 (Status:0) (Error:0)
23/02/2015 00:30:28 : [969] Compiler : DXE2 (Status:0) (Error:0)
23/02/2015 00:30:28 : [970] Installed IDEs : DXE2 (Status:0) (Error:0)
23/02/2015 00:30:28 : [963] Start WebUpdate process with version : 2.2.7.1 (Status:0) (Error:0)
23/02/2015 00:30:28 : [918] Checking for Internet connection (Status:3) (Error:0)
23/02/2015 00:30:28 : [921] Found open Internet connection (Status:3) (Error:0)
23/02/2015 00:30:28 : [923] Connect to host : ftp.xxxxxxxx.com (Status:3) (Error:0)
23/02/2015 00:30:29 : [915] Download : ftp://ftp.xxxxxxxxxx/xxxx.INF (Status:3) (Error:0)
23/02/2015 00:30:29 : [974] Change FTP directory to : /xxxxxx/ (Status:3) (Error:0)
23/02/2015 00:30:30 : [000] UPD has EXE restarted
23/02/2015 00:30:30 : [926] Update control file found (Status:3) (Error:0)
23/02/2015 00:30:30 : [933] Version based update found (Status:3) (Error:0)
23/02/2015 00:30:30 : [944] Version check : Version compare of xxxxxx.exe:1.0.0.1 with 1.0.0.2:1.0.0.2 (Status:3) (Error:0)
23/02/2015 00:30:30 : [929] New version found : 1.0.0.2 (Status:5) (Error:0)
23/02/2015 00:30:30 : [943] Found file update instruction (Status:3) (Error:0)
23/02/2015 00:30:30 : [971] Processing file : xxxxxxx.exe_NEW[xxxxxxx.exe,nv=1.0.0.2,nd=,ns=0,nc=-1] (Status:0) (Error:0)
23/02/2015 00:30:30 : [944] Version check : Version compare of xxxxxxx.exe:1.0.0.1 with 1.0.0.2:1.0.0.2 (Status:3) (Error:0)
23/02/2015 00:30:32 : [948] Finished processing update control file (Status:3) (Error:0)
23/02/2015 00:30:32 : [954] Closed FTP connection (Status:3) (Error:0)
23/02/2015 00:30:32 : [949] Closed Internet connection (Status:3) (Error:0)
23/02/2015 00:30:32 : [949] Closed Internet connection (Status:3) (Error:0)

Where am I doing it wrong ?

Thanks
Alberto

Can you modify your .INF file to:

[update]
newversion=1.0.0.2
localversion=xxx.exe
[files]
count=1
[file1]
url=xxxxxxxxx.exe_NEW
[application]
appupdate=1
appname=xxxxxxxx.exe
appcomps=xxxxxxxxxx.exe_NEW

There is an unneeded double version check.