If this is all there is in your code you are missing an endif after you check for the existance of the key. You have 2 if statements and only 1 endif. -----Original Message----- From: Mikael Johnsen [mailto:mjo@xxxxxx] Sent: Monday, October 28, 2002 9:15 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Kix question I'm trying to load a registry key and i'm doing what it says in the manual on page 72 but i can't make it work Could you guys please take a look at it ;script start $ReturnCode = KeyExist ("HKEY_CURRENT_USER\Software\TechSmith\SnagIt\5\") IF $ReturnCode ? "Snagit Key exists...." ELSE $ReturnCode = AddKey ("HKEY_CURRENT_USER\Software\TechSmith\SnagIt\5\") If $ReturnCode = 0 ? "Key added...." Endif $ReturnCode = LoadKey ("HKEY_CURRENT_USER\Software\TechSmith\SnagIt\5\", "k:\snagit.reg") If $ReturnCode = 0 ? "Key loaded...." Endif ;$ReturnCode = DelTree ("HKEY_CURRENT_USER\Software\TechSmith") ;If $ReturnCode = 0 ; ? "Key deleted...." ;Endif ;script end Med venlig hilsen / Best regards Mikael Johnsen Systemadministrator / System Administrator PBJ Consult A/S Roholmsvej 10G DK-2620 Albertslund Phone: +45 43 62 74 00, Fax: +45 43 62 74 24 Email: mailto:mjo@xxxxxx, Homepage: http://www.pbj.dk ********************************************** This weeks Sponsor NetX Inc Thin Client NetX Develops XP and NT Embedded Thin Client Solutions, Easy to Configure, Extremely Secure, and Remotely Managed. Check out our recently updated website at http://www.netxinc.com *********************************************** Visit Jim Kenzig of thethin.net at the Emergent Online Booth #26 at Citrix Iforum 2002! Register now at: http://www.citrixiforum.com/registerNow.html *********************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm ********************************************** This weeks Sponsor NetX Inc Thin Client NetX Develops XP and NT Embedded Thin Client Solutions, Easy to Configure, Extremely Secure, and Remotely Managed. Check out our recently updated website at http://www.netxinc.com *********************************************** Visit Jim Kenzig of thethin.net at the Emergent Online Booth #26 at Citrix Iforum 2002! Register now at: http://www.citrixiforum.com/registerNow.html *********************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm