|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2010
Posts: 9
|
Find dll files in all directories listed in the PATH variable
I need to find a DLL in a list of directories, e.g. in the PATH variable.
PATH = "c:\aaaa;c:\bbbb" etc I have written a method that reads the registry and splits the string with a STRTOK method I found in the NSIS wiki: code: I works for all items but the last one, so the path "c:\bbbb" is never searched for the dll. Also it doesn't work if the PATH looks like this: PATH = "c:\aaaa;;c:\bbbb" etc The duplicate ';' character will not deliver all tokens in the string. Isn't there an easy way to split a string in NSIS? Or is there a plugin that can find a file in a list of directories? |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Mar 2003
Posts: 571
|
From the NSIS Users Manual:
http://nsis.sourceforge.net/Docs/AppendixE.html#E.1.2 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|