views:

506

answers:

1

We have to automatically create the XML file for an unattended vista/windows 7 installation in which we do write the product key (MAK type). Unfortunately the windows image contains multiple editions (home, home premium, professional, ultimate) so we need to decide which version we should use and write that info to the XML as well. And we would love beeing able to decide dynamically which edition to use.

Is there any public algorithm/way to determine the OS edition from the product key like windows setup does? Preferrably in C/C++.

EDIT: The question is not to determine which editions a certain images supports - this can be done simply by looking at the catalog files sources\install_*.clg

EDIT2: I found some (strange) tools like Microsoft PIDX Check and Windows 7 Product Key Checker. These use the same pidgenx.dll. pkeyconfig.xrm-msof as the windows system itself. It can be used to determine, among others:

  • The edition of the Windows.
  • The features to unlock and activate.
  • The distribution channel of the license.
  • The license type.
  • Ways to activate the operating system.
  • Unique identifier to determine if activation should be accepted.

But the evaluation of a key takes awfully long.

A: 

They probably don't want anyone to know the format to make it harder for the keygen writers.

Some ISO's have a ei.cfg file, you could check there

Anders
You are probably right. At least there is no documentation so far...The ei.cfg does not help much. It only contains the maximum edition an image supports.
fmuecke