Pascal Script
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;
相关文章
- Run python script as admin
- There are inconsistent line endings in the 'xxx' script. Some are Mac OS X (UNIX) and some are Windows.问题解决
- dojo Provider(script、xhr、iframe)源码解析
- [Cypress] install, configure, and script Cypress for JavaScript web applications -- part3
- ORA-23616: Failure in executing block 3 for script 删除queue的方法
- [Cypress] install, configure, and script Cypress for JavaScript web applications -- part3
- PHP Primary script unknown 终极解决方法
- PHP Primary script unknown , File not found
- SAP UI5 的 sap-ui-bootstrap script 脚本标签各属性解析
- UI5 framework异步加载javascript的solution - 动态创建script node
- ABAP Debugging Script(调试器脚本)使用的一些实际例子
- vue3.2中setup语法糖<script lang=“ts“ setup>
- 前后端分离 导致的 静态页面 加载 <script type="module" > 报CORS 跨域错误,提示 blocked by CORS policy
- Cloudinsight Agent install script
- Trojan:Script/Phonzy.A!ml——灰色软件