Command Line Installation (Silent Mode)
Important
Installation requires either of the following versions, based on your environment:
- .NET Framework >= 4.7.2
- .NET Core 3.0
NCache provides a Windows Installer (.msi) with which you can install NCache through command line silent mode.
Search for Command Prompt on Windows Start menu. Right click on the search result “Command Prompt”, and select Run as Administrator.
Install NCache
Note
Make sure that the email address provided is the one used during registration with Alachisoft.
Install Cache Server: Run
msiexec.exe
utility from Command Prompt to install NCache Server as following. NoticeINSTALLMODE=0
indicates “Cache Server” installation./qn
indicates Silent Mode. The downloaded .msi file names for both .NET Framework and .NET Core are different. Please change the .msi file name accordingly.msiexec.exe /I "C:\NCacheSetupPath\ncache.ent.x64.msi" INSTALLMODE=0 KEY=XXXXXXXXXXXXXXXXX USERFIRSTNAME="John" USERLASTNAME="Smith" COMPANYNAME="Alachisoft" EMAILADDRESS="john@alachisoft.com" INSTALLDIR="C:\Program Files\NCache" /qn
Install Developer: Run
msiexec.exe
utility from Command Prompt to install NCache Server as following. NoticeINSTALLMODE=2
indicates “Developer” installation. The downloaded .msi file names for both .NET Framework and .NET Core are different. Please change the .msi file name accordingly.msiexec.exe /I "C:\NCacheSetupPath\ncache.ent.x64.msi" INSTALLMODE=2 USERFIRSTNAME="John" USERLASTNAME="Smith" COMPANYNAME="Alachisoft" EMAILADDRESS="john@alachisoft.com" INSTALLDIR="C:\Program Files\NCache" /qn
Install Remote Client: Run
msiexec.exe
utility from Command Prompt to install NCache Remote Client as following. The downloaded .msi file names for both .NET Framework and .NET Core are different. Please change the .msi file name accordingly.Notice
INSTALLMODE=3
indicates “remote client” installation./qn
indicates Silent Mode.msiexec.exe /I "C:\NCacheSetupPath\ncache.ent.x64.msi" INSTALLMODE=3 USERFIRSTNAME="John" USERLASTNAME="Smith" COMPANYNAME="Alachisoft" EMAILADDRESS="john@alachisoft.com" INSTALLDIR="C:\Program Files\NCache" /qn
Uninstall NCache
Run msiexec.exe
utility from Command Prompt to uninstall NCache as following. It’s the same command for uninstalling Server/Developer/Remote Client.
msiexec.exe /x "C:\NCacheSetupPath\ncache.ent.x64.msi" /qn
- You can refer to Getting Started to get you started with setting up NCache environment.
Silent Mode Installation Properties
The following properties to be provided for NCache installation through msiexec.exe
. Note that all of these properties MUST be provided.
Switch/Properties | Purpose | Default Value |
---|---|---|
/I <.msi Package Path> |
Path where you have downloaded .MSI file from the Alachisoft website. | Empty |
KEY |
The key you are provided with upon downloading NCache. | - |
INSTALLMODE |
Specifies the installation type. Possible values are: 0 (Cache Server) 2 (Developer) 3 (Remote Client) |
0 (Cache Server) |
USERFIRSTNAME |
Your first name | - |
USERLASTNAME |
Your last name | - |
COMPANYNAME |
Your company name | - |
EMAILADDRESS |
Your email address which is used during registration with Alachisoft. | - |
INSTALLDIR |
Directory where you want NCache to be installed. Most commonly, this should be C:\Program Files\NCache. | C:\Program Files\NCache |
/qn |
Quiet mode: Install NCache without any user intervention. | Empty |
See Also
Windows Installation
Network Installation with PowerShell
Evaluation Period Management
License Management