Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Closed

Description

@damieng

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.

Activity

  1. added
    windows
    on Apr 13, 2016
  2. 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
  3. TylerMoeller commented on Apr 18, 2016

    @TylerMoeller

    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:

    @echo off
    for /f "tokens=*" %%I in ('dir /b /ad %LOCALAPPDATA%\atom\app*') do set appdir=%%I
    "%~dp0..\%appdir%\resources\app\apm\bin\apm.cmd" %*

    Also did the same with atom.cmd to keep my shortcuts working across client updates:

    @echo off
    for /f "tokens=*" %%I in ('dir /b /ad %LOCALAPPDATA%\atom\app*') do set appdir=%%I
    "%~dp0..\%appdir%\resources\cli\atom.cmd" %*

    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.

  4. damieng commented on Apr 19, 2016

    @damieng
    ContributorAuthor

    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.

  5. 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
  6. hobbsd commented on Jun 22, 2016

    @hobbsd

    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.

  7. damieng commented on Jul 20, 2016

    @damieng
    ContributorAuthor

    @hobbsd can you type in the command line;

    atom --squirrel-updated

    And see if that creates the shell/batch files in bin ?

  8. wasifhossain commented on Jul 20, 2016

    @wasifhossain

    @damieng indeed running the command creates those shell/batch files in bin. Tested on Windows 10.

  9. damieng commented on Jul 20, 2016

    @damieng
    ContributorAuthor

    Definitely need to get some logging into that so we can troubleshoot when it fails.

  10. hobbsd commented on Jul 20, 2016

    @hobbsd

    Yes, that command works for me as well on Windows 10.

  11. aisa0906 commented on Dec 22, 2016

    @aisa0906

    My Windows 7 install of Atom 1.12.7 did not create the bin files. What do you recommend?

  12. stale commented on Dec 22, 2017

    @stale

    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:

    1. Verify that you can still reproduce the issue in the latest version of Atom
    2. 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.

  13. 2 remaining items

  14. rsese commented on Feb 26, 2018

    @rsese
    Contributor

    From #16831:

    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.24

    What OS and version you reproduced the issue on

    Windows 8.1

    What steps you followed to reproduce the issue

    This was on an install @MandarSant or an update?

  15. reopened this on Feb 26, 2018
  16. MandarSant commented on Feb 27, 2018

    @MandarSant

    I have this issue as well as following issues
    #973
    #14446

  17. MandarSant commented on Feb 27, 2018

    @MandarSant

    @rsese it is on both install and update

  18. alex-robbins commented on Sep 14, 2018

    @alex-robbins

    A coworker of mine just saw this when installing Atom 1.30 on a Windows 10 machine for the first time.

  19. alex-robbins commented on Oct 5, 2018

    @alex-robbins

    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.

  20. david-mears commented on Nov 26, 2018

    @david-mears

    "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

  21. Neustradamus commented on Aug 13, 2019

    @Neustradamus
  22. Neustradamus commented on Oct 23, 2019

    @Neustradamus

    @damieng: It is solved?

  23. Neustradamus commented on Jan 10, 2020

    @Neustradamus

    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?

  24. pt-dev commented on Mar 2, 2020

    @pt-dev

    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
    image

    What steps you followed to reproduce the issue
    Installing Atom with the official installer.

  25. mickey203 commented on May 6, 2020

    @mickey203

    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

  26. manngo commented on Feb 18, 2021

    @manngo

    When the windows installer runs or the auto-updater executes the following files should be created/overwritten in c:\users\appdata\local\atom

    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:

    %userprofile%\AppData\Local\atom\atom.exe --squirrel-install
    

    will install the folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-updaterbuginstallerwindows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions