In this section I'll be talking about the custom.nsh file and it's many implimentations. The custom.nsh file is used by PAL for anything that the launcher cannot handle itself. It allows the developer the ability to incorporate NSIS code into the launcher while maintaining the PAL framework and it's structure. While it is not required for use with the original builds?The idea behind PAL in the beginning was to make it much easier for the end-user to make PAF compliant portable applications with knowing little about NSIS or knowing nothing at all. of PAL, it is however an essential part of FukenGruven's build of the launcher. This file, for the most part, should be your main focus if you're building with FukenGruven's PAL for it's where the real magic happens.
Below is the custom.nsh file I wrote to be used with my Process Hacker Portable. For the purpose of this section I'll go ahead and explain in detail everything that I wrote, used, and why in the making of this portable application..
I'll be explaining the custom.nsh as it pertains to how I use PAL. All the portable applications that I make are made using my own edit of FukenGruven's PAL?I use his version released on March 15th, 2017 which may be found here.. The explainations or written below the following code block.
This section has two purposes. The first purpose is for anyone who wants to recompile one of my PAFs. It let's them know that I've used a build by FukenGruven and what I have uncommented in the Custom Defines section of the PortableApps.comLauncher.nsi file. If you do not see this section in one of my PAFs it means I used an original release of PAL provided by PortableApps.com to compile it.
Up until recently this section only had one purpose which was explained in the paragraph above but now it has another purpose which is to tell the PortableApps.comLauncher.nsi file which defines to use. You had to manually edit the PortableApps.comLauncher.nsi file which is a hassle. It's why you would see an extra folder inside the ..\App\AppInfo\Launcher directory called Source if you've ever used a PAF made by FukenGruven. For more on how to use this within your own builds read here.