Skip to content

AppPortable Template

daemon.devin edited this page Aug 10, 2025 · 3 revisions

Template

There is a PortableApps.com Application Template which is provided by PortableApps.com. It's a generic template of file structure with configuration files and a default launcher along with a stub EXE so you can be sure it works by default. If you're a beginner, it would be a good idea for you to download this archive to give it a once over so you may familiarize yourself with its basic concept. You can download this template here.

The configuration is setup with an AppID of AppNamePortable, so it uses AppNamePortable.exe as the default launcher and AppNamePortable.ini as its configuration file. There are default settings in the INIs for handling config files that exist locally, config directories that exist locally, config files that move between Data and App, config directories that move between Data and App, and registry key config settings. The necessary lines to handle the moving and backup/restore of local settings as well as portablization of both a standard config file and a .reg file are all included and working for an example app of AppName and ExamplePublisher. The files are all fully commented and a how to txt file is included in the base directory. You can start up just by loading an app without even needing to recompile AppNamePortable.exe. When you're ready to release, instructions for that are included as well.

custom.nsh

While the PortableApps.com's Application Template is a nice starter kit which shows the file structure for a novice, it lacks the support for custom.nsh. So, I went ahead and created a custom.nsh file for reference. It has support for dotNET checking, Registering DLLs, Services, & Scheduled Tasks. It's also commented so it can be read a little easier for beginners. Additionally, this custom.nsh may be used with the official PA.c Launcher.

custom.nsh

Clone this wiki locally