Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Port chocolatey install actions to squirrel events - #4224

Merged
kevinsawicki merged 54 commits into
masterfrom
ks-squirrel-events
Nov 18, 2014
Merged

kevinsawicki merged 54 commits into
masterfrom
ks-squirrel-events

Conversation

@kevinsawicki

Copy link
Copy Markdown
Contributor

The new squirrel installer installs to %UserProfile%\AppData\Local\atom and currently only handles creating start menu and desktop shortcuts.

This PR adds the remaining items that were previously managed by the chocolatey install script.

  • Adds an Open with Atom file context menu.
  • Adds an Open with Atom folder context menu.
  • Adds %UserProfile%\AppData\Local\atom\bin to the Path environment variable.
    • Uses setx to set the Path in the registry.
  • Adds a command shim from %UserProfile%\AppData\Local\atom\bin\atom.cmd to the latest installed atom.exe version since atom.exe changes paths on each update.
  • Adds a command shim from %UserProfile%\AppData\Local\atom\bin\apm.cmd to the latest installed apm.cmd version since apm.cmd changes paths on each update.

Once Atom ships with this and any bumps are smoothed out, this will be extracted into Atom Shell and added as helper on the auto-updater module.

Closes #4180

Comment thread src/browser/squirrel-update.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything you possibly can, you should give absolute paths for, so that some dummy who installs MyCoolSetX or something doesn't ruin your day - setx is always at %SystemRoot%\System32 for example

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for the tip.

kevinsawicki added a commit that referenced this pull request Nov 18, 2014
Port chocolatey install actions to squirrel events
@kevinsawicki
kevinsawicki merged commit aface45 into master Nov 18, 2014
@kevinsawicki
kevinsawicki deleted the ks-squirrel-events branch November 18, 2014 23:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port Chocolatey install actions to squirrel events

2 participants