WebUpdate can't update

Hello, I have some computers were WebUpdate can't update the application. I have compiled webupdate with UAC, but in the end of the process the files can't be updated.
This is the log, but I see no errors in it.
<!--if gte mso 9>
<o:OfficeSettings>
<o:AllowPNG/>
</o:OfficeSettings>

02/02/2017 09:39:28 : [918] Checking for Internet connection (Status:3) (Error:0)
02/02/2017 09:39:28 : [921] Found open Internet connection (Status:3) (Error:0)
02/02/2017 09:39:28 : [915] Download : http://igestlab.local:10080/Gestlab.inf (Status:3) (Error:0)
02/02/2017 09:39:28 : [926] Update control file found (Status:3) (Error:0)
appparams=
02/02/2017 09:39:28 : [933] Version based update found (Status:3) (Error:0)
02/02/2017 09:39:28 : [944] Version check : Version compare of gestlab.exe:10.9.87.3712 with 10.9.87.3722:10.9.87.3722 (Status:3) (Error:0)
02/02/2017 09:39:28 : [929] New version found : 10.9.87.3722 (Status:5) (Error:0)
02/02/2017 09:39:28 : [949] Closed Internet connection (Status:3) (Error:0)
02/02/2017 09:39:28 : [949] Closed Internet connection (Status:3) (Error:0)
02/02/2017 09:39:28 : [968] Start update : Non threaded update --------------------------- (Status:0) (Error:0)
02/02/2017 09:39:28 : [966] OS version : Windows 7 (Status:0) (Error:0)
02/02/2017 09:39:28 : [967] IE version : (not found) (Status:0) (Error:0)
02/02/2017 09:39:28 : [969] Compiler : D2007 (Status:0) (Error:0)
02/02/2017 09:39:28 : [970] Installed IDEs :  (Status:0) (Error:0)
02/02/2017 09:39:28 : [963] Start WebUpdate process with version : 2.2.11.0 (Status:0) (Error:0)
02/02/2017 09:39:28 : [918] Checking for Internet connection (Status:3) (Error:0)
02/02/2017 09:39:28 : [921] Found open Internet connection (Status:3) (Error:0)
02/02/2017 09:39:28 : [915] Download : http://igestlab.local:10080/Gestlab.inf (Status:3) (Error:0)
02/02/2017 09:39:29 : [926] Update control file found (Status:3) (Error:0)
appparams=
02/02/2017 09:39:29 : [933] Version based update found (Status:3) (Error:0)
02/02/2017 09:39:29 : [944] Version check : Version compare of gestlab.exe:10.9.87.3712 with 10.9.87.3722:10.9.87.3722 (Status:3) (Error:0)
02/02/2017 09:39:29 : [929] New version found : 10.9.87.3722 (Status:5) (Error:0)
02/02/2017 09:39:29 : [943] Found file update instruction (Status:3) (Error:0)
02/02/2017 09:39:29 : [971] Processing file : gestlab.exe_NEW[gestlab.exe,nv=10.9.87.3722,nd=,ns=0,nc=-1] (Status:0) (Error:0)
02/02/2017 09:39:29 : [944] Version check : Version compare of gestlab.exe:10.9.87.3712 with 10.9.87.3722:10.9.87.3722 (Status:3) (Error:0)
02/02/2017 09:39:29 : [971] Processing file : GestLab.EN.lng[,nv=,nd=,ns=0,nc=-1] (Status:0) (Error:0)
02/02/2017 09:39:29 : [971] Processing file : GestLab.EUQ.lng[,nv=,nd=,ns=0,nc=-1] (Status:0) (Error:0)
02/02/2017 09:39:29 : [971] Processing file : GestLab.FR.lng[,nv=,nd=,ns=0,nc=-1] (Status:0) (Error:0)
02/02/2017 09:39:29 : [971] Processing file : GestLab.ntv.lng[,nv=,nd=,ns=0,nc=-1] (Status:0) (Error:0)
02/02/2017 09:39:29 : [915] Download : http://igestlab.local:10080/gestlab.exe_NEW (Status:3) (Error:0)
02/02/2017 09:39:46 : [962] Found application component : gestlab.exe_NEW (Status:0) (Error:0)
02/02/2017 09:39:46 : [915] Download : http://igestlab.local:10080/GestLab.EN.lng (Status:3) (Error:0)
02/02/2017 09:39:47 : [962] Found application component : GestLab.EN.lng (Status:0) (Error:0)
02/02/2017 09:39:47 : [915] Download : http://igestlab.local:10080/GestLab.EUQ.lng (Status:3) (Error:0)
02/02/2017 09:39:47 : [962] Found application component : GestLab.EUQ.lng (Status:0) (Error:0)
02/02/2017 09:39:47 : [915] Download : http://igestlab.local:10080/GestLab.FR.lng (Status:3) (Error:0)
02/02/2017 09:39:48 : [962] Found application component : GestLab.FR.lng (Status:0) (Error:0)
02/02/2017 09:39:48 : [915] Download : http://igestlab.local:10080/GestLab.ntv.lng (Status:3) (Error:0)
02/02/2017 09:39:48 : [962] Found application component : GestLab.ntv.lng (Status:0) (Error:0)
02/02/2017 09:39:48 : [948] Finished processing update control file (Status:3) (Error:0)
02/02/2017 09:39:48 : [949] Closed Internet connection (Status:3) (Error:0)
02/02/2017 09:39:48 : [949] Closed Internet connection (Status:3) (Error:0)
02/02/2017 09:39:48 : [959] Restart app in directory : C:\Program Files\GestLab (Status:0) (Error:0)
02/02/2017 09:39:48 : [958] Spawn 5424 L "C:\Program Files\GestLab\gestlab.exe" " " "C:\Program Files\GestLab\" Gestlab.exe_NEW GestLab.EN.lng GestLab.EUQ.lng GestLab.FR.lng GestLab.ntv.lng (Status:0) (Error:0)

I see that in the last stage, where a spawned updater app should replace the EXE there must be an issue.Two reasons I can see: 1) the spawned updater has no permissions (UAC did not raise succesfully to admin level) to replace the EXE in c:\program files or 2) the EXE is still kept in memory (multiple running instances? closing blocked?) and can't be replaced. 
Can you check these 2 possible causes?

Thank you for the quick response, I think is the first one. Why UAC can not raise sucessfully to admin level?

I assume you get the UAC prompt and do you accept it to elevate to admin level (to have permission to update the EXE under \Program Files?

No, I don't get the UAC prompt in the machines I have the problem.

Are you 100% sure you compile WebUpdate with UAC enabled (default)?

Yes, I also have added a progress message that shows if the property UAC Enabled is true or false.

I store the log in Program Files\App\log\wupdate, then the user can write to Program Files folder.

To begin with, did you try the basic sample application that is included and can you verify you see the UAC prompt there at the moment the spawned updater app launches?

We are working with webupdate for years without problem. We have this problem with one customer, and in some computer UAC prompt is raised and not in others.

Did they disable things in these specific machines?

Things like?

I don't know, all i can do is pure guesswork if you do not provide any details on what happened with these machines.
Things like:

and perhaps others? Or 3rd party software that got installed?

Is there any option to get a log when spawn is executed and can't do work?

Can you check if there was a log created for the spawned updater app under \My Documents in WUPDATE.LOG?


This is the content of wupdate file
<!--if gte mso 9>
<w:Word>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:Trackatting/>
<w:HyphenationZone>21</w:HyphenationZone>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfInvalid>false</w:SaveIfInvalid>
<w:IgnoreMixed>false</w:IgnoreMixed>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DonotPromoteQF/>
<w:LidThemeOther>ES</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplex>X-NONE</w:LidThemeComplex>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndark/>
<w:EnableKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="&#45;-"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:Word>

10/02/2017 12:43:16 : [000] UPD v2.0.4.0 started

10/02/2017 12:43:16 : [000] UPD current directory: C:\Program Files\GestLab

10/02/2017 12:43:16 : [000] UPD waited from 10/02/2017 12:43:13:461 to 10/02/2017 12:43:15:571 for application close

10/02/2017 12:43:16 : [000] Upd copying file : C:\Program Files\GestLab\Gestlab.exe_NEW to C:\Program Files\GestLab\Gestlab.exe

10/02/2017 12:43:16 : [000] Upd copy error C:\Program Files\GestLab\Gestlab.exe_NEW to C:\Program Files\GestLab\Gestlab.exe

10/02/2017 12:43:16 : [000] Upd lzexpand GestLab.EN.lng C:\Program Files\GestLab\

10/02/2017 12:43:16 : [000] Upd lzexpand GestLab.EUQ.lng C:\Program Files\GestLab\

10/02/2017 12:43:16 : [000] Upd lzexpand GestLab.FR.lng C:\Program Files\GestLab\

10/02/2017 12:43:16 : [000] Upd lzexpand GestLab.ntv.lng C:\Program Files\GestLab\

10/02/2017 12:43:16 : [000] UPD restart C:\Program Files\GestLab\gestlab.exe 

10/02/2017 12:43:22 : [000] UPD has EXE restarted

 


This indicates there was a failure to overwrite the existing EXE

2 most common reasons:
1) UAC didn't raise to admin permissions so \Program Files folder remains write protected

2) The running EXE (gestlab.exe) could not be closed or there are multiple instances running and as long as it is kept in memory, Windows prevents replacing it.

I think is number one, and then the log can't show the cause that makes UAC not raise.

Do the users get the UAC prompt?

If not, clearly, they have tampered with their Windows setup.

Hello Bruno, It seems that the problem is solved executing the application with Windows XP service pack 3 mode compatible.
Where can be the source of the issue?