I tried the below code to get the mac address in Inno Setup but getting an error as
Internal error: ExtractTemporaryFile: The file "ISID.dll" was not found.
I have copied the ISID.dll
in the application folder still getting the above error.
Please let me know if I am missing something....:
function GetMacAddress(output:string): Integer;
external 'GetMACAddress@files:ISID.dll stdcall';
function GetMacAdd(Output: string): string;
var
ClassName: String;
Ret: Integer;
begin
SetLength(ClassName, 256);
Ret := GetMacAddress(PChar(ClassName));
Result := Copy(ClassName, 1, Ret);
end;
Here is a script which uses WMI on Windows to get all MAC addresses.