Skip to content

Instantly share code, notes, and snippets.

@helske
Last active September 27, 2019 12:55
Show Gist options
  • Save helske/f5ed818de51553634d9d5057b489dd6a to your computer and use it in GitHub Desktop.
Save helske/f5ed818de51553634d9d5057b489dd6a to your computer and use it in GitHub Desktop.
Installing Atom and Julia to arbitrary location for non-admin user on Windows
I don't have software installation rights at all with my basic account at work, but I have localadmin rights on a separate account.
But as Atom installs itself automatically to user profile,
I can't just install Atom for my normal account using the localadmin account.
But this works: https://discuss.atom.io/t/how-to-install-atom-on-windows-to-other-places-instead-of-c/27619/12
In summary:
1. Install Atom with localadmin account
2. Run %LocalAppData%\Atom\app-VERSION\atom.exe --squirrel-uninstall VERSION (fill in version with the Semver version of Atom)
3. Move the %LocalAppData%\Atom folder to anywhere you want - make sure to move this root directory, not the app-VERSION directory
4. Run C:\Wherever\you\put\it\Atom\app-VERSION\atom.exe --squirrel-install VERSION
But this is not enough. I still could not install julia-client via Atom or directly with apm due to group policy restrictions.
So I added ATOM_HOME system environment variable which points to my C:\MyTemp (local user profile didn't work, and neither did Program Files)
And then run Atom using localadmin, install uber-juno etc, and then it should work also with local account.
But even with Julia installed to Program files using localadmin rights, the packages are installed to user profile by default,
and some packages like Math needs admin rights to install. So more tricks are needed:
1. Add environmental variable DEPOT_PATH = "C:\MyTemp\.julia" (maybe also JULIA_DEPOT_PATH?)
2. Add Julia to PATH: "C:\Program Files\Julia-1.2.0\bin"
4. Run Atom on localadmin account, let it populate the registry and install needed packages
5. Switch to basic user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment