home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!gumby!kzoo!k044477
- From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
- Subject: Re: how to put indelible serial# in resource fork of app?
- Message-ID: <1992Jul22.202036.3577@hobbes.kzoo.edu>
- Keywords: serial#
- Organization: Kalamazoo College
- References: <Jul.20.17.18.21.1992.16265@gandalf.rutgers.edu> <1992Jul20.232738.21376@hobbes.kzoo.edu> <Jul.22.14.59.09.1992.6438@gandalf.rutgers.edu>
- Date: Wed, 22 Jul 1992 20:20:36 GMT
- Lines: 34
-
- rgonzal@gandalf.rutgers.edu (Ralph Gonzalez) writes:
- >
- >Also, it appears to be a good idea to have the user enter their name
- >the first time they run the program, and display it in the startup
- >screen after that. This helps "shame" non-registered users.
- >
- >QUESTION 1: Is it ok to store this name in the application's own
- >resource fork?
-
- Try the data fork. When your app starts, check the data fork to see if
- name/company info is there. If not, try opening your data fork with
- fsRdWrPerm. If you can, request the name/company from the user and
- write it in. If you get a wPrErr or an accessDenied error, you may be
- on a CD-ROM, a locked floppy, or a server with read-only access;
- no sweat, don't do anything. If you get an fLckdErr, the file
- is locked--tell the user to unlock the app for registration purposes and
- ExitToShell. That way, users can't defeat annoying registration notices
- by just locking your app. If they want to run off a locked floppy or a
- read-only folder on a server, then they're obviously quite dedicated to
- not seeing that annoying registration, and you won't stop them anyway.
- :-)
-
- Don't sweat this too much. If people want to steal your program, they
- will, and there's nothing you can do about it. Don't spend too much
- time worrying about it, and don't annoy legitimate users with whatever
- scheme you do implement.
-
- By the way, a good scheme mentioned in AppleDirect once is: make a menu
- item that creates a demo copy of your app. Then when someone asks a
- customer for a copy, s/he can say "sure" and quickly make a sample.
- --
- Jamie McCarthy Internet: k044477@kzoo.edu AppleLink: j.mccarthy
- He let the contents of the bottle do the thinking
- Can't shake the devil's hand and say you're only kidding - TMBG
-