Scoop-extras: VS Code registers one file icon when installed via Scoop

Created on 25 Sep 2019  路  4Comments  路  Source: lukesampson/scoop-extras

Environment

Windows Build: 10.0.18362.0
Current Scoop Version: 3e55a709

Steps to Reproduce

Assuming scoop is installed, vs code is not, and the extras bucket has been added:

  1. Run scoop install vscode
  2. Run $dir\\vscode-install-context.reg to add VS Code as a context menu option
  3. In Explorer, create a folder with various file types supported by VS Code
  4. For each file:
  5. Select "Open With..."
  6. Find VS Code in the list of applications OR if it's not there, select "Look for another app on this PC" and browse to the VS Code executable in scoop
  7. Check the "Always use this app to open '.file-ext' files" box

Current Behavior

Each file type uses the same VS code icon in Windows explorer
image

Expected Behavior

Each file type uses it's own icon, as described in the October 2018 release notes. This is the normal behavior when VS Code is installed normally rather than with Scoop.

Most helpful comment

@r15ch13 @ratatoeey

Not being an expert in the details of Windows application installation process, my best guess is that the file you linked to runs during normal installations of VS Code and is responsible for associating VS code and it's icons with the relevant file types? (please correct me if this assumption is incorrect).

Two questions:

  1. Are you suggesting that I run the relevant lines separately (post scoop install)? If so how would I do that?
  2. Why isn't this file running during scoop install? Is there a way we can alter the config so it does? If not I imagine we'd have to repeat step 1 every time the icons were updated.

Thanks

All 4 comments

@r15ch13 @ratatoeey

Not being an expert in the details of Windows application installation process, my best guess is that the file you linked to runs during normal installations of VS Code and is responsible for associating VS code and it's icons with the relevant file types? (please correct me if this assumption is incorrect).

Two questions:

  1. Are you suggesting that I run the relevant lines separately (post scoop install)? If so how would I do that?
  2. Why isn't this file running during scoop install? Is there a way we can alter the config so it does? If not I imagine we'd have to repeat step 1 every time the icons were updated.

Thanks

Those code in iss shows registries related with file icons. You need to convert them to a reg file.

Is there premade .reg file or is there some easy way to convert this code?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TangentFoxy picture TangentFoxy  路  5Comments

lepicsaintloup picture lepicsaintloup  路  10Comments

jahead picture jahead  路  11Comments

Spiraster picture Spiraster  路  6Comments

Bazalia picture Bazalia  路  13Comments