Gee... tough way to do it.
If you have KiX4 then @ProductSuite is your friend.

Else
code:
;  - check OS WinNT = 1, Win95 = 2
;
if @INWIN = 2
goto OSRightsOK
endif
; not Win95, ergo must be WinNT so more checks are in order
;-----------------------------------------------------------------------------------
; - check if logon to Server or Workstation
; PRODUCTTYPE - WinNT = Workstation, ServerNT = Member Server, LanmanNT = Domain Controller
;
$PRODUCTTYPE = READVALUE("HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\CONTROL\PRODUCTOPTIONS","PRODUCTTYPE")
; if not Workstation, just exit without notice
if $PRODUCTTYPE <> "WinNT"
goto finish
ENDIF

EndIf

[ 25 April 2002, 19:00: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.