注册表检测获取安装路径取消目录指定
检测注册表路径代码:
DefaultDirName={reg:HKLM\Software\Tencent\QQ,Install|{pf}\YourProgDir}
procedure InitializeWizard();
begin
if RegValueExists(HKEY_LOCAL_MACHINE, 'Software\Tencent\QQ', 'Install') then
begin
WizardForm.DirBrowseButton.Enabled := False;
WizardForm.DirEdit.Enabled := False;
end;
end;//安装路径不可选
页:
[1]