var
registerTemp : TRegistry;
begin
registerTemp := TRegistry.Create;
///////////////////
registerTemp.RootKey:=HKEY_CLASSES_ROOT;
if registerTemp.OpenKey('/Directory/shell/王者更名器/command',True) then
registerTemp.WriteString('',application.ExeName+' %1');
/////////////////////
registerTemp.RootKey:=HKEY_CLASSES_ROOT;
if registerTemp.OpenKey('/*/shell/王者更名器/command',True) then
registerTemp.WriteString('',application.ExeName+' %1');
//////////////////////////////
registerTemp.Free;
////////////////////
CreateShellLink(ParamStr(0), ExtractFilePath(ParamStr(0)),
GetSpecialFolderDir(CSIDL_DESKTOPDIRECTORY) + '/' +
ChangeFileExt(ExtractFileName(ParamStr(0)), '.lnk'));
end;