Help setting component - WeOnlyDo Discussion board

Help setting component (wodAppUpdate)

by Nilton, Thursday, November 28, 2013, 13:36 (4013 days ago)

Sorry for the mistakes in grammar ... I'm from Brazil and I am trying to implement the wodAppUpdate on my system. I do not understand how to configure the component so that it can check versions on my web server with my local file.

Can anyone help me?

Help setting component

by wodDrazen, Thursday, November 28, 2013, 13:47 (4013 days ago) @ Nilton

Hi Nilton,


You can save your configuration file to some local file and load it inside Check Method.

Something like this:
--------------------------------
wodAppUpdate1.Check App.Path & "\config.txt"
--------------------------------

For example you can save this inside config.txt file. This is configuration file from our sample:
--------------------------------
#Update file signature

[File]
Name=UpDemo.dll
Size=53248
URL=http://www.weonlydo.com/AppUpdate/test/UpDemo.dll
Date=20061026192600
MD5=662bf45af0b60e2d83c7c8ebf35545fd
Register=1
Compressed=0
Version=1.0.0.2

[Message]
ID=0
Caption=something
Text=some text
--------------------------------

Let us know how it goes.


Regards,
Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

Help setting component

by Nilton, Thursday, November 28, 2013, 13:58 (4013 days ago) @ wodDrazen

I did just that ... But this config.text file refers to the file that is on my web server?

Help setting component

by wodDrazen, Thursday, November 28, 2013, 14:00 (4013 days ago) @ Nilton

Nilton,


Where do you want to have that file? On same machine where wodAppUpdate is?


Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

Help setting component

by Nilton, Thursday, November 28, 2013, 14:17 (4013 days ago) @ wodDrazen

Exactly, it will be a desktop application that will change some files on it. But these files are in a web server

Help setting component

by wodDrazen, Thursday, November 28, 2013, 14:20 (4013 days ago) @ Nilton

Nilton,


Then you need to try code snippet that I sent you in my first reply.

Something like this:
--------------------------------
wodAppUpdate1.Check "c:\config.txt"
--------------------------------


Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

Help setting component

by Nilton, Thursday, November 28, 2013, 14:28 (4013 days ago) @ wodDrazen

I do not understand the following:

  This Config.txt file refers to the file that will be on the web (which will be used to upgrade my system)? If I'm doing exactly what I said in the first post.


  And the object properties wodAppUpdate in source code, for example, version? The same is used to compare with the version that is on file Config.txt? Or is he the internal wodAppUpdate?

  I also realized that there is a class named UpdFile, which has several properties that in my testing was not any difference ... These properties me the source code I have to fill out?

Help setting component

by wodDrazen, Thursday, November 28, 2013, 14:54 (4013 days ago) @ Nilton

Nilton,


You can put config file on web or you can use it locally. It's on you to decide from where you want to load config file.

wodAppUpdate will compare details inside config file and file on local system which you want to update.

You don't need to use UpdFile if you don't want to. However it's there if you need to change something about update files inside your code.


Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

Help setting component

by Niltonniltonb2@gmail.com, Thursday, November 28, 2013, 15:13 (4013 days ago) @ wodDrazen

Alright! Did some testing here and it worked!

In HelpOnline see it has several properties such as NewVersion. If I put this property in Config.txt file will automatically identify the component?

Help setting component

by wodDrazen, Thursday, November 28, 2013, 15:20 (4013 days ago) @ Niltonniltonb2@gmail.com

Nilton,


Yes it should. Let us know if you find some problem.


Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

Help setting component

by Nilton, Thursday, November 28, 2013, 15:52 (4013 days ago) @ wodDrazen

yes speak ...

Another problem I'm experiencing is that when I put the file on the server Config.txt he replies that failed in the signature, and it works perfectly when found locally.

Help setting component

by wodDrazen, Thursday, November 28, 2013, 16:17 (4013 days ago) @ Nilton

Nilton,


Can you show us maybe your config file?

Please make sure that you add this line at begging:
#Update file signature

More info about config file you can find here:
http://www.weonlydo.com/AppUpdate/Help/ConfigurationFile.html


Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

Help setting component

by Nilton, Thursday, November 28, 2013, 16:31 (4013 days ago) @ wodDrazen

I write like this:

#Update file signature

[Global]
AutoRestart=0

[File]
Name=projMaqplanUpdate.exe
UncompressedSize=0
Size=0
Version=2.0
Date=20131126124220
Compressed=0
path=C:/
URL=https://www.dropbox.com/s/myk20cyi73fiifs/projMaqplanUpdate.exe


But it is a txt file and is in dropbox and step the download link. perhaps that is what is wrong

Help setting component

by wodDrazen, Thursday, November 28, 2013, 16:43 (4013 days ago) @ Nilton

Nilton,


What happens if you use some other file that isn't on Dropbox?


Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

Help setting component

by Nilton, Thursday, November 28, 2013, 16:56 (4013 days ago) @ wodDrazen

When the file is Config.txt site, it can run successfully the update! When I put the same file in DropBox Config.txt it the fault in the signature. Recalling that literally put the txt file in DropBox and I share the link to check the function of your component!

In Config.txt file at the URL, the link step of a Archiving for download which is also in DropBox.

Help setting component

by wodDrazen, Thursday, November 28, 2013, 17:17 (4013 days ago) @ Nilton

Nilton,


When you open URL in Dropbox you actually receive webpage where you need to click on download button to download that file.

What happens if you add your config file somewhere where you can open it directly (in browser for example)?


Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

Help setting component

by Nilton, Thursday, November 28, 2013, 17:26 (4013 days ago) @ wodDrazen

When you open URL in Dropbox you actually receive webpage where you need to click on download button to download that file.
A: Yes.

What happens if you add your config file somewhere where you can open it directly (in browser for example)?
R: How would I do this option?

Help setting component

by wodDrazen, Thursday, November 28, 2013, 17:47 (4013 days ago) @ Nilton

Nilton,


You need to run your server or put it somewhere on Internet from where you can access this file.

Inside our example we use our online configuration file.

You can find it here:
http://www.weonlydo.com/AppUpdate/test/update.php


Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------