[THIN] SV: Re: Kix question

  • From: "Mikael Johnsen" <mjo@xxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Mon, 28 Oct 2002 15:32:55 +0100

I believe there should be only one endif, the else counts for the other
one

Med venlig hilsen / Best regards
Mikael Johnsen
Systemadministrator / System Administrator
=20
PBJ Consult A/S           =20
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



-----Oprindelig meddelelse-----
Fra: Michael Day [mailto:mday@xxxxxxxxx]=20
Sendt: 28. oktober 2002 15:26
Til: thin@xxxxxxxxxxxxx
Emne: [THIN] Re: Kix question


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 =3D KeyExist
("HKEY_CURRENT_USER\Software\TechSmith\SnagIt\5\")
IF $ReturnCode
   ? "Snagit Key exists...."
ELSE

$ReturnCode =3D AddKey =
("HKEY_CURRENT_USER\Software\TechSmith\SnagIt\5\")
If $ReturnCode =3D 0
   ? "Key added...."
Endif

$ReturnCode =3D LoadKey =
("HKEY_CURRENT_USER\Software\TechSmith\SnagIt\5\",
"k:\snagit.reg")
If $ReturnCode =3D 0
        ? "Key loaded...."
Endif

;$ReturnCode =3D DelTree ("HKEY_CURRENT_USER\Software\TechSmith")=20
;If $ReturnCode =3D 0
;       ? "Key deleted...."
;Endif

;script end

Med venlig hilsen / Best regards
Mikael Johnsen
Systemadministrator / System Administrator
=20
PBJ Consult A/S           =20
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=20
Thin Client Solutions, Easy to Configure,=20
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
***********************************************=20
For Archives, to Unsubscribe, Subscribe or=20
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=20
Thin Client Solutions, Easy to Configure,=20
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
***********************************************=20
For Archives, to Unsubscribe, Subscribe or=20
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

Other related posts: