|
|
#1 |
|
Junior Member
Join Date: Apr 2012
Posts: 1
|
Searching path for multiple versions
Hi,
I've read the functions for replacing, and appending values to a path env variable. I want to check for all possible versions supported in an evn variable. e.g. if checking gs for all versions, i'd like to look for something like C:\Program Files\gs\* in the env value, and then, delete any found prior to appending the new version. If anyone can give me some pointers on doing this, that would be great! Thanks, Russ |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,203
|
If nothing already exists for this then I would suggest using an array plug-in (such as nsArray) and split the environment variable into array elements. You can then do a search to remove items (you can use StrCpy/StrCmp for that) and then join back together when done.
Edit: Note that the standard NSIS build limits strings to 1024 characters. You must use the special build (or rebuild yourself) to overcome this limit. Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|