In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

tftp

Xailer professional forum in English
Responder
Roberto
Mensajes: 177
Registrado: Mar Oct 16, 2007 11:53 pm

tftp

Mensaje por Roberto »

Hi,
Is there a way to get the exe file version?
I'm using the date/time to know if there is a new version, but it depend on the user's machine time.
tks
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

tftp

Mensaje por jfgimenez »

Roberto,
> Is there a way to get the exe file version?
> I'm using the date/time to know if there is a new version,
> but it depend on the user's machine time.
Do you mean the own exe, that is, the exe file of the running program?
If so, please, take a look to nVersion, nRelease, nBuild and cVersion
properties from TApplication.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Roberto
Mensajes: 177
Registrado: Mar Oct 16, 2007 11:53 pm

tftp

Mensaje por Roberto »

tks for ur answer,
yes, but I want this information from a remote file, not local.
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

tftp

Mensaje por jfgimenez »

Roberto,
> yes, but I want this information from a remote file, not
> local.
Via ftp? Sorry, I don't know any way to do that.
ITOH, if the FTP server is under your control to serve app updates or
so, the simplest way is to upload a .txt file containing that info.
Later, your app downloads that .txt and compares to itself in order to
determine if it needs to be updated, and then proceed to download the
installer app. That's how I use to do it, and has a valuable benefit...
every time your program check for an update, it downloads only a very
small .txt file, not the whole installer, so you saves a lot of bandwidth.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Roberto
Mensajes: 177
Registrado: Mar Oct 16, 2007 11:53 pm

tftp

Mensaje por Roberto »

tks,
I did it and it's working fine

btw, TLabelEx seems to be not working well. I did some tests and the program stops responding. Then I changeg to Tlabel and everything worked fine.
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

tftp

Mensaje por jfgimenez »

Roberto,
> tks,
> I did it and it's working fine
> :)
> btw, TLabelEx seems to be not working well. I did some tests
> and the program stops responding. Then I changeg to Tlabel
> and everything worked fine.
TLabelEx only support a few html tags (<b>, <i>, <u> and <a>). It
doesn't support atributes in any tag, nor even in <a>. This last is used
only to change the look of the text, not to specify a destination URL (a
click on a text covered by <a> and </a> is triggered through OnLinkClick
event).
If your are getting something wrong, please, send us a very small sample
to reproduce it.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder