Archive: Is it possible to import functions without using a DLL


Is it possible to import functions without using a DLL
Hi,

I have setups for two programs and in each one of them I want to check if the app I want to install is currently running. At the moment, I have the same function for this in both NSIS scripts.

In ANT there is the possibility to import properties and targets from another ANT file. So, I would like to put my function into another textfile and import that file from each of my NSIS scripts.

Is there a possibility to do this without writing a DLL?


Lars


Sure, you can write common code in your own header file (.nsh), and include it in both scripts with "!include".


cool, thx a lot!

In case anyone else needs this:
Use "!macro" in the header file and call that macro with "!insertmacro" from your nsis file.