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;
[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;
相关文章推荐
- 用程序判断一个QQ号码是否在线、是否存在(delphi调用webService)
- linux下c调用shell命令,以及判断文件是否存在
- oracle的pl/sql存储过程调用java soure来判断文件夹下某个文件是否存在
- INNO setup安装卸载钱判断进程中是否在运行总结
- smarty插件判断图片是否存在,不存在则调用默认图片
- inno setup 安装前判断进程是否存在,以及停止相应进程
- Inno Setup安装、卸载时判断是否程序正在运行
- Inno Setup安装、卸载时判断是否程序正在运行,安装完成时自动打开网页的脚本
- 用程序判断一个QQ号码是否在线、是否存在(delphi调用webService)
- c++判断文件夹是否存在,若不存在,调用linux命令创建它
- Inno Setup安装、卸载时判断是否程序正在运行
- Inno Setup安装、卸载时判断是否程序正在运行
- Inno Setup安装、卸载时判断是否程序正在运行,安装完成时自动打开网页的脚本
- Qt调用win32的dll判断是否连接上了网络
- 注册JQuery使用ajax调用后台方法,判断用户名、邮箱是否存在,并显示隐藏提示
- JAVA调用HDFS 判断是否存在文件夹
- 注册JQuery使用ajax调用后台方法,判断用户名、邮箱是否存在,并显示隐藏提示
- Java调用JDBC判断表是否存在
- 当获取相似数据时,使用不同方法调用不同sp,但是使用同一个方法去用IIDataReader或者SqlDataReader读取数据时需要判断column name是否存在。
- INNO setup安装卸载钱判断进程中是否在运行总结