CMD Script…
@echo off
CLS
SETLOCAL
set APPNAME=3dsMax2010
set LOG=%TMP%\%APPNAME%_uninstall.log
set MSI=/quiet /norestart
echo %DATE% %TIME% installing... %APPNAME%... >%LOG%
echo %DATE% %TIME% source....... %~dps0 >>%LOG%
echo %DATE% %TIME% target....... %COMPUTERNAME% >>%LOG%
echo %DATE% %TIME% windir....... %WINDIR% >>%LOG%
echo %DATE% %TIME% progfiles.... %PROGRAMFILES% >>%LOG%
echo %DATE% %TIME% temp......... %TMP% >>%LOG%
echo ----------------------------------------------- >>%LOG%
echo Checking if 3ds Max 2010 is installed >>%LOG%
if exist "%programfiles%\Autodesk\3ds Max 2010" GoTo REMOVE
goto NOTFOUND
goto END
:NOTFOUND
echo %DATE% %TIME% 3DS Max 2010 was not detected on this computer
goto END
:REMOVE
echo %DATE% %TIME% removing 3ds Max 2010 32-bit >>%TMP%\3dsmax2010uninst.log
echo command = msiexec.exe /x {317AC0C7-FEBF-0409-87A3-4FC70D0ED900} %MSI% >>%LOG%
msiexec.exe /x {317AC0C7-FEBF-0409-87A3-4FC70D0ED900} %MSI%
rem ------------------------------------------------------
echo %DATE% %TIME% removing 3ds Max 2010 32-bit Components >>%TMP%\3dsmax2010uninst.log
echo command = msiexec.exe /x {60A08432-00DD-0409-AC2C-143C75460878} %MSI% >>%LOG%
msiexec.exe /x {60A08432-00DD-0409-AC2C-143C75460878} %MSI%
rem ------------------------------------------------------
echo %DATE% %TIME% removing Backburner 2008.01 >>%TMP%\3dsmax2010uninst.log
echo command = msiexec.exe /x {3D347E6D-5A03-4342-B5BA-6A771885F379} %MSI% >>%LOG%
msiexec.exe /x {3D347E6D-5A03-4342-B5BA-6A771885F379} %MSI%
rem ------------------------------------------------------
echo %DATE% %TIME% removing Tutorials Files >>%TMP%\3dsmax2010uninst.log
echo command = msiexec.exe /x {E551D82D-4D56-4AF7-A2C9-8897D7A0CB00} %MSI% >>%LOG%
msiexec.exe /x {E551D82D-4D56-4AF7-A2C9-8897D7A0CB00} %MSI%
rem ------------------------------------------------------
echo %DATE% %TIME% removing FBX Plugin 2009.4 - 3ds Max 2010 >>%TMP%\3dsmax2010uninst.log
c:
cd "%programfiles%\Autodesk\"
echo command = "FBX\FBXPlugins\2009.4\3ds Max 2010\Uninstall.exe" /S >>%LOG%
"FBX\FBXPlugins\2009.4\3ds Max 2010\Uninstall.exe" /S
goto CLEANUP
goto END
:CLEANUP
echo %DATE% %TIME% cleaning up leftover folders and files >>%LOG%
c:
if exist "%programfiles%\Autodesk\3ds Max 2010" (
echo Removing 3ds Max 2010 sub-folder >>%LOG%
cd "%programfiles%\Autodesk"
rd "3ds Max 2010" /s /q
)
if exist "%programfiles%\Autodesk\FBX" (
echo Removing FBX sub-folder >>%LOG%
cd "%programfiles%\Autodesk"
rd "FBX" /s /q
)
rem ------------------------------------------------------
echo %DATE% %TIME% exit code %errorlevel% >>%LOG%
echo %DATE% %TIME% completed >>%LOG%
goto END
:END
exit %errorlevel%
No comments:
Post a Comment