Old 6th April 2012, 13:25   #1
russurquhart1
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
russurquhart1 is offline   Reply With Quote
Old 19th April 2012, 11:17   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,348
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
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump