I think i found out why in the Micrososft SQL Server (folder/Key) i found the same value, since i kind of messed up SQL server i deleted the value and the subkey deseapeared, they seem to be linked somehow..? (i'm not a big registry expert).So i just need to delete that value in the "main key" but it's a REG_MULTI_SZ value, and if there is more then one instance of SQL server they will show up in there, i just want to delete one of them. Do you know if the next line of code will do the trick?
DeleteRegValue HKLM "Software\Microsoft\Micrososft SQL Server" "$Thevalue"
P.S. If anyone can tell me how to link a value to a subkey value, that would be nice!
Thanks for the replies