Dll's in subfolder of exe?
-
DLL dependencies are searched for in a designated search path, usually being appdir + %PATH%. You would have to add the subdir to your dll search path for this to work, thus requiring some batch-file-magic. I wouldn't bother too much with this to be honest, because people on windows use (should use) short-cuts anyway.
-
Thanks for the explanation.
You are right. That isn't worth the trouble.I know a lot of my users aren't too tech-savy plus my tools are always portable. That means they could be confused by the shitload of .dll's in the application-folder.
Is there a way to put some .dll's together or put them in the .exe-file itself WITHOUT statically binding or subverting the LGPL-license agreements?
-
[quote author="Franzk" date="1305625156"]As long as there is only one executable in the directory, there isn't much they can do wrong, no?[/quote]
From the point of view of a healthy human, yes.
You should see the questions people sometimes ask on my blog about my other tools.I guess it comes down to survival of the fittest. If you can't find the .exe you shouldn't use the tool.
-
I would recommend creating an installer too. I use "InnoSetup":http://www.jrsoftware.org/isinfo.php with great success, others use "NSIS":http://nsis.sourceforge.net/Main_Page. If you're brave you can have a look at Qt's own "Installer Framework":https://qt.gitorious.org/qt-labs/installer-framework on the labs.
Those make it easy to setup desktop icons, taskbar shortcuts and application menu entries. Additionally, the installers (at least Inno and NSIS) support updates, so when a new version of your software is out, the users would not have to fiddle around themselfs, but the installer replaces the necessary pieces.
-
Hi Hedge,
for which platform do you do that?
There are platform dependent ways to achieve new dll directories (e.g. for windows, you can call SetDllDirectory: http://msdn.microsoft.com/en-us/library/ms686203(VS.85).aspx ).[EDIT: fixed link, Volker]
-
Ah, ok :-)
That should work. Windows has alias files (files ending in .lnk if shown on another OS). I don't know if these work on absolute or relative path names. If they work on relative paths, you can put everything, including the exe, in a subdirectory and have an alias point to your exe). But as said, I don't know if that still works if you move the directory to another direction or copy it to another windows box.
-
[quote author="Gerolf" date="1305629162"]Hi Hedge,
for which platform do you do that?
There are platform dependent ways to achieve new dll directories (e.g. for windows, you can call SetDllDirectory: http://msdn.microsoft.com/en-us/library/ms686203(VS.85).aspx ).[EDIT: fixed link, Volker][/quote]
That will not work as it needs a running application and application startup will fail on missing QtCore4.dll