Skip to main content
PetriRiihikallio
Known Participant
January 22, 2014
Question

Automating installation of CCP packages for Windows

  • January 22, 2014
  • 3 replies
  • 3496 views

I wanted to automate installing pre-Exceptions, Build and post-Exceptions. It turned out to be more complicated than I expected since I wanted to run my batch file from an UNC path. Anyhow, I got it to work. Why can't CC Packager create a file like this? This should work for any setup. The only change you need make is the Acrobat installation language. The CC Packager does know this when it creates the package, so even this could be automated.

Place this script as setupCC.bat in the topmost directory of the installation package created with CCPackager.

If you have any improvements or other comments, please let me know. Enjoy!

- - - - 8< - - - - 8<- - - - 8<- - - - 8<- - - - 8<- - - - 8<- - - - 8<- - - - 8<- - - - 8<- - - - 

REM The first CLS will clear the error about UNC paths
echo off
cls

REM Adobe Creative Cloud installer
REM by Petri Riihikallio 21.1.2014 v.1.0

REM This file must be run in the topmost directory created by CCP with Build and Exceptions as subdirectories
REM Acrobat installation language is the only setting that must be edited

set AcroLang=en_US

echo Acrobat installation language is %AcroLang%

REM This pushd trick will allow running this script from an UNC path
pushd %~dp0

set Step=1
if not exist Exceptions goto ErroMsg
cd Exceptions

set Step=2
if not exist ExceptionDeployer.exe goto ErroMsg
ExceptionDeployer --workflow=install --mode=pre --installLanguage=%AcroLang%

set Step=3
cd ..
if not exist Build goto ErroMsg
cd Build

set Step=4
if not exist setup.exe goto ErroMsg
setup.exe

cd ..\Exceptions
ExceptionDeployer --workflow=install --mode=post

goto CleanUp

:ErroMsg
Echo Got lost at step %Step% :o/ Is this BAT file in the correct directory?

:CleanUp
popd

This topic has been closed for replies.

3 replies

PetriRiihikallio
Known Participant
December 27, 2014

I have updated my script to suppress the EULA and registration for MUSE, Lightroom and Acrobat. This requires the Adobe Provisioning Toolkit, which you must download and install separately. (Why isn't it included in the package? Why?) You need to edit the script to change the path to adobe_prtk.exe. I am using a relative path, but you might find an absolute path easier to maintain. While you debug this, you may want to add a "pause" line at the end of the script so you'll have time to read the output.

This script seems to be a moving target as Adobe keeps changing the installation. I might find some other place to publish this, but I'll let you know.

If you find this useful, please click on the Like button or rate this post so others will find it as well.

- - - - 8< - - - - 8<- - - - 8<- - - - 8<- - - - 8<- - - - 8<- - - - 8<- - - - 8<- - - - 8<- - - -

echo off

REM The first CLS will clear the error about UNC paths

cls

REM Adobe Creative Cloud installer

REM (c) Petri Riihikallio 20.10.2014 v.2.0

REM You may use this as you like as long as I am credited for my work.

REM This file must be run as administrator in the topmost directory created

REM by CCP with Build and Exceptions as subdirectories.

REM You need to set Acrobat installation language and the location of the

REM Adobe Provisioning Toolkit. I am using a relative path for the PrTk,

REM so it needs to be relative to "Exceptions" folder. You can use an

REM absolute path like K:\tools\adobe_prtk.exe

set Lang=en_US

set PrTK=..\..\adobe_prtk.exe

REM This pushd trick will allow running this script from an UNC path

pushd %~dp0

set Step=1

if not exist Exceptions goto ErrMsg

cd Exceptions

set Step=2

if not exist ExceptionDeployer.exe goto ErrMsg

ExceptionDeployer --workflow=install --mode=pre --installLanguage=%Lang%

set Step=3

cd ..

if not exist Build goto ErrMsg

cd Build

set Step=4

if not exist setup.exe goto ErrMsg

setup.exe /sPB /l /sl %Lang%

cd ..\Exceptions

echo Exceptions Post-pass

ExceptionDeployer --workflow=install --mode=post

REM Still in the Exceptions folder, we need to check which apps were

REM included and suppress registration and eula

if not exist *MUSE* goto Lightroom

%PrTk% --tool=EULA --leid=V7{}Muse-80-Win-GM --eulasuppress

%PrTk% --tool=Register --leid=V7{}Muse-80-Win-GM --regsuppress=ss

:Lightroom

if not exist *LTRM* goto Acrobat

%PrTk% --tool=EULA --leid=V7{}Lightroom-55-Win-GM --eulasuppress

%PrTk% --tool=Register --leid=V7{}Lightroom-55-Win-GM --regsuppress=ss

:Acrobat

if not exist *Acrobat* goto CleanUp

%PrTk% --tool=EULA --leid=V6{}AcrobatPro-AS2-Win-GM --eulasuppress

%PrTk% --tool=Register --leid=V6{}AcrobatPro-AS2-Win-GM --regsuppress=ss

goto CleanUp

:ErrMsg

echo Got lost at step %Step% :o/ Is this BAT file in the correct directory?

:CleanUp

popd

pause

PetriRiihikallio
Known Participant
August 24, 2014

Oh, I should have documented that we are installing on fresh machines only. We are running a training facility and the lab computers are wiped clean regularly and installed anew. That's why there won't ever be any old versions to remove.

Participant
March 18, 2014

Thanks for this, it did give me some smooth installation of Photoshop. However, are you using this on a single package? I've been trying to script a silent install of Photoshop and Acobat XI for weeks now however whenenver I try to make the silent install of Acrobat, it fails every time. However the rest of the script for any other Adobe product works well.

Thanks for this post.

PetriRiihikallio
Known Participant
August 24, 2014

Sorry for the long delay, I hadn't been paying attention to this forum.

I have two kinds of packages using this script. The other one is full CC install and the other one is Acrobat XI only. Both install silently and correctly with this script.

Can you describe the kind of failure you are experiencing? Do you get an error message? What is in the install log?