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;

 
 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值