您的位置:首页 > 其它

Inno Setup:卸载时判断要调用的dll是否存在

2013-08-02 21:48 162 查看
原文 http://zwkufo.blog.163.com/blog/static/2588251201072581947474/

[Code]
function SuiteRemovedAlert2: boolean;
external 'SuiteRemovedAlert@{app}\SuiteRemovedAlert.dll stdcall delayload uninstallonly';

function InitializeUninstall(): boolean;
var Isbl: boolean; //声明变量
sDir: string;
sFind: string;
begin
sDir:=ExpandConstant('{app}'); //返回用户选择的安装文件夹
sFind:=FileSearch('SuiteRemovedAlert.dll',sDir); //判断文件是否存在
if sFind='' then begin
result:=True;
end else begin
result:=SuiteRemovedAlert2();
UnloadDLL(ExpandConstant('{app}\SuiteRemovedAlert.dll'));
end;
end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐