I have written a C++ library which will be used for POS applications,
Library are to be distributed as binaries(DLL only for windows) to customers
I have understood that library can be used in 3 ways on client machine
- By placing binaries in the directory/folder of application executable
- By copying binaries to system32 directory
- By adding path of the binaries on client machine to PATH environment variable
Kindly educate me if there is a better way of installing library on the client machine,
Which is the best way to install the distributed binaries on the client machine?
Thanks in advance
I strongly recommend you, to put the library into the application folder: Putting it into system32 is an invitation to DLL hell: A newer version in the app directory would be overruled by an older version in system32.
There is quite an easy rule: