How to sign a Delphi exe
In RAD Studio open Project, Options, Build Events, choose the Release configuration and add the post-build command npx -y github:bamboodeploy/cli#v1.2.0 sign "$(OUTPUTPATH)". Every Release build is uploaded, scanned and signed, and the signed exe replaces the unsigned one. If you ship an Inno Setup installer, sign that too, as the Inno Setup guide shows.
1. Set your API key
Create a key in the dashboard under API Keys. It starts with bd_live_. Save it for your Windows user, then restart RAD Studio so it sees the new variable:
setx BAMBOO_API_KEY bd_live_...
A .bamboorc file in your user folder with the line BAMBOO_API_KEY=bd_live_... works too.
The command needs Node 18 or newer on the build machine.
2. Add the post-build event
Open Project, Options and select Build Events (in the Building group on recent versions). Choose the Release configuration as the target, so debug builds stay on your machine, and enter this under the post-build commands:
npx -y github:bamboodeploy/cli#v1.2.0 sign "$(OUTPUTPATH)"
Tick Cancel on error, so a failed signature fails the build instead of leaving an unsigned exe behind. Build events run through the command shell, so npx works here without a cmd /c prefix.
3. Fill in the version info
Open Project, Options, Application, Version Info and tick Include version information in project. Fill in CompanyName, FileDescription, ProductName and the version numbers. An exe without version info looks anonymous to users and to antivirus engines, and a signature does not fill that gap.
4. DLLs, packages and C++Builder
Add the same event to each DLL or package project you ship, or sign everything after a full build. List the files you built, not third-party DLLs that came with a library:
npx -y github:bamboodeploy/cli#v1.2.0 sign "Win32\Release\MyApp.exe" "Win32\Release\MyPlugin.dll"
C++Builder projects have the same Build Events page, and the same command signs their exe and DLL files.
Why Delphi builds get flagged
- The RTL and VCL are linked into every exe, so all Delphi programs share a large block of identical code, malware written in Delphi included. Machine-learning engines generalise from that.
- Exe packers make it worse. UPX and similar tools are among the strongest signals scanners look for. If you pack, stop, and compare the scan results.
- Inno Setup installers carry a compressed payload, which looks like any other high-entropy blob to a scanner that cannot unpack it.
The false positive shape is a few detections with generic names such as Heur, Gen:Variant, ML or Suspicious, and no named malware family. A valid signature is the main remedy. You can check a build before release, free:
npx -y github:bamboodeploy/cli#v1.2.0 scan MyApp.exe
Smart App Control
On Windows 11 with Smart App Control on, a blocked program has no Run anyway button. Smart App Control lets a file with a valid signature run, and it checks every exe and DLL as it loads, not only the file the user downloaded. Sign the exe, every DLL and package you build, and the installer.
Common errors
RAD Studio reports a failed post-build event as error MSB3073: The command "npx ..." exited with code N. The code tells you why:
| Exit code | Meaning | What to do |
|---|---|---|
| 1 | Bad or missing API key, file not found, or signing denied or failed | Read the printed message. Check BAMBOO_API_KEY and the file path. |
| 2 | Signing needs a Premium plan | Upgrade in the dashboard. |
| 3 | Fewer than two verified connections | Verify your email plus a domain, GitHub or similar under Connections in the dashboard. |
| 4 | Timed out waiting for the signature | The build may be waiting for review. Run the same command again once it is approved. |
Code 9009 means the build machine cannot find npx: install Node 18 or newer, then restart RAD Studio.
FAQ
Should every debug build be signed?
No. Put the event on the Release configuration only. Each signature is a round trip to the service, and debug builds never leave your machine.
Does this work with C++Builder?
Yes. C++Builder has the same Build Events page, and the same command signs the exe or DLL it builds.
Whose name does Windows show as the publisher?
Ours. We sign your build with our EV code signing certificate, so Windows shows our verified publisher name instead of Unknown publisher. You need no certificate, company registration or USB token of your own.
Does signing remove the SmartScreen warning at once?
Not on its own. A valid signature replaces Unknown publisher with a verified publisher, and Smart App Control lets a signed file run. SmartScreen also weighs reputation, which builds as people download and run your files, and no certificate grants it instantly, EV included. See EV certificates no longer skip SmartScreen.
What do I need before I can sign?
A Bamboo Deploy account, an API key from the dashboard, a Premium plan and two verified connections: your email plus a domain, GitHub or similar. Uploading and scanning are free.
Bamboo Deploy scans every build and signs it with our EV certificate, so you need no certificate, no company registration and no USB token of your own. Get started, or read the docs.