Squirrel.Windows icon indicating copy to clipboard operation
Squirrel.Windows copied to clipboard

Possible to update scripts, scheduled tasks, and copy / replace files via Squirrel?

Open provkristian opened this issue 10 years ago • 3 comments

Hello, I have a question. Is it possible to update scripts, scheduled tasks, and copy / replace files via Squirrel? Or would one need to create a separate Squirrel aware app to be an updater like how Chrome uses a separate updater that presumable runs with some sort of admin credential? Thanks.

Kristian

provkristian avatar Jul 28 '16 15:07 provkristian

I suppose you'd handle this in your squirrel aware app, you could relaunch itself with admin rights, and e.g a special CLI flag: --perform-some-action, so that the app behaves specifically for that use case, and terminates. Careful though as iirc there are timeouts set for running Squirrel actions like Install shortcut, Uninstall, etc.

patroza avatar Jul 30 '16 16:07 patroza

You can't do anything involving UAC which unfortunately includes scheduled tasks (even for your own user!) You should update files in your squirrel aware app

anaisbetts avatar Jul 30 '16 16:07 anaisbetts

Thanks for answering. Cheers.

kristianjaeger avatar Jul 30 '16 17:07 kristianjaeger