Skip to content
⌘ NSIS Forum Archive

Substitute $COMMONFILES64 with relative path

4 posts

geoslake#

Substitute $COMMONFILES64 with relative path

Hi guys

First Im a real noob, I just create my own very simple launchers to make the (few) apps I use portable.
I usually copy the files needed by the launched app to the locations it expects to find them, like to %appdata etc
But when the file to be copied is big, it would be a much better option not to copy the file, but just pretending its there.

For instance I have an app that expect a big 60mb .dll file to be in $COMMONFILES64
Is there any command, to tell the .exe to look for its dll somewhere else at runtime ?
Smething like :
set path $COMMONFILES64 = $EXEDIR\Data\Commonfiles64 or something ?

Or even better, to ADD (not substitute) a path, relative to the laucnhed exe, in case changing the commonfiles location could interfere with another app, running at the time, and which would also access this folder ?

Thanks
Anders#
It really depends on how the app finds and loads the .dll.

You could try cmd.exe first: set path=%path%;x:\data\dlls and then start the app. If that does not work then you probably have to modify the app itself in ways that are not possible with NSIS...
Brummelchen#
no relativ possible - pls read:
http://helpnet.flexerasoftware.com/i...MONFILES64.htm