Sample Batch Files

Reference examples of installation batch files.

To install a product without any user interaction, the UAC option must be turned off. Otherwise, the UAC confirmation dialog box will appear, and you will have to click YES to proceed.

The sample batch files in this section install AutoCAD, as an example. To make it easy to copy this sample batch file and substitute your own information, the same names are used throughout for variables.

Notes

<mediaDriveLetter> is the drive letter where the media is mounted or the setup.exe file is stored

Install options used here include /t (setup is executed by script) and /qb (display a basic user interface). Others such as /w (log nonfatal warnings) are defined for Microsoft Msiexec command line, and documented on the MS TechNet website.

<SerialPrefix> is the first 3 digits of the serial number

<SerialPostfix> is the last 8 digits of the serial number

<ProdKey> is the Product Key

ReallySuppress prevents the system from rebooting once the installation is complete

<lang> is the IETF language tag, for example en-US for English-United States

<eula_lang> is the ISO 3166-1 alpha-2 standard for the country for example US = United States

Stand-Alone License

<mediaDriveLetter>\setup.exe /t /qb /language <lang> /c 
ACAD: INSTALLDIR="%programFiles%\Autodesk\AutoCAD 2015"
ACADSERIALPREFIX=<SerialPrefix>ACADSERIALNUMBER=<SerialPostfix>  
ADLM_PRODKEY=<ProdKey> ADLM_EULA_COUNTRY=<eula_lang>  InstallLevel=5
Example:
C:\setup.exe /t /qb /language en-us /c 
ACAD: INSTALLDIR="%programFiles%\Autodesk\AutoCAD 2015" 
ACADSERIALPREFIX=123 ACADSERIALNUMBER=12345678  
ADLM_PRODKEY=001E1 ADLM_EULA_COUNTRY=US  InstallLevel=5

Single Server Network License

<mediaDriveLetter>\setup.exe /t /qb /language <lang> /c 
ACAD: INSTALLDIR="%programFiles%\Autodesk\AutoCAD 2015" 
ACADSERIALPREFIX=<SerialPrefix>ACADSERIALNUMBER=<SerialPostfix> 
ADLM_PRODKEY=<ProdKey> ADLM_EULA_COUNTRY=<eula_lang> InstallLevel=5 
ACADSTANDALONENETWORKTYPE="3" ACADLICENSESERVERTYPE="Single Server License" 
ACADLICENSETYPE="Network License" ACADSERVERPATH="<FlexLicenseServer> 000000000000"

Notes

For network licenses, ACADSTANDALONENETWORKTYPE identifies the type of license being installed. It has three possible values: 0 for both network and stand-alone, 1 for stand-alone, and 3 for network.

<FlexLicenseServer> is the network license server.

Redundant Server Network License

<mediaDriveLetter>\setup.exe /t /qb /language <lang> /c 
ACAD: INSTALLDIR="%programFiles%\Autodesk\AutoCAD 2015" 
ACADSERIALPREFIX=<SerialPrefix>ACADSERIALNUMBER=<SerialPostfix> 
ADLM_PRODKEY=<ProdKey> ADLM_EULA_COUNTRY=<eula_lang> InstallLevel=5 
ACADSTANDALONENETWORKTYPE="3" ACADLICENSESERVERTYPE="Redundant Server License" ACADLICENSETYPE="Network License" 
ACADSERVERPATH="<server1> 000000000000 27005;<server2> 000000000000 27005;<server3> 000000000000 27005;"

Notes

<server1> thru <server3> are valid network license servers with redundant licenses.