Squirrel.windows: While installing app option to put shortcut in user autostart folder

Created on 5 Jun 2015  路  6Comments  路  Source: Squirrel/Squirrel.Windows

Hello,
It would be nice to have an option to add the app in the autostart folder from the user:
_C:Users\YOURUSER\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup_
_shell:startup_

Or registry based:
_REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /V "My App" /t REG_SZ /F /D "C:\MyAppPath\MyApp.exe"_

What you mean?

Thanks for your cool project :-)

Most helpful comment

How to use it? @paulcbetts

All 6 comments

can that start without logging into the system?

can that start without logging into the system?

No, that requires you to write to HKLM which you won't have privileges to do, not to mention, we always install to a user's directory

Hi, but HTCU should not be a problem.. Do you think this could be an option for squirrel? Would be nice :-)

How to use it? @paulcbetts

    private void OnInitialInstall(UpdateManager mgr)
    {
        mgr.CreateShortcutForThisExe();
        mgr.CreateShortcutsForExecutable("MyApp.exe", ShortcutLocation.StartUp, false);
        mgr.CreateShortcutsForExecutable("MyApp.exe", ShortcutLocation.Desktop, false);
        mgr.CreateShortcutsForExecutable("MyApp.exe", ShortcutLocation.StartMenu, false);
        mgr.CreateUninstallerRegistryEntry();
    }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

estyfen picture estyfen  路  4Comments

shiftkey picture shiftkey  路  4Comments

dennisameling picture dennisameling  路  3Comments

mihaimyh picture mihaimyh  路  4Comments

aneeff picture aneeff  路  5Comments