Laex / Delphi-OpenCV

Project Delphi-OpenCV. Translation of OpenCV library header files in Delphi
500 stars 226 forks source link

Copy the libraries to System32 I think Fatal Error Future #121

Closed okbach closed 5 years ago

okbach commented 5 years ago

I've built me a program that install the components auto ffmpeg and opengl and copy all dll for system 32 and system 64
To make it easy to live for all developer but win 7 ,8, 10 Do not allow copying files to "system32" It is forbidden Even with admin 'root' access Is it possible to create an alternate folder
And create key in the registry تحيا الجزائر

checkdigits commented 5 years ago

This is not something you should be doing.

Installing ‘shared’ components requires you to understand a number of subtle things about installers - for example version control and correct registration of the components in the system’s manifest. You also need to handle correct uninstallation of the shared components too.

Proper installation is not just a matter of editing registry settings. 😀

Rather than do this yourself I’d recommend a dedicated install program such as InnoSetup. InnoSetup is excellent, open source, easy to understand and widely used. There are plenty of others available too so you don’t have to reinvent everything.

Laex commented 5 years ago

All necessary dll can be copied to the same directory where your program is located

okbach commented 5 years ago

But it is annoying for the developer to do this every time the program builds Library names are similar ..... ْ32-bit and 64-bit libraries This creates a problem

Laex commented 5 years ago

The program is developed for either 32 bits or 64 bits. There are always difficulties ...

okbach commented 5 years ago

thanks Laex and checkdigits