NCache 4.4 - Online Documentation

Remote Installation/Uninstallation

 
Installing NCache using PowerShell Script
 
NCache provides a PowerShell script called InstallNCache.ps1 for installing NCache on remote machines. Please refer to the Troubleshooting Install script section if you have any issue in executing this script.
You should find the InstallNCache.ps1 script at the NCache installation path in the integration folder
 
%INSTALLPATH%/NCache/Integration/PowerShell/InstallNCache.ps1
 
      PS C:/Users> 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. Use "0" Cache Server installation, “2” is for Developer and “3” for Remote Client installation. Default 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 of NCache Remote Installation:
 
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 file “NCache.clr20.msi” 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.clr20.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”.
 
Uninstall NCache
 
NCache provides another PowerShell script called UninstallNCache.ps1 which helps to uninstall NCache from remote machine in silent mode. Please refer to the Troubleshooting Install script section if you have any issue in executing this script.
You should find the UninstallNCache .ps1 script at the NCache installation path in the integration folder
 
%INSTALLPATH%/NCache/Integration/PowerShell/ UninstallNCache .ps1
 
        PS C:/Users>./UninstallNCache.ps1 ServerName1 ServerName2 ... n
 
Note: Server names must be separated with by BLANK Space. The names can be computer names or IP address of System.
 
Example of NCache Remote Un-Installation:
 
In this example we will uninstall NCache Cache Server from three computers (Test1, Test2, and Test3) using the PowerShell script UninstallNCache.ps1. It is assumed that that NCache is installed on the default path “C:/program files”
 
PS C:/Program Files/ncache/integration/PowerShell> ./UninstallNCache.ps1 Test1 Test2 Test3
 
This will uninstall NCache from all Cache servers Test1, Test2 and Test3. Please replace the server “Test1, Test2, Test3” with your own server names. Upon successful un-installation you should see a message with “Return Value : 0 ” Or 1614.
 
 
See Also