Old 14th April 2006, 12:58   #1
lanfear2667
Junior Member
 
Join Date: Apr 2006
Posts: 4
Remove dead space from reg_multi_sz

I am using the registry plug-in and am trying to remove a single string from the value of the key. I can accomplish this with the following lines:

${registry::ReadExtra} "HKLM\System\CurrentControlSet\Services\Eventlog\System" "Sources" "" $R1 $R2
${WordReplace} $R1 "prot_srv" "" "+" $R1
${registry::Write} "HKLM\System\CurrentControlSet\Services\Eventlog\System" "Sources" "$R1" "$R2" $R3


Unfortunatly, this leave a dead space or carriage return within the key and it no longer registers anything beyond the dead space. If I physcially open the key with regedit and close it, the registry will fix itself.

Does anyone know of a way to eliminate, not only the string but the line or space itself?
lanfear2667 is offline   Reply With Quote
Old 14th April 2006, 14:11   #2
Instructor
Major Dude
 
Join Date: Jul 2004
Posts: 671
code:
${WordReplace} $R1 "prot_srv$\n" "" "+" $R1
Instructor is offline   Reply With Quote
Old 14th April 2006, 14:22   #3
lanfear2667
Junior Member
 
Join Date: Apr 2006
Posts: 4
lol, I swear I tried that.

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