Actualización del Ejecutable.

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Actualización del Ejecutable.

Post by mol »

it sounds good and interesit, Daniel!
Now I'm using my simple module for checking version of app installed in user's computer with version number placed on my web server.
If there is new version, client is asked for downloading and installing new one. I'm using InnoSetup to create installation file.
User avatar
danielmaximiliano
Posts: 2795
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Re: Actualización del Ejecutable.

Post by danielmaximiliano »

mol wrote: ↑Sun Sep 13, 2026 7:55 pm it sounds good and interesit, Daniel!
Now I'm using my simple module for checking version of app installed in user's computer with version number placed on my web server.
If there is new version, client is asked for downloading and installing new one. I'm using InnoSetup to create installation file.

Hola Mol, todas mis pruebas estan hechas contra el servidor Rebex Tiny que incluyo.

leer : UniversalUpdater_Guia_Principiantes.md

perdon por no traducir el documento, tambien hay un documento para la ayuda de una IA (pueden usar Zcode con una cuenta google, no pide numero telefonico )

IA : UniversalUpdater_Integracion_IA.md

compilar con HBMK2 agregando las rutas Harbour64 y MinGW64 (HMG) , los ejemplos corren en CMD.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
User avatar
danielmaximiliano
Posts: 2795
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Re: Actualización del Ejecutable.

Post by danielmaximiliano »

dejo los fuentes +Rebex tiny Tfpt Server para pruebas.

documentacion en Español e Inlges
Attachments
UniversalUpdater.rar
(12.38 MiB) Downloaded 26 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
User avatar
serge_girard
Posts: 3429
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Actualización del Ejecutable.

Post by serge_girard »

Daniel,

Can you please explain in short how it works?

Thanks, Serge
There's nothing you can do that can't be done...
User avatar
danielmaximiliano
Posts: 2795
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Re: Actualización del Ejecutable.

Post by danielmaximiliano »

serge_girard wrote: ↑Thu Sep 17, 2026 6:57 am Daniel,

Can you please explain in short how it works?

Thanks, Serge
In the "Test" folder, there is an app (DemoApp.prg) designed to be part of your application or project; its function is to check a server for updates. If an update is found, it notifies the user; otherwise, your application continues running as usual.
Your app launches the update process either upon completion or whenever you choose.
Your app generates a JSON file, launches UniversalUpdater as an external application, and then closes itself.
UniversalUpdater handles the entire app update process (the content is packaged in a ZIP file, which can be digitally signed if desired).
UniversalUpdater verifies the package's integrity and performs the update; if any issues arise, it reverts everything to its previous state (thanks to a prior backup).
Full documentation is available in both Spanish and English, and a Markdown document is included to help an AI integrate UniversalUpdater into your app.
To run a test on your computer, you can use the Rebex Tiny FTP server included in the example. This allows you to execute

Code: Select all

C:\Proyectos\UniversalUpdater\TEST\Demo.cmd
from the command prompt and examine the files to see how UniversalUpdater works.

en la carpeta Test hay una app (DemoApp.prg) que sera parte de su aplicacion o proyecto , esta lo que hace es verificar contra un servidor si hay una actualizacion. si la hay informa. sino su aplicacion sigue como si no hubiese pasado nada.
su app al terminar de ejecutarse o cuando ud quiere lanza la actualizacion.
su app genera un json lanza UniversalUpdater como aplicacion externa y se cierra.
UniversalUpdater hace todo el trabajo de actualizar la app (el contenido esta en un ZIP con firma digital si usted quiere)
UniversalUpdater verifica la integridad del paquete, y realiza la actualizacion, si hay algun problema regresa todo como estaba (porque hubo un backup anteriormente).
tiene toda la documentacion en español e ingles para leer, tambien tiene un documento Markdown para hacer que una IA integre UniversalUpdate a su app.
si quiere correr un test en su computadora puede usar Rebex Tiny TFP que agregue al ejemplo y ejecutarlo. de esta manera puede desde la consola cmd ejecutar

Code: Select all

C:\Proyectos\UniversalUpdater\TEST\Demo.cmd
, puede revisar todos los archivos para ver como trabaja UniversalUpdate
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
User avatar
serge_girard
Posts: 3429
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Actualización del Ejecutable.

Post by serge_girard »

Thanks Daniel !
There's nothing you can do that can't be done...
User avatar
Steed
Posts: 462
Joined: Sat Dec 12, 2009 3:40 pm

Re: Actualización del Ejecutable.

Post by Steed »

gRACIAS
Post Reply