Skip to content

Allow user-level installations #534

Closed

Description

When i installed Visual Studio Code as an Administrator and log in with another account afterwards, the "Open with Code" Explorer entries (in the context menu of Files and Folders) are gone.

I searched for it in the Windows Registry and it seems to me, that the Windows Setup only add the entries for the current user. In my example only for the Administrator account of my computer which is another one than that i worked with normally.

It would be nice when the Visual Studio Code setup add the "Open with Code" capability to any user of the system.

Thanks & Greetings,
Andreas

Activity

  1. joaomoreno commented on Nov 24, 2015

    @joaomoreno
    Contributor

    The Open with Code action is gone by default since 0.8.0. Code now registers itself as an editor and you can and should associate it with file extensions, like you would do any other application. If you manually install Code again, the installer will ask you if you still want the context menu actions, but you must install it as the user that you want the actions for.

  2. anrichter commented on Nov 24, 2015

    @anrichter
    Author

    Thanks for your reply.

    Assign vscode with specified file extensions like .md works ok. But i can't set the association for folders to open a complete folder in vscode from within the explorer.

    And unfortunately my working user account, which should use the actions, does not have adequate rights to install any programm on my computer (AD policy). So i can't select the options in setup for my working user.

    Do you have any suggestion how i can add the context menu item manually? In regedit.exe?

    tia,
    Andreas

  3. joaomoreno commented on Nov 24, 2015

    @joaomoreno
    Contributor

    Here's what we do in the installer, hope it's not too cryptic.

    Root: HKCU; Subkey: "SOFTWARE\Classes\*\shell\VSCode"; ValueType: expandsz; ValueName: ""; ValueData: "Open with Code"; Tasks: addcontextmenufiles; Flags: uninsdeletekey
    Root: HKCU; Subkey: "SOFTWARE\Classes\*\shell\VSCode"; ValueType: expandsz; ValueName: "Icon"; ValueData: "{app}\Code.exe"; Tasks: addcontextmenufiles
    Root: HKCU; Subkey: "SOFTWARE\Classes\*\shell\VSCode\command"; ValueType: expandsz; ValueName: ""; ValueData: """{app}\Code.exe"" ""%1"""; Tasks: addcontextmenufiles
    
    Root: HKCU; Subkey: "SOFTWARE\Classes\directory\shell\VSCode"; ValueType: expandsz; ValueName: ""; ValueData: "Open with Code"; Tasks: addcontextmenufolders; Flags: uninsdeletekey
    Root: HKCU; Subkey: "SOFTWARE\Classes\directory\shell\VSCode"; ValueType: expandsz; ValueName: "Icon"; ValueData: "{app}\Code.exe"; Tasks: addcontextmenufolders
    Root: HKCU; Subkey: "SOFTWARE\Classes\directory\shell\VSCode\command"; ValueType: expandsz; ValueName: ""; ValueData: """{app}\Code.exe"" ""%V"""; Tasks: addcontextmenufolders
    
    Root: HKCU; Subkey: "SOFTWARE\Classes\directory\background\shell\VSCode"; ValueType: expandsz; ValueName: ""; ValueData: "Open with Code"; Tasks: addcontextmenufolders; Flags: uninsdeletekey
    Root: HKCU; Subkey: "SOFTWARE\Classes\directory\background\shell\VSCode"; ValueType: expandsz; ValueName: "Icon"; ValueData: "{app}\Code.exe"; Tasks: addcontextmenufolders
    Root: HKCU; Subkey: "SOFTWARE\Classes\directory\background\shell\VSCode\command"; ValueType: expandsz; ValueName: ""; ValueData: """{app}\Code.exe"" ""%V"""; Tasks: addcontextmenufolders
    

    I will actually reopen this and rename it according to the real issue.

  4. changed the title [-]Missing "Open with Code" in Windows Explorer after Install[/-] [+]Allow user-level installations[/+] on Nov 24, 2015
  5. anrichter commented on Nov 24, 2015

    @anrichter
    Author

    Thanks. That helped. 👍

  6. added
    feature-request
    on Nov 25, 2015
  7. jchadwick commented on Feb 2, 2016

    @jchadwick
    Contributor

    +1.

    I don't have Administrator access on my machine and I don't understand why I would need it in order to install a text editor. Please support the ability to install Code without requiring elevated permissions.

    I'm not sure if this request matches the original description of this issue, but it matches the current title...

  8. GodLesZ commented on Apr 20, 2016

    @GodLesZ

    João Moreno (@joaomoreno) you changed the title of the issue which now matches exactly my (and Jess Chadwick (@jchadwick)) request, but missmatches the authors request.

    Disappearing context menus because of different user-level installations are not related to "allow installations in different user-levels" or: I want to install VS Code without admin privilegs.

  9. joaomoreno commented on Apr 20, 2016

    @joaomoreno
    Contributor

    They do not disappear. They are configured in the registry under HKCU, meaning they are scoped under the user who ran the installation. Had the installer been able to be run per user, independently, you'd have these actions in any user you'd like.

    There always the possibility of adding some commands to Code that would install and uninstall these shortcuts for your user, as commands in the command palette.. That might actually be a good idea. What do you think?

  10. 28 remaining items

  11. TiemenSch commented on Apr 26, 2018

    @TiemenSch

    I saw in the milestone that this was deferred, João Moreno (@joaomoreno). Do you need help? Testing or other problems holding you back?

  12. joaomoreno commented on Apr 26, 2018

    @joaomoreno
    Contributor

    Tiemen Schuijbroek (@TiemenSch) Thanks for asking. No real problems now that we've made a decision on what path to follow. We will provide two separate Setup packages. The current one, as well as one which requires no admin privileges. It's just postponed to next month.

  13. TiemenSch commented on Apr 26, 2018

    @TiemenSch

    OK! Good to hear that there's discussions/work behind the scenes. You're going to please a lot of people!

  14. joaomoreno commented on Jun 26, 2018

    @joaomoreno
    Contributor
  15. nejsimon commented on Jul 23, 2018

    @nejsimon
    
    Disregard that, I found out when reading the release details.
    
  16. wahidshafique commented on Jul 23, 2018

    @wahidshafique

    Simon Strandman (@nejsimon) what did you find out, for posterity? I've had the same issue.

  17. nejsimon commented on Jul 24, 2018

    @nejsimon

    Wahid Shafique (@wahidshafique) The release notes says that it's not included in the june release because they want more feedback, so you'd still have to use the insider build.

    https://code.visualstudio.com/updates/v1_25#_user-setup-for-windows

  18. locked and limited conversation to collaborators on Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestinstall-updateon-testplanwindows

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions