@echo off set AppName=Adobe Creative Suite Design Premium 6.0 64bit (EN) - 001
:: Path for logfiles. Change for your company set Logs=%SystemDrive%\Logs if exist %SystemDrive%\Wininst set Inst=%SystemDrive%\Wininst if exist %SystemDrive%\Srv08inst set Inst=%SystemDrive%\Srv08inst set Logs=%Inst%\Logs if not exist %Logs% MD %Logs% set LogFile=%Logs%\%AppName%.log set LogFinal=%Logs%\finalcheck.log
:: Installation if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto AMD64 if /i "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto AMD64 if /i "%PROCESSOR_ARCHITECTURE%"=="x86" goto x86 echo %date% %time% ERROR: Processor Architecture "%PROCESSOR_ARCHITECTURE%" unknown >>"%LogFile%" goto Error
:x86 (It is just a 64bit package)
goto End
:AMD64 echo %date% %time% Installation of %AppName% >>"%LogFile%" cd /D %~dp0 :: Adobe Air "%~dp0Exceptions\AdobeDreamweaverWidgetsBrowser1.0-mul\AdobeAIRInstaller.exe" -silent -eulaAccepted reg add "HKLM\SOFTWARE\Policies\Adobe\AIR" /v UpdateDisabled /t REG_DWORD /d 1 /f IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0 IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0 IF %ERRORLEVEL% NEQ 0 goto Error
:: Adobe Helper "%~dp0Exceptions\AdobeHelp\InstallAdobeHelp.exe" appVersion=4.0.244 appId=chc pubId=4875E02D9FB21EE389F73B8D1702B320485DF8CE.1 installerArg1=-silent installerArg2=-eulaAccepted installerArg3=-programMenu installerArg4=AdobeHelp.air IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0 IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0 IF %ERRORLEVEL% NEQ 0 goto Error
:: Adobe PDF Settings msiexec.exe /i "%~dp0Exceptions\AdobePDFSettings11-mul\AdobePDFSettings11-mul.msi" /qn IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0 IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0 IF %ERRORLEVEL% NEQ 0 goto Error
:: Adobe Media Player msiexec.exe /i "%~dp0Exceptions\Adobe Media Player\Adobe Media Player\AdobeMedia.msi" TRANSFORMS="%~dp0prereq\Adobe Media Player\custom.mst" /qn IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0 IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0 IF %ERRORLEVEL% NEQ 0 goto Error
:: Adobe Creative Suite CS6 msiexec.exe /QN /L* "%Logs%\%AppName%.msi.log" /i "%~dp0Build\Adobe CS Design Premium 6.0 64bit (DE) - 001.msi" REBOOT=ReallySuppress IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0 IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0 IF %ERRORLEVEL% NEQ 0 goto Error
:: Adobe Acrobat Reader Pro X msiexec.exe /QN /L* "%Logs%\%AppName%.msi.log" /i "%~dp0Exceptions\AcrobatProfessional10.0-EFG\AcroPro.msi" EULA_ACCEPT=YES REGISTRATION_SUPPRESS=YES SUITEMODE=1 INSTALLLEVEL=101 AS_DISABLE_LEGACY_COLOR=1 IGNOREAAM=1 TRANSFORMS="%~dp0Exceptions\AcrobatProfessional10.0-EFG\en_US.mst" REBOOT=ReallySuppress IF %ERRORLEVEL% EQU 3010 set ERRORLEVEL=0 IF %ERRORLEVEL% EQU 259 set ERRORLEVEL=0 IF %ERRORLEVEL% NEQ 0 goto Error regedit /s "%~dp0AddAcrobatX_Machine.reg" goto cleanup
:: Cleanup --> Change for your company :Cleanup if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe" rmdir /q /s "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe" if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Acrobat Distiller X.lnk" move /y "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Acrobat Distiller X.lnk" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Design Standard CS6\Adobe Acrobat Distiller X.lnk" if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Acrobat X Pro.lnk" move /y "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Acrobat X Pro.lnk" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Design Standard CS6\Adobe Acrobat X Pro.lnk" if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe LiveCycle ES2\Adobe LiveCycle Designer ES2.lnk" copy /y "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe LiveCycle ES2\Adobe LiveCycle Designer ES2.lnk" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe Design Standard CS6\Adobe LiveCycle Designer ES2.lnk" if exist "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe LiveCycle ES2" rmdir /q /s "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Adobe LiveCycle ES2" if exist "%PUBLIC%\Desktop\Adobe Acrobat X Pro.lnk" del /f /q "%PUBLIC%\Desktop\Adobe Acrobat X Pro.lnk"
:: Errorhandler goto End :Error echo %date% %time% %AppName% >>"%LogFinal%" if %errorlevel% EQU 1 echo ERROR 1 - [NOT-SUCCESS] - Fatal Error >>"%LogFinal%" if %errorlevel% EQU 13 echo ERROR 13 - [INVALID_DATA] - The data is invalid >>"%LogFinal%" if %errorlevel% EQU 87 echo ERROR 87 - [INVALID_PARAMETER] - One of the parameters was invalid. >>"%LogFinal%" if %errorlevel% EQU 1601 echo ERROR 1601 - [FAILURE] - The Windows Installer service could not be accessed >>"%LogFinal%" if %errorlevel% EQU 1602 echo ERROR 1602 - [INSTALL_USEREXIT] - User cancel installation >>"%LogFinal%" if %errorlevel% EQU 1603 echo ERROR 1603 - [INSTALL_FAILURE] - Fatal error during installation >>"%LogFinal%" if %errorlevel% EQU 1604 echo ERROR 1604 - [INSTALL_SUSPEND] - Installation suspended, incomplete >>"%LogFinal%" if %errorlevel% EQU 1608 echo ERROR 1608 - [UNKNOWN_PROPERTY] - Unknown property >>"%LogFinal%" if %errorlevel% EQU 1610 echo ERROR 1610 - [BAD_CONFIGURATION] - The configuration data for this product is corrupt >>"%LogFinal%" if %errorlevel% EQU 1612 echo ERROR 1612 - [INSTALL_SOURCE_ABSENT] - The installation source for this product is not available >>"%LogFinal%" if %errorlevel% EQU 1613 echo ERROR 1613 - [INSTALL_PACKAGE_VERSION] - Servicepack required >>"%LogFinal%" if %errorlevel% EQU 1618 echo ERROR 1618 - [INSTALL_ALREADY_RUNNING] - Another installation is already in progress >>"%LogFinal%" if %errorlevel% EQU 1619 echo ERROR 1619 - [_INSTALL_PACKAGE_OPEN] - This installation package could not be opened >>"%LogFinal%" if %errorlevel% EQU 1621 echo ERROR 1621 - [INSTALL_UI_ERROR] -There was an error starting the Windows Installer >>"%LogFinal%" if %errorlevel% EQU 1624 echo ERROR 1624 - [INSTALL_TRANSFORM_FAILURE] - Error applying transforms >>"%LogFinal%" if %errorlevel% EQU 1639 echo ERROR 1639 - [INVALID_COMMAND_LINE] - Invalid command line argument >>"%LogFinal%" if %errorlevel% EQU 3010 echo ERROR 3010 - [SUCCESS_REBOOT_REQUIRED] - A restart is required to complete >>"%LogFinal%" echo %date% %time% ERROR: %ERRORLEVEL% >>"%LogFile%" echo Error: %ERRORLEVEL% if exist "%Logs%\finalcheck.log" copy /y "%Inst%\Scripts\BITTE ANSCHAUEN.lnk" "%PUBLIC%\Desktop\BITTE ANSCHAUEN.lnk" echo.
:: End of Script :End echo %date% %time% End installation of %AppName% >>"%LogFile%" echo End
|
Comments