Current HMG_PATH

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Current HMG_PATH

Post 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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Current HMG_PATH

Post by Rathinagiri »

I think this is what hmg.ini does in IDE folder. Isn't it?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
tave2009
Posts: 61
Joined: Tue Jul 14, 2009 3:33 am
Location: San Francisco, Córdoba, Argentina.

Re: Current HMG_PATH

Post 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
Nada se pierde. Todo se transforma. (Lavoussier)
Nothing is lost. Everything changes.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Current HMG_PATH

Post 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. :)
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply