Skip to content
⌘ NSIS Forum Archive

Manipulate part of a string

3 posts

lanfear2667#

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