If I set that file is AppComponent TWebUpdate doesn't copy file to right directory - in my example file2 TWebUpdate copying to directory {APP}\Soft but file3 is copied to directory {App} not {App}/Soft ! Is my bug or bug is in TwebUpdate?
Thx for support in advance.
[update]
date=25/1/2013
time=10:48
[files]
count=3
[file1]
url=C:\Programs\WebUpdater test\Update\UpdateTest.exe_NEW
localversion=UpdateTest.exe
targetdir={app}
mandatory=1
[file2]
url=C:\Programs\WebUpdater test\Update\2011-01.pdf
localversion=2011-01.pdf
targetdir={APP}\Soft
[file3]
url=C:\Programs\WebUpdater test\Update\Bez tytułu.jpg_NEW
localversion=Bez tytułu.jpg
targetdir={APP}\Soft
[application]
appupdate=1
appname=UpdateTest.exe
appcomps=UpdateTest.exe_NEW Bez tytułu.jpg_NEW
This is not a bug but by design for application components.
Can you try to start the update process with
WebUpdate.DoUpdate(TRUE) instead
What difference is between WebUpdate.DoUpdate(TRUE) and WebUpdate.DoUpdate(False);
Parameter = true sets the current dir (active directory) to the directory where the application EXE is located.