Hi Guys and Girls

I am looking to add a registry key for all my users. There is a known issue with one of the apps we use and it requires a registry key to be in the users hive.

The key is:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet\Settings\ProxyHttp1.1

Now I have a check for key syntax already for another issue I had which is

$ReturnCode = KeyExist("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles")

If $ReturnCode = 0

RUN "E:\PROGRA~1\MICROS~1\OFFICE11\OUTLOOK.EXE /importprf E:\PROGRA~1\MICROS~1\custom11.prf"

EndIF

If $ReturnCode = 1
EXIT

But I now need to adapt this to say if the key exists then exit which I assume is the last IF statement but if it doesn't I need it to add it - thats the bit I don't know

Any help would be most appreciated and the response I got from my last post was just superb so I am expecting great things \:\)

Thanks