Audience | Administrator |
You can use batch files with installation scripts to distribute programs to computers in a network. Each file consists of one or more commands with command switches that modify those options. An installation script uses paths to point to the location of the product's setup.exe file. This file must reside on your installation media or at a network location. You must have Administrator permissions on the computers on which you install the products.
Msiexec.exe [product].msi ADAOPTIN=0 ADAOVERRIDED=1To opt-in for all users in your deployment, include this command in your script:
Msiexec.exe [product].msi ADAOPTIN=1 ADAOVERRIDED=1
Use batch file templates to install Autodesk products in typical configurations for stand-alone or network licensed versions. Copy the template and replace variables with appropriate values for the products that you're installing. Although the batch file templates shown here include multiple lines of code, in actual practice you should write each file as a single line of instructions.
Definitions of terms used in these templates appear at the end of this topic.
<mediaDriveLetter>\setup.exe /t /qb /language <lang> /c <Product ID>: INSTALLDIR="%programFiles%\Autodesk\<Product Name>" ACADSERIALPREFIX=<SerialPrefix> ACADSERIALNUMBER=<SerialPostfix> ADLM_PRODKEY=<ProdKey> ADLM_EULA_COUNTRY=<eula_lang> InstallLevel=5 ACADSTANDALONENETWORKTYPE="1"
<mediaDriveLetter>\setup.exe /t /qb /language <lang> /c <Product ID>: 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"
<FlexLicenseServer> is the network license server.
<mediaDriveLetter>\setup.exe /t /qb /language <lang> /c <Product ID>: ACADSERIALPREFIX=<SerialPrefix> ACADSERIALNUMBER=<SerialPostfix> ADLM_PRODKEY=<ProdKey> ADLM_EULA_COUNTRY=<eula_lang> InstallLevel=5 ACADSTANDALONENETWORKTYPE="3" ACAD_LICENSESERVER_DISTRIBUTED="1" ACADLICENSESERVERTYPE="Distributed Server License" ACADLICENSETYPE="Network License" ACADSERVERPATH="@<server1>;@<server2>;@<server3>;"
<server1> through <serverN> are valid network license servers.
<mediaDriveLetter>\setup.exe /t /qb /language <lang> /c <Product ID>: 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;"
<server1> through <server3> are valid network license servers with redundant licenses.
When you install an Autodesk suite that includes multiple products, a separate code block is required in the batch file for each product. Each code block includes the product ID for one of the products being installed. However, the same suite serial number and product key are used for all products. The following template represents a batch file for stand-alone installation of three products.
<mediaDriveLetter>\setup.exe /t /qb /language <lang> /c <Product ID>: ACADSERIALPREFIX=<SerialPrefix> ACADSERIALNUMBER=<SerialPostfix> ADLM_PRODKEY=<ProdKey> ADLM_EULA_COUNTRY=<eula_lang> InstallLevel=5 ACADSTANDALONENETWORKTYPE="1" /c <Product ID>: ACADSERIALPREFIX=<SerialPrefix> ACADSERIALNUMBER=<SerialPostfix> ADLM_PRODKEY=<ProdKey> ADLM_EULA_COUNTRY=<eula_lang> InstallLevel=5 ACADSTANDALONENETWORKTYPE="1" /c <Product ID>: ACADSERIALPREFIX=<SerialPrefix> ACADSERIALNUMBER=<SerialPostfix> ADLM_PRODKEY=<ProdKey> ADLM_EULA_COUNTRY=<eula_lang> InstallLevel=5 ACADSTANDALONENETWORKTYPE="1"
<mediaDriveLetter> is the drive letter where the media is mounted or the setup.exe file is stored.
Install options used here include /t (execute setup by script) and /qb (display a basic user interface). Others, such as /w (log nonfatal warnings), can be used for Microsoft's Msiexec command line.
<Product ID> is the abbreviated name of the product being installed. Examples: ACM_MAIN for AutoCAD Mechanical, MAX for 3ds Max, and INVENTOR. You can find this name inside square brackets in the Product section of the Setup.ini file, as with [ACAD_MAIN] PRODUCT_NAME=Autodesk
AutoCAD 2016INSTALLDIR="%programFiles%\Autodesk\<Product Name>" is an optional parameter. Its use is not recommended, because it specifies a different installation directory from the default location, which can cause problems.
<Product Name> is the name of the product installation directory. Example: Inventor 2016.
<SerialPrefix> is the first three digits of the serial number
<SerialPostfix> is the last eight digits of the serial number
<ProdKey> is the product key
<langlang> is the IETF language tag. Example: en-US for English-United States
<eula_lang> is the ISO 3166-1 alpha-2 standard for the country. Example: US for United States
ACADSTANDALONENETWORKTYPE identifies the type of license being installed. It has three possible values: 0 for both network and stand-alone licenses, 1 for a stand-alone license, and 3 for a network license.