I found Klonk's template to be so useful I decided to try my hand at it.
Mainly to help me learn NSIS better.
As of 1.3 it should be a fairly functional template.
History
ALT 1.4
-- Added function to replace drive letter in files with portable drive letter
ALT 1.3
-- Added file and folder handling
ALT 1.2
-- "fixed" the warning message when REGKEYS wasn't used.
-- Added a kill process option, change ENABLEKILL to "yes" then passing -exit as an argument will kill the process.
-- Added the framework for close window option, same as the kill process option but more graceful, need to figure out the WM_CLOSE though to finish it.
ALT 1.1.1
-- Fixed subsequent launch in InitApp (left it out, oops)
ALT 1.1
-- Added registry handling and subsequent launch handling.
Registry entries are moved to {entry}_BAK in the registry rather than copied to a reg file on the portable drive, saving write cycles and write time.
New Version
-Added function to replace drive letter in files with portable drive letter
-----------------------------------------------------------------------------------------------
Because they stand on a wall and say nothing is going to hurt you tonight. Not on my watch.
"Because they stand on a wall and say, 'Nothing is going to hurt you tonight. Not on my watch.'" (A Few Good Men)
Coincidence is God's way of remaining anonymous.(Albert Einstein)