isPortable
Category: Application Control
Namespace: web.app.isPortable
Description
To enable portable mode: ship/drop an empty Data folder next to the exe. Remove it → app reverts to installer mode. If Data exists but isn't writable, the app safely falls back to %LOCALAPPDATA%.
Syntax
const isPortable = await web.app.isPortable();
Parameters
None
Returns
Promise<boolean> - True if in portable mode, false otherwise
License data for protected apps
This is machine-bound BY DESIGN — the license is not meant to travel.
A portable app redirects files + settings to the Data folder, but registration stays in the per-machine stealth store, so a portable copy must be re-registered on each new machine. This preserves the anti-piracy design.