I am using the Inno Setup Key Generator (IKG). I successfully call ValidateSerialNumber
Valid := ValidateSerialNumber(ExpPath,RegName,'','','','',PrivKey,RegKey);
While I am skipping blank lines for PrivKey and RegKey, the function returns false as expected. As soon as I pass the value of PrivKey or RegKey, I get the error message:
Access violation at address XXXXXXX in module ISID.dll. Read of Address XXXXXX.
Non-empty values ββfor ExpPath or RegName do not have this effect.
Function declared:
function ValidateSerialNumber(InnoKeyFile, User, Orgn, ProdCode, HDD, MAC, PrivateKey, Serial: String): Boolean; external ' ValidateSerialNumber@files :ISID.dll stdcall';
What am I doing wrong?
source share