kent, checking more into the filey...
code:
$rc = writevalue($profilelocation, 'DefaultProfile', @userid, 'REG_SZ')
; -- Check for the Default profile, if it does not exist, create it
IF @userid <> READVALUE( $profilelocation, 'DefaultProfile' )
$rc = WRITEVALUE ($profilelocation, 'DefaultProfile', @userid, 'REG_SZ')
ENDIF

eh?
you first create and then you check does it exist?
_________________________
!

download KiXnet