electron / windows-installer

Build Windows Installers for Electron apps
MIT License
1.58k stars 262 forks source link

How to Create shortcut in StartUp #196

Open sumanta-ghosh opened 7 years ago

sumanta-ghosh commented 7 years ago

I am trying to build package for windows machine but I didn't understand how to pass

--shortcut-locations=Desktop,StartMenu inside spawnUpdate()


// Install desktop and start menu shortcuts
      spawnUpdate(['--createShortcut', exeName]);
cristiammercado commented 5 years ago

Like this:

spawnUpdate(['--createShortcut', exeName, '--shortcut-locations', 'Desktop,StartMenu']);

sneltyn commented 4 years ago

Use

spawnUpdate(['--createShortcut', exeName, '--shortcut-locations', 'Desktop,Startup']);