Pascal script plugin
Here is a experimental plugin that allow NSIS installers to execute pascal code. It uses the same script engine that Inno Setup. Warning! this plugin is not completely tested use it under your own risk.

Download