Applied to: ZWCAD 2017, ZWCAD+ 2015

Issue:

Need to uninstall ZWCAD in thousands of computers through SCCM.


Solutions:

Create a txt file and then input the following codes, after that, save it as .vbs file. Copy it to the client and then double click to run.


For ZWCAD 2017:

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set WshShell = Wscript.CreateObject("Wscript.Shell")
 
If objFSO.FileExists("C:\Program Files\ZWCAD 2017\ZWCAD.exe") Then
WshShell.Run "MsiExec.exe /X {26A7C767-A001-1033-A101-F87888BABDCA} /qn /norestart", 0, true
WshShell.Run("MsiExec.exe /X {26A7C767-A001-0000-A001-F87888BABDCA} /qn /norestart")
else
Wscript.Echo "Not installed"
end if
 
WshShell.RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26A7C767-A001-0000-A200-F87888BABDCA}\")
 
set fso=createobject("Scripting.FileSystemObject") 
fso.DeleteFolder("C:\Program Files\ZWCAD 2017"),true 



For 2015+:

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set WshShell = Wscript.CreateObject("Wscript.Shell")
 
If objFSO.FileExists("C:\Program Files (x86)\ZWCAD+ 2015\ZWCAD.exe") Then
WshShell.Run "MsiExec.exe /X {A032FD8E-A001-1033-A101-5BBA1F251080} /qn /norestart", 0, true
WshShell.Run("MsiExec.exe /X {A032FD8E-A001-0000-A001-5BBA1F251080} /qn /norestart")
else
Wscript.Echo "Not installed"
end if
 
WshShell.RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{B72D1CAE-F497-4F57-A5BF-D25250074793}\")
 
set fso=createobject("Scripting.FileSystemObject") 
fso.DeleteFolder("C:\Program Files (x86)\ZWCAD+ 2015"),true 


Note that this file needs to be run as an administrator and this method is not able to delete all the files related to ZWCAD. But it can uninstall ZWCAD so that users can reinstall the next time. Some computers may not be able to uninstall ZWCAD successfully after running this file, in this case, you can run the ZWFixIt tool to fix it.