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.
Current HMG_PATH
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Current HMG_PATH
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- 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
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.
South or North HMG is worth.
...the possibilities are endless.
Re: Current HMG_PATH
Hola Pablo César,
se me ocurre una idea loca, pero...tal vez funcione.
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.
Saludos
se me ocurre una idea loca, pero...tal vez funcione.
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.
Saludos
Nada se pierde. Todo se transforma. (Lavoussier)
Nothing is lost. Everything changes.
Nothing is lost. Everything changes.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Current HMG_PATH
Thanks for your replies gentlemen.
I think this would be the most appropriate.
Rathi Thanks for your tip.
Gracias por tu idea no muy loca.
The question is hmg.ini locate this file, can be many depending on the amount of HMG facilities.Rathinagiri wrote:I think this is what hmg.ini does in IDE folder. Isn't it?
I think this would be the most appropriate.
Rathi Thanks for your tip.
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.tave2009 wrote:se me ocurre una idea loca, pero...tal vez funcione.
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
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
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein