NCache 4.6 - Online Documentation

Command Line Installation

 
NCache provides a command line installation that you can either run from a Command Prompt or add to your script files (.bat files). To install NCache form Command Prompt, use the msiexec.exe utility.
 
In order to install NCache on your system through Command Line Installation:
 
  • Open Command Prompt with administrative rights.
 
  • Enter the following command:
 
Msiexec /I <Installation Package Path>
EDITION=”0|2|3”
KEY="INSTALL_KEY_EMAILED_TO_YOU"
USERFIRSTNAME="John"
USERLASTNAME="Smith"
COMPANYNAME="Alachisoft"
EMAILADDRESS="john@alachisoft.com"
INSTALLDIR=”<Target Dir>”
/qn
 
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
EDITION
Specifies the installation type. Possible values are:
  • 0 (Cache Server)
  • 2 (Developer)
  • 3 (Remote Client)
See below for details on each installation type.
0(Cache Server)
KEY (Required)
Installation Key must be provided by you. You will receive this via email from Alachisoft when you downloaded NCache. If not, then visit http://www.alachisoft.com/download.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: If you want to install NCache silently without any user intervention.
Empty
 

Installation Editions

 
  • Client Server installs the full server product along with the local client.
  • Remote Client installs the local and client caches, ASP.NET session modules and NCache API for remote cache access.
  • Developer installs standalone local cache and development libraries, along with restricted access to remote caches. Note the following limitations for Developer Installation Type while connecting to remote caches:
  1. Throttling of 50 requests/sec for each client: All such clients that are licensed under DEV license will not be able to make more than 50 requests/sec to the remote cache.
  2. Limited number of requests (200,000) a client can send to remote cache: In a lifetime of client application in case it is licensed under DEV license, the client will stop making requests to remote cache after it has sent 200,000 requests to remote cache. The only work around is to restart application for another 200,000 requests. Once the client has made 200,000 requests, a licensing exception will be thrown saying “Clients running under DEV license cannot send more than 200,000 requests to remote cache.”
 
Developer licensed clients can make requests to local caches without any limitation.
 
  • Press Enter.
 
The installation process starts. Once the installation process is complete, NCache will be successfully installed in the specified directory.
 
Examples
 
1.     Installing a Cache Server Silently:
 
    msiexec.exe /I "C:\NCacheSetup\NCache.clr20.msi" EDITION=0
    KEY="INSTALL_KEY_EMAILED_TO_YOU" USERFIRSTNAME="John" USERLASTNAME="Smith"
    COMPANYNAME="Alachisoft" EMAILADDRESS=john@alachisoft.com INSTALLDIR="C:\Program Files\NCache" /qn
 
2.      Installing a Developer Machine Silently:
 
    msiexec.exe /I "C:\NCacheSetup\NCache.clr20.msi" EDITION=2
    KEY="INSTALL_KEY_EMAILED_TO_YOU" USERFIRSTNAME="John" USERLASTNAME="Smith"
    COMPANYNAME="Alachisoft" EMAILADDRESS=john@alachisoft.com INSTALLDIR="C:\Program Files\NCache" /qn    
 
3.     Installing a Remote Client Silently:
 
    msiexec.exe /I "C:\NCacheSetup\NCache.clr20.msi" EDITION=3         
    KEY="INSTALL_KEY_EMAILED_TO_YOU" USERFIRSTNAME="John" USERLASTNAME="Smith"
    COMPANYNAME="Alachisoft" EMAILADDRESS=john@alachisoft.com INSTALLDIR="C:\Program Files\NCache" /qn
 
 
Uninstall NCache
 
To uninstall NCache through command line, use the following syntax:
 
  msiexec.exe> /x <Installation Package Path> /qn
 
An example is given below:
 
  msiexec.exe /x "C:\NCacheSetup\NCache.clr20.msi" \qn
 
 
See Also