MsgBox

http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_msgbox

ExpandConstant

http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_expandconstant

DelTree

http://www.jrsoftware.org/ishelp/index.php?topic=isxfunc_deltree

Event Functions

The Pascal script can contain several event functions which are called at appropriate times.

Setup event functions

Setup supports following event functions:

Uninstall event functions

Uninstall supports following event functions:

procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);

Constants

Here's the list of constants used by these functions:

Support Functions Reference

http://www.jrsoftware.org/ishelp/index.php?topic=scriptfunctions

The Pascal script can call several built-in support functions.

File functions

DelTree

Prototype:

function DelTree(const Path: String; const IsDir, DeleteFiles, DeleteSubdirsAlso: Boolean): Boolean;

Description:

Deletes the specified directory if IsDir is set to True, or files/directories matching a wildcard if IsDir is set to False. Returns True if it was able to successfully remove everything.

If DeleteFiles is set to True, files inside the specified directory will be deleted if IsDir is True, or files matching the specified wildcard (including those with hidden, system, and read-only attributes) will be deleted if IsDir is False.

If DeleteFiles and DeleteSubdirsAlso are both set to True, subdirectories (and their contents) will be deleted in addition to files.

Remarks:

This function will remove directories that are reparse points, but it will not recursively delete files/directories inside them.

Example:

begin
// Delete the directory C:\Test and everything inside it
DelTree('C:\Test', True, True, True);

// Delete files matching C:\Test\*.tmp
DelTree('C:\Test\*.tmp', False, True, False);

// Delete all files and directories inside C:\Test
// but leave the directory itself
DelTree('C:\Test\*', False, True, True);
end;

												

最新文章

  1. RSA加密,应用授权及MSSQL备份与还原
  2. C#中的问号
  3. Code::Blocks的魅力
  4. e_msg_c_gs_enter_gs_req
  5. Python之调用WebService:suds
  6. inline函数的用法
  7. 为什么要用Maven?
  8. Lucene建索引代码
  9. combobox远程加载数据的总结和Json数据的小结
  10. 阿里云服务器centos5.10安装lamp环境
  11. c++文件流
  12. 【Java规划】DOM XML Parser分解、遍历、创XML
  13. xpath的文本获取
  14. head first c<11>在根据网络编程
  15. connectVisualVMtoTomcat
  16. Javascrpit学习之路一——基础知识
  17. loadrunner提高篇-插入检查点与关联函数
  18. jQuery遮罩层插件
  19. 20145302张薇 《网络对抗技术》 web基础
  20. MongoDB Chapter1:Introduction

热门文章

  1. Winserver服务器-AD字段对照简图
  2. SQL SERVER-union
  3. PHP的curl库代码使用
  4. yolo环境配置
  5. Linux就该这么学 20181003(第四章Vim/shell/测试条件)
  6. [jzoj 6084] [GDOI2019模拟2019.3.25] 礼物 [luogu 4916] 魔力环 解题报告(莫比乌斯反演+生成函数)
  7. oracle数据库的关闭
  8. [AHOI2013]作业 莫队 树状数组
  9. (WC2018模拟十二)【FJOI2016集训Day7T3】Xor-Mul棋盘
  10. 捕捉soap的xml形式