init
This commit is contained in:
17
script/uninstall-current-user.vbs
Normal file
17
script/uninstall-current-user.vbs
Normal file
@@ -0,0 +1,17 @@
|
||||
Set oShell = CreateObject("WScript.Shell")
|
||||
Set oEnv = oShell.Environment("USER")
|
||||
|
||||
Dim sEnvKey, sEnvVal, aJBProducts
|
||||
aJBProducts = Array("idea", "clion", "phpstorm", "goland", "pycharm", "webstorm", "webide", "rider", "datagrip", "rubymine", "appcode", "dataspell", "gateway", "jetbrains_client", "jetbrainsclient", "studio", "devecostudio")
|
||||
|
||||
MsgBox "It may take a few seconds to execute this script." & vbCrLf & vbCrLf & "Click 'OK' button and wait for the prompt of 'Done.' to pop up!"
|
||||
|
||||
For Each sPrd in aJBProducts
|
||||
sEnvKey = UCase(sPrd) & "_VM_OPTIONS"
|
||||
sEnvVal = oShell.ExpandEnvironmentStrings("%" & sEnvKey & "%")
|
||||
If sEnvVal <> ("%" & sEnvKey & "%") Then
|
||||
oEnv.Remove(sEnvKey)
|
||||
End If
|
||||
Next
|
||||
|
||||
MsgBox "Done."
|
||||
Reference in New Issue
Block a user