parent
2f98f9a684
commit
8928201744
|
|
@ -69,7 +69,11 @@ type t_com_class = class()
|
||||||
begin
|
begin
|
||||||
return 0;
|
return 0;
|
||||||
end
|
end
|
||||||
function install_for_all_users(); //是否安装到本地为所有人使用
|
function install_check();virtual; //安装前检查
|
||||||
|
begin
|
||||||
|
return true;
|
||||||
|
end
|
||||||
|
function install_for_all_users();virtual; //是否安装到本地为所有人使用
|
||||||
begin
|
begin
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
|
|
@ -81,7 +85,6 @@ type t_com_class = class()
|
||||||
begin
|
begin
|
||||||
for i:= 0 to sysparamcount() do
|
for i:= 0 to sysparamcount() do
|
||||||
begin
|
begin
|
||||||
//"-Embedding") == 0) || (_stricmp(lpCmdLine, "/Embedding"
|
|
||||||
si := sysparamstr(i);
|
si := sysparamstr(i);
|
||||||
if si="-Embedding" or si= "/Embedding" then
|
if si="-Embedding" or si= "/Embedding" then
|
||||||
begin
|
begin
|
||||||
|
|
@ -120,6 +123,11 @@ type t_com_class = class()
|
||||||
end
|
end
|
||||||
function do_install_sub();
|
function do_install_sub();
|
||||||
begin
|
begin
|
||||||
|
if not install_check() then
|
||||||
|
begin
|
||||||
|
echo "提示:安装检查失败。\r\n";
|
||||||
|
return ;
|
||||||
|
end
|
||||||
dllclsid := get_clsid();
|
dllclsid := get_clsid();
|
||||||
subid := "LocalServer32";
|
subid := "LocalServer32";
|
||||||
comname := get_com_name();
|
comname := get_com_name();
|
||||||
|
|
@ -151,12 +159,12 @@ type t_com_class = class()
|
||||||
end
|
end
|
||||||
install_success();
|
install_success();
|
||||||
end
|
end
|
||||||
function get_classes_key();
|
function get_classes_key(); //
|
||||||
begin
|
begin
|
||||||
if install_for_all_users() then
|
if install_for_all_users() then //安装到本机
|
||||||
begin
|
begin
|
||||||
rk := new TRegKey(class(TRegKey).HKEY_LOCAL_MACHINE);
|
rk := new TRegKey(class(TRegKey).HKEY_LOCAL_MACHINE);
|
||||||
end else
|
end else //安装到当前用户
|
||||||
begin
|
begin
|
||||||
rk := new TRegKey(class(TRegKey).HKEY_CURRENT_USER);
|
rk := new TRegKey(class(TRegKey).HKEY_CURRENT_USER);
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Binary file not shown.
BIN
tslkrnl.dll
BIN
tslkrnl.dll
Binary file not shown.
Loading…
Reference in New Issue