Did u save the text as a .reg file?
The reg file should look like this
-----------------------------------------------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III]
"InstallPath"="e:\\Program Files\\Warcraft III"
"Program"="e:\\Program Files\\Warcraft III\\Warcraft III.exe"
"War3CD"="G:\\"
"Battle.net gateways"=hex(7):31,30,30,31,00,30,31,00,31,39,35,2e,38,37,2e,36,\
2e,31,00,32,00,53,77,47,43,00,00
[HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOpt0]
"Path0"="e:\\Program Files\\Warcraft III\\save"
"File0"="w3z"
"Path1"="e:\\Program Files\\Warcraft III\\save"
"File1"="w3v"
"Path2"="e:\\Program Files\\Warcraft III\\save"
"File2"="w3p"
[HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOpt1]
"Path0"="e:\\Program Files\\Warcraft III\\replay"
"File0"="w3g"
[HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOpt2]
"Path0"="e:\\Program Files\\Warcraft III\\Logs"
"File0"="log"
"Path1"="e:\\Program Files\\Warcraft III\\Logs"
"File1"="txt"
"Path2"="e:\\Program Files\\Warcraft III\\Logs"
"File2"="w3g"
"Path3"="e:\\Program Files\\Warcraft III\\Logs"
"File3"="j"
[HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\DelOpt3]
"Path0"="e:\\Program Files\\Warcraft III\\Errors"
"File0"="txt"
[HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Video]
"reswidth"=dword:00000320
"resheight"=dword:00000258
"colordepth"=dword:00000010
"adapter"=dword:00000000
"refreshrate"=dword:0000004b
"gamma"=dword:0000001e
"modeldetail"=dword:00000001
"animquality"=dword:00000001
"texquality"=dword:00000001
"miplevel"=dword:00000000
"texcolordepth"=dword:00000010
"particles"=dword:00000001
"lights"=dword:00000002
"lockfb"=dword:00000001
"unitshadows"=dword:00000001
"occlusion"=dword:00000001
[HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\misc]
"seenintromovie"=dword:00000001
"campaignprofile"=""
"clickedladder"=dword:00000001
"clickedad"=dword:00000000
"chatsupport"=dword:00000000
[HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Sound]
"provider"=dword:00000002
"positional"=dword:00000001
"environmental"=dword:00000001
"music"=dword:00000001
"musicvolume"=dword:00000028
"sfx"=dword:00000001
"sfxvolume"=dword:00000064
"ambient"=dword:00000001
"movement"=dword:00000001
"unit"=dword:00000001
"subtitles"=dword:00000000
"nomidi"=dword:00000000
"softwaremidi"=dword:00000001
"nosoundwarn"=dword:00000001
[HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\Gameplay]
"gamespeed"=dword:00000003
"mousescroll"=dword:00000032
"mousescrolldisable"=dword:00000000
"keyscroll"=dword:00000032
"tooltips"=dword:00000001
"formations"=dword:00000001
"herobar"=dword:00000001
"netgameport"=dword:000017e0
"inputsprocket"=dword:00000000
"ammversion"=dword:00000000
"ammstyles"=""
"ammmapprefs"=""
[HKEY_CURRENT_USER\SOFTWARE\Blizzard Entertainment\Warcraft III\String]
"userbnet"="[FaQ]-QWERTY"
"userlocal"=""
-----------------------------------------------------------------------------------
Copy this text to Notepad, save the file as .reg file and double-click it to merge it.
If this doesnt work and if u are using Win 98 you'll probably need to replace "Windows Registry Editor Version 5.00" with "REGEDIT 4"
You'll need another reg file for the uninstall entries, refer to DRAKHNiR's post for that.
Hope this helps!
If it still doesnt work u can send me the .reg file so I can see what's wrong with it.