Microsoft vs code unins000 exe произошла ошибка

The workaround solution is to add the user to have Full Control on the %LOCALAPPDATA%ProgramsMicrosoft VS Code folder.

The following PowerShell script (run as Admin) can replace the user permissions temporarily and resolve the immediate issue:

$folder = "$env:LOCALAPPDATAProgramsMicrosoft VS Code"
$username = "$env:USERDOMAIN$env:USERNAME"
    
$newAccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule($username, "FullControl", 3, "None", "Allow")
    
$acl = Get-ACL $folder
$acl.AddAccessRule($newAccessRule)
    
Set-ACL $folder -AclObject $acl

This allows the installer/updater to continue by clicking Try Again.

Installation method

This question pertains to the per-user installation of VS Code. This is a valid installation method, and the default method.

The alternative is the Program Files-based (system-wide) installation.

Root cause?

I’m unsure why the user’s permissions were lost on the folder. By default the user should have access to their own AppData directory. Something had set the permissions to Admin only (i.e. requiring elevation).

Perhaps the root cause is due to an elevated VS Code doing an update?

More discussion on https://github.com/microsoft/vscode/issues/148953

@AnthonyJacob

Every 5 minutes this error notification appears on my screen when vscode is running:

image

@gahobbsau

Same here. I am also using Jupyter files in browser at same time. Error appeared first time today when I opened an .ipynb file in VS Code.

unins000.exe appears to be an uninstall file and is accompanied by a .dat and .msg file of same name, both binary. Dragging them into Notepad++ reveals some readable text that appears to include messages that might appear during an installation.
.msg file top line: Inno Setup Uninstall Log (b)
.dat file top line: Inno Setup Messages (5.5.3)

@joaomoreno

When you installed the UserSetup of VS Code… did you run the setup as an administrator?

@gahobbsau

I was logged to my Win10 Notebook in an account that is an administrator.
Did I need to right click the setup file and «Run as administrator» as well?
If so, can I uninstall VSCode, then reinstall, with settings saved?
I expect that I would need to note and reinstall extensions.
(Would the same all apply to my Visual Studio install?)

@joaomoreno

Did I need to right click the setup file and «Run as administrator» as well?

No no. That’s exactly what you shouldn’t do.

If so, can I uninstall VSCode, then reinstall, with settings saved?

Yes you can, nothing will be deleted.

@gahobbsau

So, Is there anything that should be done so as to «run the setup as an administrator» — other than be logged on as an administrator?
And, does it matter whether it installed for All Users or only Current User (if it asks).
The VS Code install guideline pages seem to offer very limited guidance, such as at https://code.visualstudio.com/docs/setup/setup-overview
This 3rd party one looks more helpful https://www.thewindowsclub.com/visual-studio-code-download
Is there a better guide so as to get the install correct?
BTW, this unins000.exe error has only appeared in the last couple of days when using a couple of particular Jupyter notebooks. I have only recently starting use Code and VStudio but this issue did not occur till yesterday.

@joaomoreno

So, Is there anything that should be done so as to «run the setup as an administrator»

No, please, do not run the UserSetup as Administrator. I was simply asking if you did run it. I was not suggesting you should do it.

Here’s my suggestion:

  1. Completely uninstall VSCode.
  2. Install the UserSetup in a folder which your user can write to OR Install the old Setup anywhere in your system.

If you are going to install VS Code on a machine for other users to use, please use the old, global, system-wide Setup. Do not use the UserSetup.

@gahobbsau

Something to consider.
I also have Anaconda installed on this laptop and Anaconda recently added vscode to its distribution. In the Anaconda Navigator, I now see vscode 1.26.1 available to «Launch» which appears to open the same vscode with the same set of installed extensions.

@andrewalgabre

@joaomoreno

Keeping my suggestion:

If you are going to install VS Code on a machine for other users to use, please use the old, global, system-wide Setup. Do not use the UserSetup.

If you are already doing that, and this specific error still shows up, let me know.

@gahobbsau

In my case, I uninstalled and re-installed VS Code with it installed into my user appdata folder.
Since doing that I no longer receive the unins000.exe error.

@vscodebot
vscodebot
bot

locked and limited conversation to collaborators

Dec 10, 2018

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

Labels

info-needed

Issue requires more information from poster

Problem Description:

I am new to Visual Studio. I have it set up with Git. When I have VS open, I keep on getting this error pop up:
enter image description here

how do I get this to go away?
I have tried running (and installing it) in administrator.

Win10 x64 build 19041
Visual Studio Code v1.49.2 x64

Solution – 1

It seems like using the default download is built to be installed in your AppData folder.
Should you want to (like me) install it in your Program Files folder, go to https://github.com/microsoft/vscode/issues/75367 and follow the link there to https://code.visualstudio.com/docs/?dv=win64 and download the exe from there.
This seems to have solved my problem.

Thank you to @Martheen

Solution – 2

This error also occurred to me several times, so what I did was stopped the scanning done by antivirus software. You can go to settings of your antivirus software and stop or disable scanning of apps while they download.

Solution – 3

  • right click program directory (e.g. C:Program FilesMicrosoftVsCode)
  • choose security tab
  • allow full control for users

Solution – 4

This error appeared after uninstalling the jshint extension, I reinstalled it but left it disabled, that’s how it was solved for me.

Solution – 5

Run it as an administrator.

It seems that VS Code had to install an update and couldn’t due to permission restrictions. I simply closed VS Code and re-opened as an Administrator. I then went to Help → Check for Updates. All the updates were installed appropriately and the error was gone.

In case that doesn’t work, apply the steps provided by Lars and then run as administrator.

Solution – 6

No you don’t have to do all that, all you have to do is:

Right-click on VS Code > Properties > Compatibility Tab > Select Run as Administrator

Then it should be fine.

This issue happens when VS Code is trying to update in the background but cannot because it is not running as the administrator.

Solution – 7

The workaround solution is to add the user to have Full Control on the %LOCALAPPDATA%ProgramsMicrosoft VS Code folder.

The following PowerShell script (run as Admin) can replace the user permissions temporarily and resolve the immediate issue:

$folder = "$env:LOCALAPPDATAProgramsMicrosoft VS Code"
$username = "$env:USERDOMAIN$env:USERNAME"
    
$newAccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule($username, "FullControl", 3, "None", "Allow")
    
$acl = Get-ACL $folder
$acl.AddAccessRule($newAccessRule)
    
Set-ACL $folder -AclObject $acl

This allows the installer/updater to continue by clicking Try Again.

Installation method

This question pertains to the per-user installation of VS Code. This is a valid installation method, and the default method.

The alternative is the Program Files-based (system-wide) installation.

Root cause?

I’m unsure why the user’s permissions were lost on the folder. By default the user should have access to their own AppData directory. Something had set the permissions to Admin only (i.e. requiring elevation).

Perhaps the root cause is due to an elevated VS Code doing an update?

More discussion on https://github.com/microsoft/vscode/issues/148953

Solution – 8

Goto C:UsersaarifhusainAppDataLocalPrograms

(aarifhusain is my pc user directory, On your pc, it will be different)

Right click program directory on «Microsoft Vs Code» folder

  • Choose security tab

allow full control for

  • Creator owner
  • Authenticated users
  • SYSTEM
  • Administrator(AARIFHUSAIN/Administrator)
  • Users(AARIFHUSAIN/Users)

Allow «full control» for everyone.

enter image description here

Now error Resolved successfully.
Upvote this answer

Solution – 9

On my PC when I opened directly a file or folder this error appeared…
So, I renamed all 3 uninstall (below)* files and problem solved.

*(unins000.exe, unins000.dat & unins000.msg)


PC & Visual Studio Code Version:

Version: 1.68.0 (user setup)
Date: 2022-06-08T11:44:16.822Z
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Windows NT x64 6.3.9600
Set on: Windows 8.1 x64-bit OS

Solution – 10

For me, this issue occurred because I had used winget to install VS Code from an elevated command prompt. This caused the owner of the Microsoft VS Code folder to be set as the MyPCAdministrators group instead of MyPCMyUserAccount.

Even though I am already a member of that group, I think the privileges of the administrator group don’t apply unless you run the application with administrator privileges. UAC and all that.

The fix for me was uninstalling VS Code and reinstalling with winget from a standard command prompt.

You should not need to mess with permissions on the folder.

655 / 478 / 49

Регистрация: 10.03.2012

Сообщений: 3,503

1

VS Code

Стала возникать ошибка «Отказано в доступе»

15.12.2022, 11:47. Показов 516. Ответов 6


Студворк — интернет-сервис помощи студентам

Периодически в VS Code стала возникать ошибка, всплывающее окно
C:Users<Имя пользователя>AppDataLocalProgramsMicrosoft VS Codeunins000.exe
Произошла ошибка при попытке создания файла в папке назначения: Отказано в доступе.



0



Администратор

Эксперт .NET

15613 / 12582 / 4989

Регистрация: 17.03.2014

Сообщений: 25,558

Записей в блоге: 1

15.12.2022, 13:43

2

Whitecolor, если файл unins000.exe есть в папке, то я бы попробовал переименовать его в unins000.exe.bak. Если файла нет, то проверил бы права на папку.



0



655 / 478 / 49

Регистрация: 10.03.2012

Сообщений: 3,503

15.12.2022, 13:49

 [ТС]

3

OwenGlendower,
Файл есть.

Цитата
Сообщение от OwenGlendower
Посмотреть сообщение

то я бы попробовал переименовать его в unins000.exe.bak.

Хуже ничего не случится?



0



Администратор

Эксперт .NET

15613 / 12582 / 4989

Регистрация: 17.03.2014

Сообщений: 25,558

Записей в блоге: 1

15.12.2022, 14:00

4

Цитата
Сообщение от Whitecolor
Посмотреть сообщение

Хуже ничего не случится?

Не думаю. Собственно поэтому я и предлагаю переименовать файл, а не удалить его. Если что не так всегда можно переименовать обратно.



0



655 / 478 / 49

Регистрация: 10.03.2012

Сообщений: 3,503

15.12.2022, 14:02

 [ТС]

5

Цитата
Сообщение от OwenGlendower
Посмотреть сообщение

Не думаю. Собственно поэтому я и предлагаю переименовать файл, а не удалить его. Если что не так всегда можно переименовать обратно.

Переименовал, не помогло, ошибка продолжает возникать



0



Администратор

Эксперт .NET

15613 / 12582 / 4989

Регистрация: 17.03.2014

Сообщений: 25,558

Записей в блоге: 1

15.12.2022, 14:04

6

Whitecolor, проверяйте права на папку значит.



0



655 / 478 / 49

Регистрация: 10.03.2012

Сообщений: 3,503

15.12.2022, 14:11

 [ТС]

7

Цитата
Сообщение от OwenGlendower
Посмотреть сообщение

проверяйте права на папку значит.

Как?



0



Понравилась статья? Поделить с друзьями:
  • Microsoft visual c ошибка 2203
  • Microsoft virtual wifi miniport adapter ошибка 43
  • Microsoft visual c ошибка 0x80070641
  • Microsoft vba ошибка 400
  • Microsoft visual c выдает ошибку