Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Code should run as same user after updating #10783

Closed
Timmmm opened this issue Aug 22, 2016 · 7 comments
Closed

Windows: Code should run as same user after updating #10783

Timmmm opened this issue Aug 22, 2016 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@Timmmm
Copy link
Contributor

Timmmm commented Aug 22, 2016

  • VSCode Version: 1.1.1
  • OS Version: Windows 7, 64-bit

Steps to Reproduce:

  1. Be on an annoying corporate network where the standard admin account doesn't work, but you have another "local admin" account that does.
  2. Install VS Code using the local admin account.
  3. Run it as a non-admin user.
  4. Try to install an extension.
  5. Observe the message "Visual Studio Code will be update after it restarts"
  6. Click "Update Now"
  7. VSC restarts but shows a dialog "You must be logged in as an administrator when installing this program."
  8. Run VSC as the local admin account ("Run as different user"; not "Run as administrator").
  9. Try to install the extension again
  10. This time it works, but it only installed it for the local admin account, not for my standard account.
  11. Run VSC as a non-admin user.
  12. Extension is not installed.
@Timmmm
Copy link
Contributor Author

Timmmm commented Aug 22, 2016

I solved it in my case by manually copying the extension files from the admin account, i.e.:

copy c:\Users\local-admin\.vscode\extensions\saviorisdead.RustyCode-0.17.0 c:\Users\me\.vscode\extensions\saviorisdead.RustyCode-0.17.0

Actually most of the files were there, and the only missing ones were package.json, README.md, ROADMAP.md, and tslint.json. I copied those and then it worked fine.

@Timmmm
Copy link
Contributor Author

Timmmm commented Aug 22, 2016

Actually, the "You must be logged in as an adminsitrator when installing this program" was about upgrading VSC from 1.1 to 1.4. Still weird that not all of the RustyCode extension was installed though.

@sandy081
Copy link
Member

@joaomoreno this looks to me a dup of #534 if so, please close it. Otherwise a new issue for you :).

@joaomoreno
Copy link
Member

Yeah, you seem to be mixing up installing extensions with updating Code.

What very likely happened was that Code was launched under the Admin user after updating, which is the bug.

You can now install extensions successfully right?

@joaomoreno joaomoreno added the bug Issue identified by VS Code Team member as probable bug label Aug 23, 2016
@joaomoreno joaomoreno added this to the Backlog milestone Aug 23, 2016
@joaomoreno joaomoreno changed the title Can't install extensions into non-admin account Windows: Code should run as user after updating Aug 23, 2016
@joaomoreno joaomoreno changed the title Windows: Code should run as user after updating Windows: Code should run as same user after updating Aug 23, 2016
@Timmmm
Copy link
Contributor Author

Timmmm commented Aug 24, 2016

Ah yes it works now. I think I was confusing the VSC update with the extension installation, which wasn't working because VSC couldn't update. Sorry!

@Timmmm Timmmm closed this as completed Aug 24, 2016
@joaomoreno joaomoreno reopened this Aug 24, 2016
@joaomoreno
Copy link
Member

I'll reopen and use this issue for its current title: Windows: Code should run as same user after updating

@joaomoreno
Copy link
Member

Closing in favour of #1614

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants