We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce50f43 commit a862d0aCopy full SHA for a862d0a
1 file changed
os/win.ps1
@@ -72,6 +72,22 @@ function win_admin_romove_current_user() {
72
73
# -- install --
74
75
+function win_reinstall_vscode {
76
+ winget uninstall Microsoft.VisualStudioCode --silent --force
77
+ $vscode_data_paths = @(
78
+ "$env:APPDATA\Code",
79
+ "$env:LOCALAPPDATA\Code",
80
+ "$env:USERPROFILE\.vscode",
81
+ "$env:TEMP\vscode-update"
82
+ )
83
+ foreach ($path in $vscode_data_paths) {
84
+ if (Test-Path $path) {
85
+ Remove-Item -Recurse -Force $path
86
+ }
87
88
+ winget install Microsoft.VisualStudioCode --silent
89
+}
90
+
91
function win_install_exe_from_zip() {
92
# if the basename of extractPath exist inside extracted Path so get from inside that folder
93
# For example: win_install_exe_from_zip ""...\vlc-3.0.21.zip" "...\bin\vlc-3.0.21" "vlc.exe"
0 commit comments