Archive: Parse a file


Parse a file
I am trying to use the ReadRegStr to get a value and then i need to parse the value to only get one part of the string.

Example:
ReadRegStr $R1 HKLM "HARDWARE\HARDWARE\DEVICEMAP\VIDEO" "\Device\Video0"

The value that this will return to $R1 is "\REGISTRY\Machine\System\ControlSet001\Services\ialm\Device0"

I then want to take the value "ialm" from the string and set it to a variable.

Can you do this?

Thanks in advance


There are many string functions on the NSIS Archive.
The one that you want can be found here.

Edit inside the function where it says (replacing " " with "\").

-Stu


Maybe putting a link to all string functions available, to choose that is right for he/she:
Archive String Functions