PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
CertificateSignExecutable (Function)
In French: CertificatSigneExécutable
Signs an executable file with a certificate. The signature is included in the file.
Example
// Open the certificate picker of Windows
MyCertificate is Certificate
MyCertificate = CertificateSelect()

// Cancelation or error
IF MyCertificate = Null THEN
RETURN
END

// If the selected certificate is valid for signing
IF not MyCertificate..ValidForSignature THEN
Info("The selected certificate cannot be used to generate a signature.")
RETURN
END

// Retrieve the buffer containing the signature
IF not CertificateSignExecutable(sFullFileName, MyCertificate) THEN
Error("Error while signing the certificate:" + CR + ErrorInfo())
END
Syntax
<Result> = CertificateSignExecutable(<Executable> , <Certificate> [, <Description>])
<Result>: Boolean
  • True if the executable was signed,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Executable>: Character string (with quotes)
Full name of executable file to sign.
<Certificate>: Certificate variable
Name of Certificate variable containing the certificate that will be used to sign the executable.
<Description>: Optional character string (with quotes)
Versions 22 and later
Text displayed by the UAC window when running the executable.
New in version 22
Text displayed by the UAC window when running the executable.
Text displayed by the UAC window when running the executable.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment