30
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

"You are running the system-wide installation of Code, ..." の警告がポップアップする

Posted at

症状

Visual Studio Code のお勧めに促されて再インストールを実行した直後から、Codeの起動時に "You are running the system-wide installation of Code,..." の警告が毎回ポップアップするようになった。
vscode_you_are_running_systemwide_installation.png

発生環境

  • Windows 10
  • Visual Studio Code 1.26.1

解決策

重複してインストールしたVisual Studio Codeのうち、Administrator権限でインストールしたアプリをアンインストールする。
vscode_repeated_installation.png

トラブルの原因

Visual Studio Codeが警告をポップアップするまでの経緯

新しいユーザーセットアップディストリビューションへの切り替え

Visual Studio Code が新しいインストーラ(ユーザー セットアップ ディストリビューション)のダウンロードをお勧めしてくる。

vscode_suggestion_new_setup_distribution.png

詳細はこちらのリンクをあとから読み直して、今回の警告の意味を理解しました。 :cry:

インストーラをダウンロードして実行

ポップアップのお勧めに促されるまま(無自覚に)インストーラをダウンロードして再インストールを実行。

vscode_warning_before_reinstall.png

2回目の気づきポイント。再インストールを実行する前にインストール済みのバージョンを削除しなさい。というサジェッションがポップアップされますが、このサジェッションを無視して「はい(Y)」を実行する。

結末

vscode_you_are_running_systemwide_installation.png
管理者権限(system-wide)とユーザ権限(user-wide)でインストールした2つのCodeが見つかったため、Visual Studio Codeから注意を受けています。一番最初の「詳細はこちら」をきちんと読んで内容を理解していれば、もしくは、再インストール直前にインストーラが促している事前のVisual Studio Codeのアンインストールを実行していれば避けられた警告(warning)でした。 :cry:

30
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
30
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?