AutoCAD Silent Uninstall
I have not been able to successfully get AutoCAD 2013 uninstalled. Does anyone have any tips to get it installed? This is what I am using as a bat. file
::The following command lines allow un-installing products that were installed using this admin image
:: Notes on suggested usage:
:: + Copy the commands to a batch file to execute.
:: + The commands must be run with Administrative Privileges, e.g. right-click when opening Command Prompt and accept UAC
::========================================================================================
::Prepare uninstallation's command-line options
::========================================================================================
::Set the output file for uninstallation's log data
::DEFAULT: a log file with the same filename but with extension .log
:: is created in the Windows temporary folder (environment variable TEMP)
set msi_log_file_path="%TEMP%\%~n0.log"
::Delete the current log file
if exist %msi_log_file_path% del /Q %msi_log_file_path%
::Set the path for the network log file
set network_log_folder=""
md %network_log_folder%
set network_log_file_path="%network_log_folder%%~n0_Admin.log"
echo ========================== %Date% %Time% =========================== >> %network_log_file_path%
echo Uninstallation Started on Computer Name: %COMPUTERNAME%, Username: %USERNAME%, Domain: %USERDNSDOMAIN% >> %network_log_file_path%
::DEFAULT: silent uninstallation
set non_silent_mode=/norestart /L*+ %msi_log_file_path% REMOVE=ALL REBOOT=ReallySuppress ADSK_SETUP_EXE=1
set silent_mode=/quiet %non_silent_mode%
set uninstallation_mode=%silent_mode%
::========================================================================================
::Helper Functions
::========================================================================================
goto END_FUNCTIONS_SECTION_
:BEGIN_FUNCTIONS_SECTION_
::---------------------------------
::Performs uninstallation and reports failure in the Network Log File
::---------------------------------
:funcUninstall
setlocal
set msi_ERROR_SUCCESS=0
set product_code=%~1
set product_name=%~2
msiexec /uninstall %product_code% %uninstallation_mode%
if %errorlevel%==%msi_ERROR_SUCCESS% goto SUCCESS_
:ERROR_
::------------------------------------------
::print out Machine Name, product code, product name
::to the network log file for the product that failed to uninstall
set uninstallation_result=Failed, Result=%errorlevel%
goto DONE_
:SUCCESS_
set uninstallation_result=Succeeded
goto DONE_
:DONE_
echo %Date% %Time% %USERNAME% %COMPUTERNAME% Uninstall %product_name% (Product Code: %product_code%) %uninstallation_result% >> %network_log_file_path%
endlocal
GOTO:EOF
:END_FUNCTIONS_SECTION_
::========================================================================================
::Uncomment (by removing the ::) the command lines below to uninstall products
::========================================================================================
::::== Autodesk Inventor Fusion plug-in for AutoCAD 2013
call :funcUninstall {82C1E6E4-6718-4EFD-9DCC-E276D690EF46}, "Autodesk Inventor Fusion plug-in for AutoCAD 2013"
::::== Autodesk Mudbox 2013 64-bit
call :funcUninstall {3FBFBC43-9882-43FA-B979-2D53896747B3}, "Autodesk Mudbox 2013 64-bit"
::::== Autodesk Showcase 2013 64-bit
call :funcUninstall {8ED2ED41-4455-449D-993C-751C039089B9}, "Autodesk Showcase 2013 64-bit"
::::== AutoCAD 2013 Help - English
call :funcUninstall {5783F2D7-B034-0409-0100-0060B0CE6BBA}, "AutoCAD 2013 Help - English"
::::== Autodesk SketchBook Designer 2013
call :funcUninstall {23A13F78-5B67-441A-ABF9-48BE8B5455DB}, "Autodesk SketchBook Designer 2013"
::::== Autodesk SketchBook Designer for AutoCAD 2013
call :funcUninstall {28B89EEF-0001-0409-1102-CF3F3A09B77D}, "Autodesk SketchBook Designer for AutoCAD 2013"
::::== Autodesk Content Service
call :funcUninstall {28B89EEF-0004-0000-5102-CF3F3A09B77D}, "Autodesk Content Service"
::::== Autodesk Design Review 2013
call :funcUninstall {28B89EEF-0001-0000-3102-CF3F3A09B77D}, "Autodesk Design Review 2013"
::::== AutoCAD 2013 - English
call :funcUninstall {5783F2D7-B001-0000-0102-0060B0CE6BBA}, "AutoCAD 2013 - English"
::::== Autodesk SketchBook Designer 2013
call :funcUninstall {3CB60177-D3D2-4E9C-BE4D-8372B34B4C7F}, "Autodesk SketchBook Designer 2013"
Comments