Remote Installation through PowerShell
NCache provides a PowerShell script called InstallNCache.ps1 for installing NCache on remote machines.
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.
Installing NCache With PowerShell
You should find the InstallNCache.ps1 script at [InstallDir]/Integration/PowerShell/InstallNCache.ps1
IntallNCache.ps1 /k key /file msi-file-name /file-path complete-file-path-of-msi [option[...]]
Argument | Description |
---|---|
/file file-name |
Allows the user to specify the name of the setup file along with the file extension. |
/file-path complete-file-path |
Allows the user to specify the complete file-path/file-location of the setup file. |
/k key |
Allows the user to specify a valid license key. |
Option | Description |
---|---|
/servers / server-names |
Allows the user to specify a comma separated list of Server Names or IP Addresses of machines where NCache is going to be installed. |
/f / first-name |
Allows the user to specify first name. |
/l / last-name |
Allows the user to specify last name. |
/e / edition |
Allows the user to specify the NCache installation.0 : Cache Server installation2 : Developer3 : Remote Client installationDefault is 0 . |
/email / email-address |
Allows the user to specify the email address. |
/company / company-name |
Allows the user to specify the company name. |
/install-dir / installation-path |
Allows the user to specify the path where to install NCache. Default is "C:/Program Files/". |
/set-per / permissions |
Allows the user to specify the permissions for quite mode. Default is 1 . |
/? |
Displays command syntax and options for the utility. |
Example
In this example, we will install NCache Cache Server on three computers (Test1,
Test2, and Test3) using the PowerShell script InstallNCache.ps1. It is assumed
that the NCache setup MSI file is available on C:/
Drive root and also that
NCache is installed on the default path C:/Program Files
.
PS C:/Program Files/ncache/integration/PowerShell> ./installNCache.ps1 /e 0 /k 7B1JYKITFRERLEIIE /file “ncache.ent.x64.msi” /file-path “C:/” /s Test1, Test2, Test3
This will install NCache Cache Server on all remote machines Test1, Test2 and
Test3. Please replace the server “Test1, Test2, Test3” with your own server
names. Upon successful installation you will see a message with "Return Value:0"
.
Evaluation and Trial License
NCache Enterprise comes with all features during the initial evaluation period of 30 days. However, it has a built-in performance limitation (max 200 requests/sec per cache per server) and amount of activity limitation (total 500,000 requests before a cache restart is required).
You can remove these limitations from NCache Enterprise by requesting a FREE 60-day Trial License Key and activating all the cache servers with it. This Trial License is extendible for 30 days upon each additional request.
Upon purchase of NCache Enterprise, the purchased license key also removes all these limitations.