Delphi取系统安装目录

function Getsysdirty():string;
var j_ls:array[0..254] of Char;
begin
    GetWindowsDirectory(@j_ls,255);
    Result:=j_ls;
end;
原文地址:https://www.cnblogs.com/qq32175822/p/3197209.html