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

Is there an option to not Launch MyApp after install?

Open provkristian opened this issue 10 years ago • 3 comments

I was reading the help for update.exe and the help at install-process.md but have a question. Is there an option to not Launch MyApp after install? Thanks.

provkristian avatar Jan 15 '16 17:01 provkristian

The initial install gets the --squirrel-firstrun parameter, so you can see it and exit

anaisbetts avatar Jan 15 '16 17:01 anaisbetts

Ah, okay. Thanks.

provkristian avatar Jan 15 '16 17:01 provkristian

So, something like this then? SquirrelAwareApp.HandleEvents( null, null, null, onFirstRun: () => Process.GetCurrentProcess().Kill());

Unfortunately, the use case that we have is not a simple one. We have an app that is supposed to run at startup after we do a machine install using our own shortcut. We're using setup.exe --machine since the .msi has a bug. Thanks.

provkristian avatar Jan 15 '16 18:01 provkristian