Installing Acunetix 360 On-Premises in Silent Mode

Instead of installing the web application server and the agent in a graphical interface with user interactions, you can run these installations in silent mode.

The silent mode allows you to run the installation without the user's interaction, and no user interface is displayed. This installation mode allows you to define an installation configuration only once to streamline the process.

This topic explains how to perform the silent mode installation for the web application server and the agent in Acunetix 360 On-Premises.

For the manual installation and configuration, please see Installing and Configuring Acunetix 360 On-Premises.

if_Gnome-Dialog-Information-64_55568.png

Information

Please make sure that you have administrator privileges to run the installation in silent mode.

Installing Acunetix 360 Agent in Silent Mode

The silent mode installation in Acunetix 360 On-Premises helps you to install the Agent. For the manual installation, please see Installing the Acunetix 360 Agent.

This table explains the parameter in the Silent Mode Installation for the agent.

Parameter

Description

/exenoui /qn

This parameter performs the silent installation without the user interface.

APPDIR

This parameter shows the location of the Agent.

APP_URL_PROP

This parameter shows the URL of the Web Application Server.

API_TOKEN_PROP

This parameter displays the API Token.

AGENT_NAME_PROP

This parameter displays the name of the Agent.

How to Install Acunetix 360 Agent in the Silent Mode
  1. Open a command prompt window
  2. Run the following command: AgentSetup.exe /exenoui /qn APPDIR="C:\Acunetix 360 Agent" APP_URL_PROP="https://localhost/" APP_TOKEN_PROP="YOUR_TOKEN” AGENT_NAME_PROP="YOUR_AGENT_NAME"

Installing Acunetix 360 Web Application Server

There are two methods to perform the silent mode installation for the web application server. You can install the web application server by using a JSON file or with a Windows PowerShell Script.

Installing Web Application Server with JSON

PREREQUISITE:

Copy the following into a text editor and save it as a silent_mode_settings.json. This file is required for the installation.

if_Gnome-Dialog-Information-64_55568.png

Information

Please make sure that you entered the correct information into the JSON file so that the installation proceeds as expected.

{

  "DatabaseSettings": {

    "Server": ".",

    "Catalog": "InvictiDatabase",

    "IntegratedSecurity": false,

    "UserId": "DbPass",

    "Password": "Your Password",

    "MaxPoolSize": 500,

    "Encrypt": false

  },

  "AccountSettings": {

    "Name": "Your Name",

    "Email": "Your Email",

    "Password": "User Password",

    "ConfirmPassword": "User Password",

    "TimezoneId": "America/New_York"

  },

  "GeneralSettings": {

    "General": {

      "ServerRootUrl": "http://localhost",

      "UpdateServerUrl": "https://www.acunetix.com/",

      "EnableServiceDiscovery": true,

      "RadarRootUrl": "https://services.netsparker.cloud/",

      "ScanDataPath": "~/App_Data/ScanData/",

      "ScreenshotsPath": "~/Content/images/screenshots/",

      "MaxUploadedFileSize": 10,

      "SalesContactMail": "Sales Email",

      "SupportContactMail": "Support Email",

      "BlueGreenDeploymentEnabled": false,

      "IsAgentSelectionEnabled": true

    },

    "Security": {

      "AllowedHostControlEnabled": false,

      "LocalhostScanEnabled": false,

      "IpAddresses": [

        {

          "Group": "Infrastructure",

          "Name": "Company Production",

          "Pattern": "^55.86.178.211$"

        },

        {

          "Group": "Proxy",

          "Name": "Local IIS (IPv4)",

          "Pattern": "^127.0.0.1$"

        },

        {

          "Group": "Proxy",

          "Name": "Local IIS (IPv6)",

          "Pattern": "^::1$"

        }

      ]

    }

  },

  "CloudSettings": {

    "Enabled": false,

    "ProviderType": "AWS",

    "WebsiteAccessKey": "Access Key",

    "WebsiteSecretKey": "Secret Key",

    "AgentAccessKey": "Agent Access Key",

    "AgentSecretKey": "Agent Secret Key",

    "DeploymentBucketName": "Sample.Bucket.Deployment.Name/Sample.Name",

    "RegionEndpointName": "eu-west-128",

    "ScanDataBucketName": "Sample.Bucket.ScanData.Name",

    "ScreenshotBucketName": "Sample.Bucket.Screenshot.Name",

    "AgentBucketName": "Sample.Bucket.Agent.Name",

    "CustomizationsBucketName": "Sample.Bucket.Customization.Name",

    "Ec2AgentImageId": "ami-1a2b3c4d5e6f7g8h",

    "Ec2LinuxAgentImageId": "ami-1a2b3c4d5e6f7g8h",

    "Ec2AgentInstanceAssignedName": "Agent Service",

    "Ec2AgentInstanceSecurityGroup": "sg-sample123",

    "Ec2AgentInstanceType": "m5.xlarge",

    "Ec2AgentSubnetId": "subnet-123456",

    "Ec2KeyPairName": "SampleKeyPair"

  },

  "ScannerAgentSettings": {

    "SkipInstallation": true,

    "AccessToken": "Acess Token"

  },

  "AuthenticationVerifierSettings": {

    "SkipInstallation": true,

    "AccessToken": "Access Token"

  },

  "EmailSettings": {

    "Enabled": false,

    "Host": "Host Email",

    "Port": 587,

    "UserName": "User Email",

    "Password": "User Password",

    "EnableEncryption": false,

    "AdminNotificationSender": "Admin Email",

    "AdminNotificationRecipients": "Admin Email",

    "ErrorNotificationRecipients": "Email Address",

    "SupportNotificationRecipients": "Email Address"

  },

  "SmsSettings": {

    "SmsEnabled": false,

    "AccountId": "Your Account Id",

    "AuthToken": "Authorization Token",

    "PhoneNumber": "Your Phone Number",

    "TestPhoneNumber": "Test Phone Number"

  }

}

How to install Acunetix 360 Web Application Server with JSON file
  1. Open a command prompt window.
  2. Use cd to navigate the directory containing WebAppSetup.exe.
  3. Then, run WebAppSetup.exe /exenoui /qn. Wait for some time for the installation to complete.    
  4. Now, you need to copy, paste, and rename files as instructed below.
  1. Copy and paste the license file, which you were supplied, to the AppData folder in the Web Application installation folder.
  2. Rename the license file as "license.nsc".
  3. Now, copy and paste the silent mode settings file to the AppData folder in the Web Application installation folder.
  4. Rename the file as "silent_mode_settings.json".

  1. Now, open a command prompt window and run the following commands to restart the Acunetix 360 Web Application.
  • cd %systemroot%\system32\inetsrv\
  • appcmd stop site /site.name:Acunetix360
  • appcmd start site /site.name:Acunetix360

Installing Acunetix 360 Web Application Server with PowerShell Script

PREREQUISITE:

if_Gnome-Dialog-Information-64_55568.png

Information

This topic assumes that you installed the Acunetix 360 Web Application to the default folder. If not, please change the relevant step in the PowerShell script accordingly.

# Go to the installation file path and run WebAppsetup.exe
&
"WebAppsetup.exe" /exenoui /qn

# Wait for the installation folder
Write-Host "Installing started."
for ($i = 1; $i -le 100; $i++ )
{
        
Start-Sleep -s 1
          
Write-Progress -Activity "Installing" -Status "$i% Complete:" -PercentComplete $i;
}
Write-Host "Installing finished."
# Go to the license file source path and copy the file destination path
Write-Host "License file copy started."
Copy-Item "license.nsc" "C:\Program Files (x86)\Acunetix 360 Web Application\App_Data"
Write-Host "License file copy finished."


# Go to the silent mode settings file source path and copy the file destination path
Write-Host "Silent mode settings file copy started."
Copy-Item "silent_mode_settings.json" "C:\Program Files (x86)\Acunetix 360 Web Application\App_Data"
Write-Host "Silent mode settings file copy started."

# Site restart on IIS
cd %systemroot%\system32\inetsrv\
appcmd stop site /site.name:Acunetix360

appcmd start site /site.name:Acunetix360

How to install Acunetix 360 Web Application Server with a Windows PowerShell script
  1. Open a Windows PowerShell window.
  2. Use cd to navigate the directory containing the silent-mode-installation.ps1 file.
  3. Run silent-mode-installation.ps1

The PowerShell script installs the web application server and restarts the Acunetix 360 Web Application.

if_Gnome-Dialog-Information-64_55568.png

Information

Should you encounter any problem in the silent mode installation, please check log files in the AppData folder. If the problem persists, please get in touch with support@acunetix.com.

 

« Back to the Acunetix Support Page