I agree with andyford that the Registry and config files are your basic to choices. For the registry, take a look at Win32::TieRegistry. If you're not storing any path address in the registry, then you should be able to move your program around to other directories on that same machine, but not to another machine, without reinstalling. This can be seen as good or bad, depending on what you want.

One of the advantages of Eudora for email, at least the older versions that I still use, is that you can pick up the whole directory tree and copy it to a new machine, and everything works. That's really nice. They put the config and registration info in a local config file to make this possible. You can still incorporate a user name in an encryted key to give some small measure of protection. For this approach take a look at modules like Config::INI::Simple, Config::IniHash or AnyData to read and write config files. The config file often goes in the same directory that your code is installed in.


In reply to Re: [OT] Software registration and activation. by rodion
in thread [OT] Software registration and activation. by jdtoronto

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.