Just did a test and you can do it much easier.
In the following text just change the red text appropriate to your program.
Then copy all the text as it appears into a .txt file and rename the .txt extension to reg.
Double click it and it will automatically add the info to your registry.
Next time you open SONAR
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Cakewalk Music Software\Tools Menu\
Sound Forge 10]
"exePath"="C:\\Program Files (x86)\\
Sony\\Sound Forge Pro 10.0\\forge100.exe" "MenuText"="&
Sound Forge 10"
"StatusBarText"="Run
Sound Forge 10"
"Type"="WaveEditor"