Skip to content
Jan T. Sott edited this page Nov 6, 2016 · 4 revisions

A very incomplete list of available functions

AbortCalled()

Equivalent to IfAbort

// IfAbort ...
AbortCalled()

BrandingText()

Equivalent to BrandingText

// BrandingText "text"
BrandingText("text");

// BrandingText /TRIMLEFT "text"
BrandingText("text", "LEFT");

CopyFiles()

Equivalent to CopyFiles

// CopyFiles "source" "dest"
CopyFiles("source", "dest");

// CopyFiles /SILENT "source" "dest"
CopyFiles("source", "dest", true);

// CopyFiles /SILENT /FILESONLY "source" "dest"
CopyFiles("source", "dest", true, true);

// CopyFiles /SILENT /FILESONLY "source" "dest" 99
CopyFiles("source", "dest", true, true, 99);

CreateFont()

Equivalent to CreateFont

// CreateFont $var "fontFace"
$var = CreateFont("fontFace")

// CreateFont $var "fontFace" height weight
$var = CreateFont("fontFace", height, weight)

// CreateFont $var "fontFace" height weight /ITALIC /UNDERLINE /STRIKE
$var = CreateFont("fontFace", height, weight, true, true, true)

// CreateFont $var "fontFace" height weight /UNDERLINE
$var = CreateFont("fontFace", height, weight, false, true)

Delete()

Equivalent to Delete

// Delete "file"
Delete("file");

// Delete /REBOOTOK "file"
Delete("file", true);

DeleteRegKey()

Equivalent to DeleteRegKey

// DeleteRegKey rootKey "subKey"
DeleteRegKey(rootKey, "subKey");

// DeleteRegKey /ifempty rootKey "subKey"
DeleteRegKey(rootKey, "subKey", true);

Errors()

Equivalent to IfErrors

// IfErrors ...
Errors()

File()

Equivalent to File

// File "inFile"
File("inFile");

// File "/oname=outFile" "inFile"
File("inFile", "outFile");

// File /nonfatal "/oname=outFile" "inFile"
File("inFile", "outFile", true);

// File /nonfatal /a "/oname=outFile" "inFile"
File("inFile", "outFile", true, true);

// File /nonfatal "inFile"
File("inFile", true);

// File /nonfatal /a "inFile"
File("inFile", true, true);

FileRecursive()

Equivalent to File with /r flag

// File /r "inFile"
FileRecursive("inFile");

// File /r /x "exclude" /x ... "inFile"
FileRecursive("inFile", "exclude" ...);

// File /nonfatal /r "inFile"
FileRecursive("inFile", true);

// File /nonfatal /r /x "exclude" /x ... "inFile"
FileRecursive("inFile", true, "exclude" ...);

// File /nonfatal /a /r "inFile"
FileRecursive("inFile", true, true);

// File /nonfatal /a /r /x "exclude" /x ... "inFile"
FileRecursive("inFile", true, true, "exclude" ...);

GetDLLVersion()

Equivalent to GetDLLVersion

// GetDLLVersion "My.dll" $var1 $var2
($var1, $var2) = GetDLLVersion("My.dll");

InstType()

Equivalent to InstType

// InstType /NOCUSTOM
InstType(true);

// InstType /COMPONENTSONLYONCUSTOM
InstType(false);

// InstType /CUSTOMSTRING=str
InstType(false, "str");

// InstType install_type_name
InstType("install_type_name");

InstallColors()

Equivalent to InstallColors

// InstallColors /windows
InstallColors(true);

// InstallColors foreground_color background_color
InstallColors("foreground_color", "background_color");

LicenseBkColor()

Equivalent to LicenseBkColor

// LicenseBkColor /gray
LicenseBkColor(true);

// LicenseBkColor /windows
LicenseBkColor(false);

// LicenseBkColor color
LicenseBkColor("color");

MessageBox()

Equivalent to MessageBox

// MessageBox MB_OK "text"
MessageBox("text");

// MessageBox MB_OK "text" /SD IDOK
MessageBox("MB_OK", "text", "IDOK");

// MessageBox MB_OK "text" /SD IDOK IDOK _lbl_0
if (MessageBox("MB_OK", "text", "IDOK"))

// MessageBox MB_OK "text" /SD IDOK IDOK 0
// MessageBox MB_OK "text" /SD IDOK IDOK _lbl_0
if (MessageBox("MB_OK", "text", "IDOK") && MessageBox("MB_OK", "text", "IDOK"))

// MessageBox MB_YESNO|MB_ICONQUESTION "text" IDNO +3
// StrCpy $var IDYES
// Goto +2
// StrCpy $var IDNO
$var = MessageBox("MB_YESNO|MB_ICONQUESTION", "text");

ReserveFile()

Equivalent to ReserveFile

// ReserveFile "inFile"
ReserveFile("inFile");

// ReserveFile /nonfatal "inFile"
ReserveFile("inFile", true);

ReserveFileRecursive()

Equivalent to ReserveFile with /r flag

// ReserveFile /r "inFile"
ReserveFileRecursive("inFile");

// ReserveFile /nonfatal /r "inFile"
ReserveFileRecursive("inFile", true);

// ReserveFile /r /x "exclude" /x ... "inFile"
ReserveFileRecursive("inFile", "exclude" ...);

// ReserveFile /nonfatal /r /x "exclude" /x ... "inFile"
ReserveFileRecursive("inFile", true, "exclude" ...);

RMDir()

Equivalent to RMDir

// RMDir "directory"
RMDir("directory");

// RMDir /REBOOTOK "directory"
RMDir("directory", true);

// RMDir /r "directory"
RMDirRecursive("directory");

// RMDir /r /REBOOTOK "directory"
RMDirRecursive("directory", true);