Page 1 of 1

Current HMG_PATH

Posted: Thu Apr 24, 2014 8:45 pm
by Pablo César
Would it be good to have HMG_PATH information (HMG folder after installation and current HMG in execution) like as for exemple HMGVersion() the function returns from the constant _HMG_VERSION_NUMBER_ in MiniGUI.ch file ?

Is it important this ?

Probably we will need for this.

Re: Current HMG_PATH

Posted: Fri Apr 25, 2014 3:03 am
by Rathinagiri
I think this is what hmg.ini does in IDE folder. Isn't it?

Re: Current HMG_PATH

Posted: Fri Apr 25, 2014 3:46 am
by tave2009
Hola Pablo César,
se me ocurre una idea loca, pero...tal vez funcione. :lol:
Al correr el Setup (instalador de Hmg) este podría manipular el Reistry de Window (debería preguntar Path donde instalar Hmg
o por default c:\hmg.3.2) y guardar el Path donde Hmg fue realmente instalada y también la versión y otros datos si fuere necesario.
Luego tu programa debería "leer" esta "info" para hacer lo que necesitas.
Creo que esto haría funcionar tu programa independientemente de donde haya sido instalado Hmg
Claro que para esto se debería modificar el Setup.
Las funciones para grabar y leer el Registry existen en Hmg.
Espero sirva esta "loca" idea. :mrgreen:
Saludos

Current HMG_PATH

Posted: Fri Apr 25, 2014 11:29 am
by Pablo César
Thanks for your replies gentlemen.
Rathinagiri wrote:I think this is what hmg.ini does in IDE folder. Isn't it?
The question is hmg.ini locate this file, can be many depending on the amount of HMG facilities.
I think this would be the most appropriate.
Rathi Thanks for your tip.
tave2009 wrote:se me ocurre una idea loca, pero...tal vez funcione. :lol:
Al correr el Setup (instalador de Hmg) este podría manipular el Reistry de Window (debería preguntar Path donde instalar Hmg
o por default c:\hmg.3.2) y guardar el Path donde Hmg fue realmente instalada y también la versión y otros datos si fuere necesario.
Luego tu programa debería "leer" esta "info" para hacer lo que necesitas.
Creo que esto haría funcionar tu programa independientemente de donde haya sido instalado Hmg
Hola Walter, gracias por tu indicacion. Una idea loca, pero es loque que yo ya estaba pensando hacer y lo tengo hecho en este ejemplo, lo hace es justamente lo que dijiste, verifica el Registry, ve cual es la ultima version y en que carpeta fué instalada.

Image

Gracias por tu idea no muy loca. :)