我想从注册表验证密码。
安装时应使用Inno Setup从注册表中读取密码。
答案 0 :(得分:0)
只需查看RegQueryStringValue
function的官方示例:
var
Country: String;
begin
if RegQueryStringValue(HKEY_CURRENT_USER, 'Control Panel\International',
'sCountry', Country) then
begin
{ Successfully read the value }
MsgBox('Your country: ' + Country, mbInformation, MB_OK);
end;
end;