• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Show / Hide Table of Contents
  • Installation Guide for NCache
  • Installation Guide for .NET
    • Getting Started
    • Command Line Installation
    • Interactive Windows Installation
    • Network Install with PowerShell
      • Remote Installation
      • Remote Uninstallation
      • Activate NCache Purchased License
    • Evaluation Period Expiration & Extension
    • Activate NCache Purchased License (GUI)
      • Online Activation
      • Manual Activation
    • Deactivate NCache Purchased License (GUI)
      • Online Deactivation
      • Manual Deactivation
    • Command Line License Activation
  • Installation Guide for NCache Java Client
    • What is NCache Java Client?
    • Getting Started
    • Installation Steps for UNIX
    • Post Installation License Management for UNIX
    • Post Installation Client/Server Configuration for UNIX
    • Uninstall NCache Java Client from UNIX
    • Troubleshooting Common Install/Uninstall Problems
  • Licensing Model

Command Line Installation

NCache provides a command line installation that you can either run from Command Prompt or add to your script files (.bat files). To install NCache from Command Prompt, use the msiexec.exe utility.

Installing NCache

  • Search for Command Prompt on Windows Start menu. Right click on the search result “Command Prompt”, and select Run as Administrator.

    • Cache Server installs the full server product along with the local client.
      Run msiexec.exe utility from Command Prompt to install NCache Server as following. Notice INSTALLMODE=0 indicates “cache server” installation. /qn indicates Silent Mode.
    msiexec.exe /I "C:\NCacheSetup\ncache.ent.x64.msi" INSTALLMODE=0 KEY=INSTALL_KEY_EMAILED_TO_YOU USERFIRSTNAME="John" USERLASTNAME="Smith" COMPANYNAME="Alachisoft" EMAILADDRESS="john@alachisoft.com"
    INSTALLDIR="C:\Program Files\NCache" SETPERMISSION="1" /qn
    
    • Developer installs standalone local cache and development libraries, along with restricted access to remote caches. For more detail on the limitations for Developer edition, please refer to this section.
      Run msiexec.exe utility from Command Prompt to install NCache Developer as following. Notice INSTALLMODE=2 indicates “Developer” installation. /qn indicates Silent Mode.
    msiexec.exe /I "C:\NCacheSetup\ncache.ent.x64.msi" INSTALLMODE=2 KEY=INSTALL_KEY_EMAILED_TO_YOU USERFIRSTNAME="John" USERLASTNAME="Smith" COMPANYNAME="Alachisoft" EMAILADDRESS="john@alachisoft.com"
    INSTALLDIR="C:\Program Files\NCache" SETPERMISSION="1" /qn
    
    • Remote Client installs the local and client caches, ASP.NET session modules and NCache API for remote cache access.
      Run msiexec.exe utility from Command Prompt to install NCache Remote Client as following. Notice INSTALLMODE=3 indicates “remote client” installation. /qn indicates Silent Mode.
    msiexec.exe /I "C:\NCacheSetup\ncache.ent.x64.msi" INSTALLMODE=3 KEY=INSTALL_KEY_EMAILED_TO_YOU USERFIRSTNAME="John" USERLASTNAME="Smith" COMPANYNAME="Alachisoft" EMAILADDRESS="john@alachisoft.com"
    INSTALLDIR="C:\Program Files\NCache" SETPERMISSION="1" /qn
    

Note for Silent Mode Installation

NCache installation requires an installation of Microsoft Visual C++ 2010 x64 Redistributable as a pre-requisite. However, there are some cases where command line and PowerShell installation in quiet mode results in the redistributable not being downloaded.

Hence, as a precaution, it is highly recommended that the following PowerShell script is executed BEFORE INSTALLATION in quiet mode to download and install the redistributable package according to the operating system detected:

# VCRedist check and download
if([Environment]::Is64BitOperatingSystem)
{
    Write-Host "64-Bit OS Detected"
    $regEntry = Test-Path Registry::HKLM\SOFTWARE\\Classes\\Installer\\Products\\1926E8D15D0BCE53481466615F760A7F
    $url =
"https://download.microsoft.com/download/3/2/2/3224B87F-CFA0-4E70-BDA3-3DE650EFEBA5/vcredist_x64.exe"
    vcRed = "vcredist_x64.exe"

    # Checking if vcredist_x64 is installed on this machine
    if($regEntry -eq 0)
    {
        # If no installation found download visual c++ redistributable
        write-host "Microsoft Visual C++ 2010 x64 Redistributable NOT Found"
        write-host "Downloading from $url"
        $vcredistPath = "$ENV:temp\$vcRed"

        (New-Object System.Net.WebClient).DownloadFile($url, $vcredistPath)

        write-host "Download Complete"
        # Installing vcredist_x64
        write-host "Installing Microsoft Visual C++ 2010 x64 Redistributable"
        start-process -Wait $vcredistPath -ArgumentList "/norestart /q"
        write-host "Installation Complete"
      }
      else
      {
        write-host "Microsoft Visual C++ 2010 x64 Redistributable is already installed on this computer."
      }
}

$regEntry = Test-Path
Registry::HKLM\\SOFTWARE\\Classes\\Installer\\Products\\1D5E3C0FEDA1E123187686FED06E995A
$url =
"https://download.microsoft.com/download/5/B/C/5BC5DBB3-652D-4DCE-B14A-475AB85EEF6E/vcredist_x86.exe"
$vcRed = "vcredist_x32.exe"

# Checking if vcredist_x32 is installed on this machine
if($regEntry -eq 0)
{
      # If no installation found download visual c++ redistributable
      write-host "Microsoft Visual C++ 2010 x32 Redistributable NOT Found"
      write-host "Downloading from $url"
      $vcredistPath = "$ENV:temp\$vcRed"
      (New-Object System.Net.WebClient).DownloadFile($url, $vcredistPath)
      write-host "Download Complete"

      # Installing vcredist_x32
      write-host "Installing Microsoft Visual C++ 2010 x32 Redistributable"
      start-process -Wait $vcredistPath -ArgumentList "/norestart /q"
      write-host "Installation Complete"
}
else
{
  write-host "Microsoft Visual C++ 2010 x32 Redistributable is already installed
  on this computer."
}

You can now proceed to install NCache in silent mode.

Uninstall NCache

Run msiexec.exe utility from Command Prompt to uninstall NCache as following. It is the same command for uninstalling Server/Developer/Remote Client edition.

msiexec.exe /x "C:\NCacheSetupPath\ncache.ent.x64.msi" /qn

Silent Mode Installation Properties

The following table provides the reference for the properties:

Switch/Properties Purpose Default Value
/I <.msi Package Path> (Required) Path where you have downloaded ncache.enterprise.x64.msi file from the Alachisoft website. Empty
INSTALLMODE Specifies the installation type. Possible values are:
  • 0 (Cache Server)
  • 2 (Developer)
  • 3 (Remote Client)
  • 0 (Cache Server)
    KEY (Required) Installation Key: You will have received this via email from Alachisoft when you downloaded NCache. If not, then visit http://www.alachisoft.com/download-ncache.html to register and obtain one. Empty
    USERFIRSTNAME Your first name -
    USERLASTNAME Your last name -
    COMPANYNAME Your company name -
    EMAILADDRESS (Required) Your email address -
    INSTALLDIR Directory where you want NCache to be installed. Most commonly, this should be C:\Program Files\NCache. Local Directory\Current Directory
    /qn Quiet mode: Install NCache without any user intervention. Empty

    Back to top Copyright © 2017 Alachisoft