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 you use the msiexec.exe utility. Below is the syntax for using msiexec.exe to install NCache.
Install NCache
Msiexec.exe
/I <Installation Package Path>
EDITION ="0|2|3"
KEY ="EVAL_KEY_EMAILED_TO_YOU"
USERFIRSTNAME ="John"
USERLASTNAME ="Smith"
COMPANYNAME ="Alachisoft"
EMAILADDRESS ="john@alachisoft.com"
INSTALLDIR ="<Target Dir>"
SETPERMISSION ="0|1"
/qn
#
|
Switch/Properties
|
Purpose
|
Default Value
|
01
|
EDITION
|
Specifies the installation option. Possible values are
• (Cache Server) = 0
• (Developer) = 2
• (Remote Client) = 3
|
0
(Cache Server)
|
02
|
KEY ( required )
|
Installation Key: Must be provided by you. You will have received 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
|
03
|
USERFIRSTNAME
|
Your first name
|
Empty
|
04
|
USERLASTNAME
|
Your last name
|
Empty
|
05
|
COMPANYNAME
|
Your company name
|
Alachisoft
|
06
|
EMAILADDRESS
(required)
|
Your email address
|
Empty
|
07
|
INSTALLDIR
|
Directory where you want NCache to be installed. Most commonly, this should be "C:\program files\NCache".
|
Local Directory
|
08
|
SETPERMISSION
|
NCache requires your permission to configure system permissions for PerfMon with NCache. Possible values are
0 (No)
1 (Yes)
|
1
(Yes)
|
09
|
/I <Installation Package Path>
(required)
|
Path where you have kept NCache.clr20.msi file. You must specify this.
|
Empty
|
10
|
/qn
|
Quiet mode. If you want to run the install silently without any user intervention, use this switch.
|
Empty
|
Below is an example of 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" SETPERMISSION="1" /qn
Below is an example of installing NCache on a developer workstation.
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" SETPERMISSION="1" /qn
Below is an example of 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" SETPERMISSION="1" /qn
Uninstall NCache
To uninstall NCache through command line, use the following syntax:
msiexec.exe> /x <Installation Package Path> /qn
Below is an example:
c:/> msiexec.exe /x "c:/NCacheSetup/NCache.clr20.msi" /qn
See Also