This is a convenience module allowing for easy configuration of startup tasks for Windows Store apps written with Electron. Basically, it allows you either enable or disable the automatic launch of your app when the user logs in.
Before you can use this module, you need to add an
<Extension> to your
appxmanifest.xml. An app must register for the
windows.startup extension category in its manifest to be activated at startup or when a user logs in.
This module assumes that you have just one startup task. If you have more than one, it'll automatically use the first one.
The module exports one single static class
WindowsStoreAutoLaunch with three main methods:
;// Attempts to enable the taskWindowsStoreAutoLaunch.enable// Attempts to disable the taskWindowsStoreAutoLaunch.disable// Returns the current status of the taskWindowsStoreAutoLaunch.getStatus
The status can be
disabledByUser (1), or
enabled (2). If the app's startup task was disabled by the user in the task manager, it can no longer be programmatically enabled.
The module also exports these helper methods:
;// Returns an IList/Array of all startupTasks registered in the manifestWindowsStoreAutoLaunch.getStartupTasks// Returns the first found startupTaskWindowsStoreAutoLaunch.getStartupTask
MIT, please see
LICENSE for details.