![]() |
#1 |
Junior Member
Join Date: Aug 2016
Posts: 2
|
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 |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,339
|
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... IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Aug 2016
Posts: 2
|
I tried and it doesnt work
![]() Thanks for your help, cheers. |
![]() |
![]() |
![]() |
#4 |
Major Dude
Join Date: May 2003
Posts: 681
|
no relativ possible - pls read:
http://helpnet.flexerasoftware.com/i...MONFILES64.htm Greets, Brummelchen |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|