Software activation codes and storage, your thoughts please

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Joe_Black (JoeBlack_at_newsgroups.nospam)
Date: 03/24/05


Date: Thu, 24 Mar 2005 12:31:13 +0000

Hi all,

I have an app that I want to have activation codes for, it has plugin
dll files each of which have an activation code as well. I need to
generate a unique code that is specific to the machine that the software
is installed on, when the user contacts the registration server the key
that they get to activate there software will be unique to there machine
as it will be generated from the code above. Please could you look at
these possibles and advise on which you think is the right way to do
this, or if you know of a better way I would appreciate any links/code
samples you may have.

I could create a GUID the first time I start the app, this would be
stored in the registry, when validating codes I would read this value
from the registry, check it and activate the software if all is OK.
BUT, I hear that the use of the registry is not a great idea any more,
Microsoft recommends XML files, I must store this value outside of the
apps directory in case the user simply copies the entire directory to a
new PC and all would work, maybe I could store it in Windows directory
in a .cfg file or something.

I could use WMI to get the serial number of the mother board, I would
not need to store this value as it would be available through WMI at any
time.
BUT I want to the app to run on Win 98 upwards, I have heard that WMI is
not supported on Win 98, also I can't find any examples of how to
retrieve the mother board serial number.

This app will be developed in VS2005, the Beta2 has a Go Live license
with it and the development time will be 6 - 12 months, Is there
something in VS2005 that would negate the need to do either of the above?

Is there another way?

And why do my posts always seem so long :-)

Thanks Joe



Relevant Pages

  • Re: Mobile Service & Auto Start
    ... The RegRestoreFile API is only supported by the object store-based registry. ... have never needed to write an app like this and I just figured ... So I have an exe that I start 5 min after I push a button. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Ini File vs Registry
    ... How do you manage the settings? ... dollars in hacking the OS to introduce the concept of registry ... Hard to migrate app ... but increasingly desktop developers are fighting it out ...
    (microsoft.public.vc.mfc)
  • Re: VFP Updates?
    ... Account", which is what many users do, e.g. in company networks. ... WinXP limited accounts as well as Vista UAC is quite easy ... considerations for installing and running a VFP app in Vista. ... directory/folder IS), and you don't need to write to registry, I think ...
    (microsoft.public.fox.programmer.exchange)
  • Re: OT - Desktop Linux
    ... I want to delete the file, but let the app using it to continue ... But it keeps it in the main registry instead of creating a per user ... It's next to impossible to shift apps from disk to disk ... drives can be mounted at will at any mount point or even as a ...
    (alt.sports.basketball.nba.la-lakers)
  • Re: How to allow my some of users to access to windows registry
    ... Sorry I meant HKCU. ... customization of the user running the app will be read from the registry. ... Secondly as part of the installer you would set permissions on ...
    (microsoft.public.win2000.advanced_server)