博客
关于我
Pascal Script
阅读量:794 次
发布时间:2023-02-26

本文共 1693 字,大约阅读时间需要 5 分钟。

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

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;

转载于:https://www.cnblogs.com/chucklu/p/6438610.html

你可能感兴趣的文章
openlayers:圆孔相机根据卫星经度、纬度、高度、半径比例推算绘制地面的拍摄的区域
查看>>
OpenLDAP(2.4.3x)服务器搭建及配置说明
查看>>
OpenMCU(一):STM32F407 FreeRTOS移植
查看>>
OpenMCU(二):GD32E23xx FreeRTOS移植
查看>>
OpenMMLab | S4模型详解:应对长序列建模的有效方法
查看>>
OpenMMLab | 【全网首发】Llama 3 微调项目实践与教程(XTuner 版)
查看>>
OpenMMLab | 面向多样应用需求,书生·浦语2.5开源超轻量、高性能多种参数版本
查看>>
OpenObserve云原生可观测平台本地Docker部署与远程访问实战教程
查看>>
OpenPPL PPQ量化(4):计算图的切分和调度 源码剖析
查看>>
OpenPPL PPQ量化(5):执行引擎 源码剖析
查看>>
openpyxl 模块的使用
查看>>
Openresty框架入门详解
查看>>
OpenResty(2):OpenResty开发环境搭建
查看>>
openshift搭建Istio企业级实战
查看>>
Openstack 之 网络设置静态IP地址
查看>>
OpenStack 综合服务详解
查看>>
OpenStack 网络服务Neutron详解
查看>>
Openstack(两控制节点+四计算节点)-1
查看>>
openstack--memecache
查看>>
openstack下service和endpoint
查看>>