# Optional - Answer File

An answer file can be created to automate the installation of the OneSite Platform server. The executable must be run with administrative privileges. The answer file can only be created when the Adaptiva Server has not been previously installed.

1. Right click `adaptiva-server-<version>-windows.exe`, and then select **Run as administrator**.
2. Configure your **Superadmin Login ID and Password**.
   * **Use Windows Login**: This option will use either your current logged in account or one that you specify with your Windows credentials.
   * **Use Custom Login**: This option allows you to supply an email address and password to create a server login. The email address is a username and does not need to be a valid email address.
3. Enter one or more license keys, separated by semicolons.
4. The following items are checked by default:
   * **Create an Add/Remove Programs Entry**: The Adaptiva Server Installer will create an entry for OneSite Platform in **Windows Settings > Apps & Features**.

     ![](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-f87d4ec7eb87f3e1331a1866f380b8fce359929b%2Fapps-features.png?alt=media)
   * **Add a Windows Firewall Exception for Server Application**: The Adaptiva Server Installer will add local exceptions in the Windows firewall for the default server ports (See [Communication Ports](https://adaptiva.com/hubfs/Docs/OneSite-Port-Detail.pdf)).
   * \***IMPORTANT**: Review any existing domain-based group policies (GPO) that configure or restrict Windows firewall rules or rule creation as they can prevent or override these Adaptiva-created firewall exceptions.
5. Click **Answer File**.
6. At the Generate Installation Answer File dialog, enter or **Browse** to a location where the file will be created. Click **OK**. The answer file will be named *AdaptivaAnswerFile.txt* in the folder selected.

   ![Generate Answer File](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-cb7830e3ddd98d7ceee7b7a6150a80c0db3516c1%2Fimage30.png?alt=media)

   * The installation screens will proceed as described in the Server Installation section. Each answer will be saved in the Answer file. The installation will NOT install the product. Use the Server Installation section below to learn about each screen during the installation process.
7. When all the prompting screens are complete the answer file is created. Click **OK**.

   ![File Creation](https://1238239958-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcNZqjCKqgdpA83eD4o%2Fuploads%2Fgit-blob-ef5b7150bb92f07f742055f3f1dd43c69196e495%2Fimage31.png?alt=media)

   * **NOTE**: If passwords were entered for the SuperAdmin ID or Service accounts, these passwords will be stored in clear text in the Answer File. Delete or secure the answer file after the installation has been completed.

## Install using the Answer File

If you have created an answer file, follow these steps to use the answer file to install the Adaptiva OneSite Server.

1. Open a Command Prompt as Administrator.
2. Navigate to the installation source folder.
3. Enter the following command:

   `adaptiva-server-<version>-windows.exe -InstallOrUpgrade %path%:\\<AnswerFileName>`
4. There is no progress bar during the installation. The installation can be monitored using the Task Manager, monitoring the *adaptiva-server.exe* process and by monitoring the log file **C:\Windows\AdaptivaSetupLogs\Server\AdaptivaServerSetup.log**.
5. Upon successful installation the `adaptiva-server-<version>-windows.exe` process will be replaced with *AdaptivaServerService* and the *AdaptivaServerSetup.log* will show:

   `~performSilentServerInstall(): 2C58: Line: 160: Server installation was successful`

{% hint style="info" %}
The server installation normally launches **adaptiva-client-\<version>-windows.exe** to install the Adaptiva Client. The silent installation does not do this. Be sure to install the Adaptiva Client on the server as well.
{% endhint %}
