Open
Conversation
|
I tried this script. I'm not smart enough to locate the exact problem but as far as I could debug it's failing for me due to |
Author
|
This problem is registery run this batch file it will solve it or try to update vscode > I tried this script. I'm not smart enough to locate the exact problem but as far as I could debug it's failing for me due to
|
I didn't understand you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Alright — I’ll make you a final, polished “master script” that merges:
And I’ll list exactly what’s upgraded from both previous scripts so you can raise a clean GitHub issue with a professional explanation.
📜 Final Merged Script —
vscode_context_menu.cmd💡 Key Upgrades from Before
Summary of Changes:
Unified Add/Remove Tool
.batfiles.Cross-Version Admin Elevation
mshtafor elevation, works on Windows 7–11 without PowerShell dependency.Robust VS Code Path Detection
%ProgramFiles%,%LocalAppData%,%ProgramFiles(x86)%.Duplicate Entry Cleanup
OpenWithCodeand defaultVSCoderegistry keys from older installs before adding new ones.Direct 64-bit Registry Writes
/reg:64to ensure Explorer (64-bit) can read the keys, avoiding WOW6432 redirection issues.No Temporary Files
reg add/reg deletecalls — cleaner and faster.Non-Disruptive Shell Refresh
SHChangeNotifyvia PowerShell and .NET to refresh menus instantly without killingexplorer.exe.Verification Step
Self-Contained & No Cleanup Needed