SolidWorks 2012 SP01 silent clean uninstallation
Hi I am trying to uninstall solidworks in a silent manner I am using below script but its not gng silently its opening up the installation manager and asking features to be un installed if I select yes then uninstalling. But I checked after that its not uninstalling clean manner...
"C:\Windows\SolidWorks\IM_20120-40100-1100-200\sldim\sldIM.exe" /remove "C:\Windows\SolidWorks\IM_20120-40100-1100-200 (2)\sldim\sldIM_installed.xml"
if any body has done this app, please provide me the switches to uninstall it???
thanks in advance
Answers (8)
If you know where the msi you installed from is try
start /wait msiexec /x the_msi_name.msi /passive
When I removed version 2009 I searched the registry and found it's guid and called, since I did an admin install from a server and it was deleted.
::SOLIDWORKS 2009 SP4::
ECHO Uninstalling SolidWorks 2009 SP04
ECHO Please wait...
ECHO.
start /wait msiexec /x {212ED557-7453-44C1-AE9C-3DA780B9B3C6} /passive
dont forget to delete the key also
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SolidWorks Installation Manager 20090-40400-1100-200]
:Uninstall Solidworks 2022, 3D Experience and Agile Connector
MsiExec.exe /X{0060450C-5B44-424B-BD42-559F2A5D820A} /qn
MsiExec.exe /X{071A526E-BED1-44D2-B2B5-FE20B26F5F6D} /qn
MsiExec.exe /X{175BC9FC-C256-4EFC-9D87-4A9AF3B47A12} /qn
MsiExec.exe /X{26EA0056-4BAD-4F9E-BDCE-A72E25C7D06D} /qn
MsiExec.exe /X{3E27B568-5969-4B76-BDD5-739B4FC7E61C} /qn
MsiExec.exe /X{46053718-2931-47EA-B678-6DF08370F2D4} /qn
MsiExec.exe /X{54DF002F-CDCE-40B2-8E2A-E294333EE6EB} /qn
MsiExec.exe /X{58BEDD50-0DAB-4BBD-AF66-62A93C77F8AF} /qn
MsiExec.exe /X{77759590-CB58-47F8-9C44-6DC2F07274D9} /qn
MsiExec.exe /X{78E1A395-FD21-499A-91A2-6135BA6112B6} /qn
MsiExec.exe /X{7C7F5F30-DF78-47A4-9593-D624D8ADF52D} /qn
MsiExec.exe /X{A9F14961-697D-455C-B48B-FCE9E22664A5} /qn
MsiExec.exe /X{E1C7FBC9-5D5C-4C5F-BE99-185E8576BC5B} /qn
MsiExec.exe /X{E3B4130E-6066-4613-918C-6EB5E7B68D8C} /qn
MsiExec.exe /X{E5A7DAD6-65DE-4DDA-8240-D49168365FF2} /qn
MsiExec.exe /X{EB00B3B9-B938-4123-9BDC-F7CD57128E16} /qn
MsiExec.exe /X{EBFF07B4-D9ED-4395-B6C7-D83C44FF2216} /qn
MsiExec.exe /X{3D63579F-2398-418B-9227-A852FB201D2D} /qn
MsiExec.exe /X{0B2C58EB-67A2-225B-60B2-D1990E55DD33} /qn
MsiExec.exe /X{3D63579F-2398-418B-9227-A852FB201D2D} /qn
:Uninstall Draftsite 2022
MsiExec.exe /X{D5F577EE-B2AF-4006-9552-0FE145830286} /qn
"C:\windows\SolidWorks\IM_20220-40500-1100-100\sldim\sldim.exe" /remove "C:\windows\SolidWorks\IM_20220-40500-1100-100\sldim\sldIM_installed.xml"
:Registry Clean
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\eDrawings" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\SOLIDWORKS 2022" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\SolidWorks BackOffice" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\SRAC" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSTAHOST" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSTAHostConfig" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\eDrawings" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\SolidWorks" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Srac" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\XPLM Solution GmbH" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SolidWorks" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTAHOST" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTAHostConfig" /f
REG DELETE "HKEY_CLASSES_ROOT\SOLIDWORKS Installation Manager" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{BF6EED04-A253-4088-8340-575BAC150320}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\1B61262840F0B9043AE36C0A40AA0179\SourceList" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\BE85C2B02A76B522062B1D99E055DD33\SourceList" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SOLIDWORKS Installation Manager" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6B2E341B-AFA3-4105-A24A-F080EDE43609}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{94A80D21-7300-40EE-B14A-F7DBA212B6A9}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{A0AB0348-0AD5-49D4-BBA6-1C09A68888F5}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\SolidWorks Installation Manager 20210-40500-1100-100" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{3D63579F-2398-418B-9227-A852FB201D2D}" /f
:Folder Clean Up
RD /S /Q "C:\SolidWorks DATA"
RD /S /Q "C:\ProgramData\COSMOS Applications\*"
RD /S /Q "C:\ProgramData\SolidWorks"
RD /S /Q "C:\ProgramData\SolidWorks Electrical"
RD /S /Q "C:\ProgramData\SolidWorks Flow Simulation"
RD /S /Q "C:\Program Files\SolidWorks Corp"
RD /S /Q "C:\Program Files\Common Files\eDrawings*"
RD /S /Q "C:\Program Files\Common Files\SolidWorks Installation Manager"
RD /S /Q "C:\Program Files\Common Files\SolidWorks Shared"
RD /S /Q "C:\Program Files (x86)\Common Files\eDrawings"
RD /S /Q "C:\Program Files (x86)\Common Files\SolidWorks Installation Manager"
RD /S /Q "C:\Program Files (x86)\Common Files\SolidWorks Shared"
RD /S /Q "C:\Program Files (x86)\SolidWorks Shared"
RD /S /Q "%USERPROFILE%\Documents\SolidWorks Downloads\SolidWorks*"
RD /S /Q "%USERPROFILE%\AppData\Local\Microsoft\VSTAHost\SolidWorks_VSTA"
RD /S /Q "%USERPROFILE%\AppData\Local\Temp\Solidworks"
RD /S /Q "%USERPROFILE%\AppData\Local\SolidWorks"
RD /S /Q "%USERPROFILE%\AppData\Local\TempSWBackupDirectory"
RD /S /Q "%USERPROFILE%\AppData\Roaming\SolidWorks"
RD /S /Q "%USERPROFILE%\AppData\Roaming\Microsoft\VSTAHost\SolidWorks_VSTA"
RD /S /Q "C:\Windows\SolidWorks"
RD /S /Q "C:\Program Files\XPLM Solution GmbH"
RD /S /Q "C:\Program Files\Dassault Systemes"
Here is the 2022 version of the uninstall bat
:Uninstall Solidworks 2022, 3D Experience and Agile Connector
MsiExec.exe /X{0060450C-5B44-424B-BD42-559F2A5D820A} /qn
MsiExec.exe /X{071A526E-BED1-44D2-B2B5-FE20B26F5F6D} /qn
MsiExec.exe /X{175BC9FC-C256-4EFC-9D87-4A9AF3B47A12} /qn
MsiExec.exe /X{26EA0056-4BAD-4F9E-BDCE-A72E25C7D06D} /qn
MsiExec.exe /X{3E27B568-5969-4B76-BDD5-739B4FC7E61C} /qn
MsiExec.exe /X{46053718-2931-47EA-B678-6DF08370F2D4} /qn
MsiExec.exe /X{54DF002F-CDCE-40B2-8E2A-E294333EE6EB} /qn
MsiExec.exe /X{58BEDD50-0DAB-4BBD-AF66-62A93C77F8AF} /qn
MsiExec.exe /X{77759590-CB58-47F8-9C44-6DC2F07274D9} /qn
MsiExec.exe /X{78E1A395-FD21-499A-91A2-6135BA6112B6} /qn
MsiExec.exe /X{7C7F5F30-DF78-47A4-9593-D624D8ADF52D} /qn
MsiExec.exe /X{A9F14961-697D-455C-B48B-FCE9E22664A5} /qn
MsiExec.exe /X{E1C7FBC9-5D5C-4C5F-BE99-185E8576BC5B} /qn
MsiExec.exe /X{E3B4130E-6066-4613-918C-6EB5E7B68D8C} /qn
MsiExec.exe /X{E5A7DAD6-65DE-4DDA-8240-D49168365FF2} /qn
MsiExec.exe /X{EB00B3B9-B938-4123-9BDC-F7CD57128E16} /qn
MsiExec.exe /X{EBFF07B4-D9ED-4395-B6C7-D83C44FF2216} /qn
MsiExec.exe /X{3D63579F-2398-418B-9227-A852FB201D2D} /qn
MsiExec.exe /X{0B2C58EB-67A2-225B-60B2-D1990E55DD33} /qn
MsiExec.exe /X{3D63579F-2398-418B-9227-A852FB201D2D} /qn
:Uninstall Draftsite 2022
MsiExec.exe /X{D5F577EE-B2AF-4006-9552-0FE145830286} /qn
"C:\windows\SolidWorks\IM_20220-40500-1100-100\sldim\sldim.exe" /remove "C:\windows\SolidWorks\IM_20220-40500-1100-100\sldim\sldIM_installed.xml"
:Registry Clean
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\eDrawings" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\SOLIDWORKS 2022" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\SolidWorks BackOffice" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\SRAC" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSTAHOST" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSTAHostConfig" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\eDrawings" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\SolidWorks" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Srac" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\XPLM Solution GmbH" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SolidWorks" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTAHOST" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTAHostConfig" /f
REG DELETE "HKEY_CLASSES_ROOT\SOLIDWORKS Installation Manager" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{BF6EED04-A253-4088-8340-575BAC150320}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\1B61262840F0B9043AE36C0A40AA0179\SourceList" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\BE85C2B02A76B522062B1D99E055DD33\SourceList" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SOLIDWORKS Installation Manager" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6B2E341B-AFA3-4105-A24A-F080EDE43609}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{94A80D21-7300-40EE-B14A-F7DBA212B6A9}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{A0AB0348-0AD5-49D4-BBA6-1C09A68888F5}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\SolidWorks Installation Manager 20210-40500-1100-100" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{3D63579F-2398-418B-9227-A852FB201D2D}" /f
:Folder Clean Up
RD /S /Q "C:\SolidWorks DATA"
RD /S /Q "C:\ProgramData\COSMOS Applications\*"
RD /S /Q "C:\ProgramData\SolidWorks"
RD /S /Q "C:\ProgramData\SolidWorks Electrical"
RD /S /Q "C:\ProgramData\SolidWorks Flow Simulation"
RD /S /Q "C:\Program Files\SolidWorks Corp"
RD /S /Q "C:\Program Files\Common Files\eDrawings*"
RD /S /Q "C:\Program Files\Common Files\SolidWorks Installation Manager"
RD /S /Q "C:\Program Files\Common Files\SolidWorks Shared"
RD /S /Q "C:\Program Files (x86)\Common Files\eDrawings"
RD /S /Q "C:\Program Files (x86)\Common Files\SolidWorks Installation Manager"
RD /S /Q "C:\Program Files (x86)\Common Files\SolidWorks Shared"
RD /S /Q "C:\Program Files (x86)\SolidWorks Shared"
RD /S /Q "%USERPROFILE%\Documents\SolidWorks Downloads\SolidWorks*"
RD /S /Q "%USERPROFILE%\AppData\Local\Microsoft\VSTAHost\SolidWorks_VSTA"
RD /S /Q "%USERPROFILE%\AppData\Local\Temp\Solidworks"
RD /S /Q "%USERPROFILE%\AppData\Local\SolidWorks"
RD /S /Q "%USERPROFILE%\AppData\Local\TempSWBackupDirectory"
RD /S /Q "%USERPROFILE%\AppData\Roaming\SolidWorks"
RD /S /Q "%USERPROFILE%\AppData\Roaming\Microsoft\VSTAHost\SolidWorks_VSTA"
RD /S /Q "C:\Windows\SolidWorks"
RD /S /Q "C:\Program Files\XPLM Solution GmbH"
RD /S /Q "C:\Program Files\Dassault Systemes"
Rather than itemise every regkey for every different version that comes out, you can use:
$CHECK_UNINSTALL_64BIT = Get-ItemProperty 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' | Select-Object DisplayName, DisplayVersion, UninstallString, PSChildName | Where-Object { $_.DisplayName -Like "*SOLIDWORKS*"}
foreach ($item in $CHECK_UNINSTALL_64BIT) {
$uninstallString = $($item.PSChildName)
if ($uninstallString) {
Write-Host "Uninstalling $($item.DisplayName)"
Write-Host "Regkey is $UninstallString"
Start-Process -FilePath msiexec -ArgumentList "/x `"$UninstallString`" /qn" -Wait
}
else {
Write-Host "No existing versions" }
}
However as identified in the OP that doesn't remove the Installation Manager and that will cause you issues if you're downgrading (it's happy to put a newer version on, not an older one if the newer Installation Manager still exists). The Installation Manager exists in the 32-bit hive HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\.
If you're looking to remove existing versions before deploying a new version (ie: via Intune as this saves you from downloading the old 25GB installer - just to remove it) then you can use the startswinstall.exe to remove everything including the Installation Manager - silently:
Start-Process -FilePath "$PSScriptRoot\SOLIDWORKS 20XX SPX.0\startswinstall.exe" -ArgumentList "/Uninstall /removedata /removeregistry /now" -Wait
A little late to the game on this one but this is my automated Solidworks uninstaller for version 2021 you can find the msi app codes in these parts of the registry for past and future versions: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
:Uninstall Apps
MsiExec.exe /X{00221B31-30B0-45BD-A59D-857166BDE960} /qn
MsiExec.exe /X{0060450C-5B44-424B-BD42-559F2A5D820A} /qn
MsiExec.exe /X{04580D55-AAB7-420C-805F-E6622B0ABE52} /qn
MsiExec.exe /X{07C0BFE1-3291-409C-B96A-797340719C8F} /qn
MsiExec.exe /X{0C923A29-B996-44A1-BB46-29A52FD7E430} /qn
MsiExec.exe /X{0EAE9027-13CF-444F-B28E-814237E968A4} /qn
MsiExec.exe /X{38720B59-8277-4DB6-90FD-B070DBD81995} /qn
MsiExec.exe /X{4BC2E893-D210-4A8C-9DC2-7DEB9DC8C8DD} /qn
MsiExec.exe /X{5ADD8EC6-ABFA-498D-8ACC-A678A166A222} /qn
MsiExec.exe /X{6E3610B2-430D-4EB0-81E3-2B57E8B9DE8D} /qn
MsiExec.exe /X{8B08B929-B840-474F-81E6-419C933A4766} /qn
MsiExec.exe /X{9063A7FB-9B55-49EB-A464-6D27E658A8DF} /qn
MsiExec.exe /X{9C0A2571-4AAE-4FEE-B673-038B38B85EFC} /qn
MsiExec.exe /X{A8E011F9-AB58-4C9C-AB8C-7435C7E04FEB} /qn
MsiExec.exe /X{BC6FEA11-71C2-4D72-A909-2A94B1179DA3} /qn
MsiExec.exe /X{C2201C33-644D-426C-ABFE-1F5FB84231CE} /qn
MsiExec.exe /X{C493AED2-A596-43E9-9F47-446B35978A42} /qn
MsiExec.exe /X{CEA515BC-5AA7-42FA-9D83-F3237B71CC41} /qn
MsiExec.exe /X{D6B7D304-2653-4EA8-A2AF-A1FE730DE04F} /qn
MsiExec.exe /X{D8BDFFA2-1AAB-47BA-81DC-B0B9FD599948} /qn
MsiExec.exe /X{EFF51C01-6447-44F1-B1C6-567BA8E08A3C} /qn
MsiExec.exe /X{826216B1-0F04-409B-A33E-C6A004AA1097} /qn
MsiExec.exe /X{0B2C58EB-67A2-225B-60B2-D1990E55DD33} /qn
MsiExec.exe /X{826216B1-0F04-409B-A33E-C6A004AA1097} /qn
MsiExec.exe /X{3D63579F-2398-418B-9227-A852FB201D2D} /qn
:Registry Clean
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\eDrawings" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\SOLIDWORKS 2021" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\SolidWorks BackOffice" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\SRAC" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSTAHOST" /f
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSTAHostConfig" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\eDrawings" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\SolidWorks" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Srac" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\XPLM Solution GmbH" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SolidWorks" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTAHOST" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VSTAHostConfig" /f
REG DELETE "HKEY_CLASSES_ROOT\SOLIDWORKS Installation Manager" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{BF6EED04-A253-4088-8340-575BAC150320}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\1B61262840F0B9043AE36C0A40AA0179\SourceList" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\BE85C2B02A76B522062B1D99E055DD33\SourceList" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SOLIDWORKS Installation Manager" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6B2E341B-AFA3-4105-A24A-F080EDE43609}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{94A80D21-7300-40EE-B14A-F7DBA212B6A9}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{A0AB0348-0AD5-49D4-BBA6-1C09A68888F5}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\SolidWorks Installation Manager 20210-40500-1100-100" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{3D63579F-2398-418B-9227-A852FB201D2D}" /f
: Folder Clean Up
RD /S /Q "C:\SolidWorks DATA"
RD /S /Q "C:\ProgramData\COSMOS Applications\*"
RD /S /Q "C:\ProgramData\SolidWorks"
RD /S /Q "C:\ProgramData\SolidWorks Electrical"
RD /S /Q "C:\ProgramData\SolidWorks Flow Simulation"
RD /S /Q "C:\Program Files\SolidWorks Corp"
RD /S /Q "C:\Program Files\Common Files\eDrawings*"
RD /S /Q "C:\Program Files\Common Files\SolidWorks Installation Manager"
RD /S /Q "C:\Program Files\Common Files\SolidWorks Shared"
RD /S /Q "C:\Program Files (x86)\Common Files\eDrawings"
RD /S /Q "C:\Program Files (x86)\Common Files\SolidWorks Installation Manager"
RD /S /Q "C:\Program Files (x86)\Common Files\SolidWorks Shared"
RD /S /Q "C:\Program Files (x86)\SolidWorks Shared"
RD /S /Q "%USERPROFILE%\Documents\SolidWorks Downloads\SolidWorks*"
RD /S /Q "%USERPROFILE%\AppData\Local\Microsoft\VSTAHost\SolidWorks_VSTA"
RD /S /Q "%USERPROFILE%\AppData\Local\Temp\Solidworks"
RD /S /Q "%USERPROFILE%\AppData\Local\SolidWorks"
RD /S /Q "%USERPROFILE%\AppData\Local\TempSWBackupDirectory"
RD /S /Q "%USERPROFILE%\AppData\Roaming\SolidWorks"
RD /S /Q "%USERPROFILE%\AppData\Roaming\Microsoft\VSTAHost\SolidWorks_VSTA"
RD /S /Q "C:\Windows\SolidWorks"