forked from svn2github/nsl-assembler
-
Notifications
You must be signed in to change notification settings - Fork 5
Functions
Jan T. Sott edited this page Nov 6, 2016
·
4 revisions
A very incomplete list of available functions
Equivalent to IfAbort
// IfAbort ...
AbortCalled()
Equivalent to BrandingText
// BrandingText "text"
BrandingText("text");
// BrandingText /TRIMLEFT "text"
BrandingText("text", "LEFT");
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);
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)
Equivalent to Delete
// Delete "file"
Delete("file");
// Delete /REBOOTOK "file"
Delete("file", true);
Equivalent to DeleteRegKey
// DeleteRegKey rootKey "subKey"
DeleteRegKey(rootKey, "subKey");
// DeleteRegKey /ifempty rootKey "subKey"
DeleteRegKey(rootKey, "subKey", true);
Equivalent to IfErrors
// IfErrors ...
Errors()
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);
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" ...);
Equivalent to GetDLLVersion
// GetDLLVersion "My.dll" $var1 $var2
($var1, $var2) = GetDLLVersion("My.dll");
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");
Equivalent to InstallColors
// InstallColors /windows
InstallColors(true);
// InstallColors foreground_color background_color
InstallColors("foreground_color", "background_color");
Equivalent to LicenseBkColor
// LicenseBkColor /gray
LicenseBkColor(true);
// LicenseBkColor /windows
LicenseBkColor(false);
// LicenseBkColor color
LicenseBkColor("color");
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");
Equivalent to ReserveFile
// ReserveFile "inFile"
ReserveFile("inFile");
// ReserveFile /nonfatal "inFile"
ReserveFile("inFile", true);
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" ...);
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);