Archive: Uninstalling partial registry keys


Uninstalling partial registry keys
I'm having a problem with registry entries. I'm adding a Path environment into HKLM so that I can run a program from the dos command prompt without having to switch to the directory. There are already a bunch of entries under this Path statement in the registry, so what I can do is grab the current value and add toss a semicolon on to the end as a seperator and then add in my value. I figured out a way to remove this entry from the registry on uninstall (basically just trimming the end of the Path statement), but the problem comes into play when another program is installed after I install my program and it adds an additional parameter into the Path. Then my Path value will be in the middle of other statements, and I would need to parse out that value somehow and leave the remaining Path statements. How would I go about doing this? I would think there is an easier way to do this then how I am going about doing it. Is there a way for me to examine the entire string and tell it to remove just a certain text string and keep the rest?


You should take a look at the string functions on the Wiki. One possiblity would be the Splice function found here


http://forums.winamp.com/showthread....hreadid=240795