<< Click to Display Table of Contents >> Navigation: 3. Script Language > Registry-commands > Registry Commands |
MiniRobotLanguage (MRL)
DID. Command
Decode (MS-) product-ID
Intention
Find and decode MS-Product-ID from Registry. Decoded Product-ID's follow the Pattern XXXX-XXXX-XXXX-XXXX. In the registry they are stored in an encrypted way.
The parameter is a Registry part that is searched for a Key named "DigitalProductId" and "ProductName".
If the given Product and the Product-ID to that Product can not be found in registry, then the command will return the next reachable Pruduct-ID.
Syntax
DID.[P1][|P2]
Parameter Explanation
When no parameter is given then the value will be read from the stack and the result will be placed on the stack (TOS)
P1 - (in) Registry Key to read.
P2 - (out) Variable that will take the result-key.
Example
'**********************************************
' DID. - Sample
'**********************************************
PRT.===============================================================
' Using the full path from RegEdit
: §§KEY=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Registration
DID.§§KEY
PRT.$$000
PRT.===============================================================
Using a half-Path without HKLM works, too.
: §§KEY=SOFTWARE\Microsoft\Windows NT\CurrentVersion
DID.§§KEY
PRT.From Stack: $$000
PRT.===============================================================
' in this case we specify only the relevant part.
: §§KEY=Windows NT\CurrentVersion
DID.§§KEY|§§RES
PRT.In Variable: §§RES
PRT.===============================================================
' Office-Reg (Example)...
: §§KEY=Office\11.0\Registration\
DID.§§KEY|§§RES
PRT.In Variable: §§RES
PRT.===============================================================
DMP.4
END.
Remarks
-
Limitations:
DID. is currently limited to 32 bit applications.
See also:
• IER. / NER. - If-Exist-Registry