Hi,

On Mittwoch 07 Juli 2010, Martin Paljak wrote:
> On Jul 6, 2010, at 2:05 PM, Jean-Michel Pouré - GOOZE wrote:
[...]
> The discussion faded out then, one of outstanding issue is adding an
>  "OpenSC home" registry during installation so that profiles could be found
>  without consulting the configuration file even if OpenSC gets installed to
>  non-standard locations.
[...]

I would rather use binary-relative path lookup instead of the registry.

The WIN32 function GetModuleFileName() can be used to derive the installation 
path of your project. We use this for our AqBanking family (and the AqFinance 
application): In the beginning we also used the registry but that approach 
wasn't flexible enough.

By using GetModuleFileName() on WIN32, _NSGetExecutablePath() on MacOSX and 
binreloc on other systems we can now provide binaries which are completely 
relocatable.  This has also the advantage that the complete project can me 
moved to another location later.

Just my 2c...


Regards
Martin


-- 
"Things are only impossible until they're not"

Martin Preuss - http://www2.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to