Old 12th April 2006, 21:20   #1
lanfear2667
Junior Member
 
Join Date: Apr 2006
Posts: 4
Manipulate part of a string

I am trying to pull a value from a registry key that has multiple pieces as such:
ProviderOrder = RDPNP,LanmanWorkstation,WebClient,PssoCM32
These could be in any order depending on when they were installed. I need to be able to remove PssoCM32 from the string and leave the rest. Could someone point me in the right direction? Any help is appreciated.
lanfear2667 is offline   Reply With Quote
Old 12th April 2006, 22:06   #2
galil
Member
 
Join Date: Jan 2003
Posts: 83
!include "WordFunc.nsh"
!insertmacro WordReplace


ReadRegStr $0 "root_key" "sub_key" "name"
${WordReplace} $0 "PssoCM32" "" "+" $0
WriteRegStr "root_key" "sub_key" "name" $0


it's all in the manual.
galil is offline   Reply With Quote
Old 13th April 2006, 12:53   #3
lanfear2667
Junior Member
 
Join Date: Apr 2006
Posts: 4
Thank you very much.
lanfear2667 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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