Repository navigation
Notify applications post-install - #17
Conversation
…a dummy Squirrel-aware EXE
|
Heh, how does one review this? :) |
This will have some more interesting code soon :) Right now the PR just exists to document The Plan™ |
bb9aeee to
6d88828
Compare
This EXE just writes its arguments to a file in the same directory called "args.txt"
…and writes to args2.txt
We need to examine the file without it being loaded into our AppDomain or else all kinds of badness happens. Instead, use Cecil to load the assembly
841c250 to
330715a
Compare
There was a problem hiding this comment.
Probably should add [return: MarshalAs(UnmanagedType.Bool)] to be explicit about the type of bool this unmanaged method returns.
There was a problem hiding this comment.
OCD nit, but if you're following GHfW code conventions we do it like:
var result = conditional
? trueExpression
: falseExpression;It has a nice similarity to F# pattern matching syntax that way where they line up each condition's operators on the left.
There was a problem hiding this comment.
The code convention right now is a mess, it's like 50% Microsoft Standard and 50% One True C# Style, gonna fix this in a separate PR to be all consistent
|
Mostly cosmetic feedback. The implementation looks good and I like the approach! |
|
Thanks @haacked! |
Notify applications post-install
This sets up Atom to be packaged into a Squirrel installer. See Squirrel/Squirrel.Windows#17 for the details
This sets up Atom to be packaged into a Squirrel installer. See Squirrel/Squirrel.Windows#17 for the details
This PR replaces the
IAppUpdateframework with a much simpler scheme, that is also compatible with native C/C++ applications. Closes #14.Spec
After applying updates, Squirrel will scan the new installation directory for EXEs which match one of these two characteristics:
Every EXE that is found that matches will be invoked with:
/squirrel-installed [new-version]- Invoked on initial install/squirrel-updated [new-version]- Invoked whenever the EXE is updated/squirrel-uninstall [version]- Invoked when the application is fully uninstalledYou must exit as soon as possible once you finish the post-installation operations.
Once installation is complete, if this is the initial install, all Squirrel-aware EXEs will be invoked with:
/squirrel-firstrunIf this is your main application, you should probably just ignore this and execute. If this is a utility application solely dedicated to Squirrel or you don't want it to show up once the initial install completes, just exit.
TODO