I create a Qt app. It uses Qt dlls and also libusb dll and openssl dlls. And I use Qt Installer Framework and with windeployqt
I bundle all these dlls in the same folder as my app. So when it's extracted on the user's system it all works well as the dlls are right next to the app exe so the dlls are discovered correctly.
Now I want to add my app.exe to PATH
environment variable. I can do it with the Qt Installer Framework. But the problem is that the dlls that come with my app will be now exposed to PATH
too. And it does not look good. How do people normally solve the problem?
Maybe, it's bad to add/remove my app to/from PATH
on installation/deinstallation? However, I've checked out that e.g. CMake's and Python's installers do modify the PATH
, though it looks like they do it using Wix toolset or something like this, while I use Qt Installer Framework: JavaScript where I specify Powershell commands to get executed.