Skip to content

Developer Options

Paquet Builder includes a C compiler to generate its EXE stubs, enabling developers to extend package functionality with custom C code and plugins.

Developer Options in Paquet Builder

HTML rendering via Microsoft WebView2. Recommended for modern systems — provides full HTML/CSS support for dialog content.

Add one or more C source files to your project. They are compiled and linked into the final EXE during package compilation, and their functions can be invoked via Call C Function custom actions.

Compiled twice

C source files are compiled once for the installer and once for the uninstaller.

Header required

Each .c file must have a corresponding .h header file in the same folder.

Linker options

Specify additional linker options to import third-party DLLs. Place .lib files in the Compiler\Lib subfolder.

Include pbcore.h to access built-in functions:

// Set the value of a variable
SetVar(const wchar_t *name, const wchar_t *val);
// Get the value of a variable
int EvalVarBuf(const wchar_t *str, wchar_t *outBuffer, int outBufferSize);
  1. Navigate to Build > Developer Options, click Add, and select a C source file (e.g. simplehello.c from the customccode subfolder).
  2. Open the Custom Action Editor (click Custom Actions in the toolbar), select an event (e.g. “After Welcome Screen”), and click Add Action.
  3. Choose Call a C function, then select the imported C file.
  4. In the “Code to invoke” field, enter: ShowMyMessage();
  5. Compile and test — the function displays a custom message box.