Now we have all the files we will need and the registration info, so we can start building up our portable.
First, let me introduce the directory structure I use in my portables:
[Appdata]
[portable]
[Source]
Portable Application.exe
Appdata directory:
the main program files go here
portable directory:
location of registry data (RegInfo.reg, Settings.reg, RegClean.reg, DirSettings.reg, etc)
Source directory:
the NSIS source file of the launcher (Portable Application.nsi) and the icon of the launcher (Portable Application.ico)
Portable Application.exe
the launcher itself
We’ll make Portable MNK using this directory structure, so do the following changes:
1. Move all files and directories from “C:Portable My Notes Keeper” to “C:Portable My Notes KeeperAppdata” except
RegInfo.reg and FullReg.reg
2. Move RegInfo.reg and FullReg.reg to directory “C:Portable My Notes Keeperportable”
3. Create a folder in “C:Portable My Notes Keeper” and name it as “Source”.
I won’t tell you everything about NSIS because that would make this guide very long. However, I’m not an NSIS guru, all I know I know from the NSIS Help and the NSIS forum.
I can assure you that NSIS is easy to learn and what we need from NSIS is especially easy, so you don’t have to worry about it.
Furthermore, I created some nice templates so basically you’ll have to replace some items in them and you’re ready to go.
[...] 8. Bringing NSIS To The Game [...]