PortableApps.comLauncher.nsi file is not hard but you do have to know what you're doing. I would recommend having a firm grasp on NSIS and it's syntax before trying to extend PAL. If you do know what you're doing and would like to use some of the code I have written to extend
PortableApps.comLauncher.nsi then you're in the right place.
Below you can find the code I wrote to extend
PortableApps.comLauncher.nsi which is used to read all the
!define commands in the Launcher section of the
custom.nsh for use in
PortableApps.comLauncher.nsi. Using the code below you will not have to edit the
PortableApps.comLauncher.nsi file anymore (If you're using a build by FukenGruven). You can read this for more on what I'm talking about.
AttentionYou should know that this is meant for a special build of PAL which is made by FukenGruven. You can however use this method in your own source code if you know what you're doing.
Also, you need to use NSISPortable 3.0+ in order for this to properly compile. You can find a special version of NSISPortable with support for FukenGruven's build of PAL at the bottom of this page.
NoteIn order for this to work the
custom.nshLauncher section needs to have the same
!defineyou would see in the
Launcher.nsifile but with
;and a boolean value of true at the end. So if it was
!define UACin the
Launcher.nsifile then in the
custom.nshfile it would be
;!define UAC true. Make sure to have it commented in the
custom.nshfile otherwise this won't work.
Below is the code I wrote which will read the
AppInfo.ini for certain keys and their values which can then be used with
VIAddVersionKey and various other defines throughout the