Archive: Manipulate part of a string


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.


!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.


Thank you very much.