You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Windows install/update does not always create/modify bin folder in appdata #11450
When the windows installer runs or the auto-updater executes the following files should be created/overwritten in c:\users\appdata\local\atom
atom
atom.cmd
apm
apm.cmd
Each one acts as a simple shortcut to it's associated script in c:\users\appdata\local\atom\app-1.x.y\resources\cli (suffixless ones link to the .sh ones)
Various reports of this, using this bug to correlate them into a single issue. Doesn't always happen, need to find out why. Success/fail for these is not part of the squirrel log right now.
Reacted by Wasif Hossain, Muhammad Hasan, Alexander, Michał Urbanek and Arnav Anand
changed the title [-]Windows installer does not always create/modify bin shortcuts in appdata[/-][+]Windows install/update does not always create/modify bin shortcuts in appdata[/+]on Apr 13, 2016
I just hit this issue today - all of my packages failed to update because apm could not be found. apm.cmd was still pointing at an old directory (app-1.5.1) that was no longer on my system.
To fix the issue, I updated apm.cmd with a loop to find the latest version:
Edit:
Also had to update the following registry key: HKEY_CLASSES_ROOT\*\shell\Atom\command to point to the atom.cmd referenced above. It seems apm.cmd, atom.cmd, and this reg key have not updated since v 1.5.1.
Yeah those are nice scripts. If I can't get definitively to the bottom of why 'bin' isn't getting updated reasonably quick I might do something similar to mitigate.
changed the title [-]Windows install/update does not always create/modify bin shortcuts in appdata[/-][+]Windows install/update does not always create/modify bin folder in appdata[/+]on Jun 8, 2016
My Windows 7 install of Atom 1.8.0 did create the bin scripts, but my Windows 10 install didn't, so I had to add %LOCALAPPDATA%\atom\app-1.8.0\ to my PATH and use atom.exe from the commandline.
Reacted by Wasif Hossain, Marco Araujo and Gokul K
This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:
Verify that you can still reproduce the issue in the latest version of Atom
Comment that the issue is still reproducible and include:
What version of Atom you reproduced the issue on
What OS and version you reproduced the issue on
What steps you followed to reproduce the issue
Issues that are labeled as triaged will not be automatically marked as stale.
Verify that you can still reproduce the issue in the latest version of Atom
Comment that the issue is still reproducible and include:
What version of Atom you reproduced the issue on
Just noticed that I had an old bin folder at %ProgramData%/%USERNAME%/atom/bin. The files in there referenced an old, no longer installed version of atom (1.29.0). The directory was still on my PATH.
Installing a new beta version (1.32.0-beta2) updated (or maybe created) files in %LOCALAPPDATA%/atom/bin so they referenced 1.32.0-beta2.
So in addition to the directory sometimes not being updated, there's an old one that's not always cleaned up. Not sure if that's a separate issue or not.
"atom" is not a command recognised from command line in Windows 10.0.17134. There is no atom/bin file to be seen. Using latest Atom version: Atom 1.32.2
All good softwares when we install use by default "Program Files" (or recently "Program Files (x86)" for 32 bit apps in 64 bit system).
Bad softwares do not use it.
Verify that you can still reproduce the issue in the latest version of Atom
Comment that the issue is still reproducible and include:
What version of Atom you reproduced the issue on
1.44.0
What OS and version you reproduced the issue on
Windows 10
What steps you followed to reproduce the issue
Installing Atom with the official installer.
Atom is a good editor. Why make it so complicated to install. Why would anyone install the same exe file n number of times
It is invisible once you install it. If at all it is installable for Windows then it should follow exe norms
Activity
[-]Windows installer does not always create/modify bin shortcuts in appdata[/-][+]Windows install/update does not always create/modify bin shortcuts in appdata[/+]TylerMoeller commentedon Apr 18, 2016
I just hit this issue today - all of my packages failed to update because apm could not be found.
apm.cmdwas still pointing at an old directory (app-1.5.1) that was no longer on my system.To fix the issue, I updated apm.cmd with a loop to find the latest version:
Also did the same with atom.cmd to keep my shortcuts working across client updates:
Edit:
Also had to update the following registry key:
HKEY_CLASSES_ROOT\*\shell\Atom\commandto point to theatom.cmdreferenced above. It seems apm.cmd, atom.cmd, and this reg key have not updated since v 1.5.1.damieng commentedon Apr 19, 2016
Yeah those are nice scripts. If I can't get definitively to the bottom of why 'bin' isn't getting updated reasonably quick I might do something similar to mitigate.
[-]Windows install/update does not always create/modify bin shortcuts in appdata[/-][+]Windows install/update does not always create/modify bin folder in appdata[/+]hobbsd commentedon Jun 22, 2016
My Windows 7 install of Atom 1.8.0 did create the
binscripts, but my Windows 10 install didn't, so I had to add%LOCALAPPDATA%\atom\app-1.8.0\to myPATHand useatom.exefrom the commandline.damieng commentedon Jul 20, 2016
@hobbsd can you type in the command line;
atom --squirrel-updatedAnd see if that creates the shell/batch files in
bin?wasifhossain commentedon Jul 20, 2016
@damieng indeed running the command creates those shell/batch files in
bin. Tested on Windows 10.damieng commentedon Jul 20, 2016
Definitely need to get some logging into that so we can troubleshoot when it fails.
hobbsd commentedon Jul 20, 2016
Yes, that command works for me as well on Windows 10.
aisa0906 commentedon Dec 22, 2016
My Windows 7 install of Atom 1.12.7 did not create the bin files. What do you recommend?
stale commentedon Dec 22, 2017
Thanks for your contribution!
This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:
Issues that are labeled as triaged will not be automatically marked as stale.
2 remaining items
rsese commentedon Feb 26, 2018
From #16831:
1.24
Windows 8.1
This was on an install @MandarSant or an update?
MandarSant commentedon Feb 27, 2018
I have this issue as well as following issues
#973
#14446
MandarSant commentedon Feb 27, 2018
@rsese it is on both install and update
alex-robbins commentedon Sep 14, 2018
A coworker of mine just saw this when installing Atom 1.30 on a Windows 10 machine for the first time.
alex-robbins commentedon Oct 5, 2018
Just noticed that I had an old
binfolder at%ProgramData%/%USERNAME%/atom/bin. The files in there referenced an old, no longer installed version of atom (1.29.0). The directory was still on my PATH.Installing a new beta version (1.32.0-beta2) updated (or maybe created) files in
%LOCALAPPDATA%/atom/binso they referenced 1.32.0-beta2.So in addition to the directory sometimes not being updated, there's an old one that's not always cleaned up. Not sure if that's a separate issue or not.
david-mears commentedon Nov 26, 2018
"atom" is not a command recognised from command line in Windows 10.0.17134. There is no atom/bin file to be seen. Using latest Atom version: Atom 1.32.2
Neustradamus commentedon Aug 13, 2019
I would like to install in C:\Program Files\ for the current user or for all users.
How it is possible?
Linked to:
Neustradamus commentedon Oct 23, 2019
@damieng: It is solved?
Neustradamus commentedon Jan 10, 2020
All good softwares when we install use by default "Program Files" (or recently "Program Files (x86)" for 32 bit apps in 64 bit system).
Bad softwares do not use it.
It is since Windows 95 and maybe before, no?
pt-dev commentedon Mar 2, 2020
mickey203 commentedon May 6, 2020
Atom is a good editor. Why make it so complicated to install. Why would anyone install the same exe file n number of times
It is invisible once you install it. If at all it is installable for Windows then it should follow exe norms
manngo commentedon Feb 18, 2021
I have the same problem and what looks like a working solution here:
https://discuss.atom.io/t/atom-bin-folder-is-not-always-installed/81279
TLDR:
will install the folder.