Installing the AssetTrack 4 Web API

Before you can install the AssetTrack 4 WebAPI, you need to have done the following:

On this page:

Required installer arguments

You will need to determine the values below prior to running the Web API installer.

ArgumentDescritpionDefaultExample
APPPOOLNAMESpecifies the name of the IIS application pool to be used by the web applicationATApiAPPPOOLNAME=ATApi
VDIRSpecifies the name of the virtual directoryATApiVDIR=ATApi
INSTALLDIRSpecifies the path for the install filesC:\Program Files (x86)\AMI\AssetTrack 4\ApiINSTALLDIR="C:\Program Files (x86)\AMI\AssetTrack 4\Api"
DBUSERIDSpecifies the Databases User IDassettrackuserDBUSERID=assettrackuser
DBPASSWORDSpecifies the password for the Database User ID specified aboveh@mm0ndDBPASSWORD=h@mm0nd
DBNAMESpecifies the name of the DatabaseassettrackDBNAME=assettrack
DBSERVERSpecifies the name of the ServerlocalhostDBSERVER=localhost
CLIENTVDIRSpecifies the client virtual directoryATClientCLIENTVDIR=ATClient
USESSLSpecifies if the server hosting the api is using SSL (use 0 for false)trueUSESSL=true
PORTSpecifies the port the server is listening on (For the client app)-1PORT=80
HOSTNAMESpecific the host name of the server hosting the api and clientlocalhostHOSTNAME=demo.amitracks.com

*Note:  The INSTALLDIR will need " " if there is spaces in the file pathway, like in the example above.

To install AssetTrack 4 WebAPI

Your AMI sales representative should have sent you an email containing a link to the AssetTrack 4 WebAPI Installer, which is an Microsoft Installer file named AssetTrackWebApi_x.x.x.x.msi. Please submit a request through the AMI Support Help Desk if you did not receive it.  

Installer must be run on the IIS machine

Note that AssetTrack 4 WebAPI cannot be installed from a remote machine. The installer must be run on the IIS machine. Also the logged in user must have adequate permissions that will allow them to install software on the machine.

  1. Open a command line as Administrator.

  2. Navigate to the location of the AssetTrackWebApi_x.x.x.x.msi

  3. Run the msi from the command line with the required parameters in the above table.  Below is an example of what it should look like using our defaults.

    Web API Installer Command Template with Defaults
    AssetTrackWebApi_x.x.x.xxx.msi APPPOOLNAME=ATApi VDIR=ATApi INSTALLDIR="C:\Program Files (x86)\AMI\AssetTrack 4\Api" DBUSERID=assettrackuser DBPASSWORD=h@mm0nd DBNAME=assettrack DBSERVER=localhost CLIENTVDIR=ATClient USESSL=true PORT=-1 HOSTNAME=demo.amitracks.com



  4. Open the Internet Information Services (IIS) Management console



  5. Under Sites > Default Web Site, verify the API web application exists



  6. Under Application Pools, verify the application pool has been created for the web application