如何通过阅读注册表在Inno Setup中验证用户名和密码

时间:2016-10-25 09:07:16

标签: inno-setup

我想从注册表验证密码。

安装时应使用Inno Setup从注册表中读取密码。

1 个答案:

答案 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;
相关问题