December 17, 2009

Performing Custom Installation of Plesk Without MSDE from Command Line

To perform a Custom Plesk for Windows installation without MSDE from command line:

1. Make sure that you have extracted the required .msi installer file, if you are using the network installer (see the Installing Plesk 8.1 for Windows Using Command Line Interface section for more details).
2. Create a file called install-plesk.cmd in your system. Copy the following information into it:

@echo off

if "%6" == "" (

echo " USAGE: install-plesk.cmd "

echo " where

echo " can be:

echo " complete - Complete Plesk installation

echo " typical - Typical Plesk installation

echo " - Complete Plesk installation without specified components (use a comma to separate the components)

echo " is MSSQL Server location with optional instance name (e.g. localhost\SQLEXPRESS),

echo " is MSSQL Server administrator name

echo " is MSSQL Server administrator password

exit /b 1

)

set plesk_distrib_dir=%~dp1

set plesk_msi_name=%~nx1

set plesk_dir=%~2

set plesk_non_typical=CommunitySK,Mambo,bbClone,gtChat,phpBB,phpBook,postNuke,Uebimiau,TimeTrackerSK,ReportsSK,KasperskyAV,SiteBuilder,PDFDoc,Python,JDK,Tomcat

if "%3" == "complete" set plesk_exclude=MSDE

if "%3" == "typical" set plesk_exclude=MSDE,%plesk_non_typical%

if "%plesk_exclude%" == "" set plesk_exclude=MSDE,%~3

@echo on

"%plesk_distrib_dir%\%plesk_msi_name%" /qn MSSQL_HOST=%4 MSSQL_ADMIN_NAME=%5 MSSQL_ADMIN_PASSWD=%6 INSTALLDIR="%plesk_dir%" ADDLOCAL=ALL REMOVE=%plesk_exclude% /l*v "%plesk_dir%\plesk-install.log"

If "%ERRORLEVEL%" NEQ "0" exit /b %ERRORLEVEL%

Note: You are welcome to change the script text above to best suit your needs. For example, you can change '/qn' to '/qb' in the script text, if you want to see the progress bar during the installation. Please make sure that you clearly understand what are you changing before making the changes, as SWsoft shall not be held liable in any manner whatsoever for any losses or damage caused by using the modified script text.
3. Open the command line interface (Start > Run > cmd.exe).
4. Run the following command to install Plesk without MSDE:

install-plesk.cmd

Important: This command will install all available Plesk components except those specified in place of variable.

The following variables are used by this command:
* - full path to plesk_x.x.x_buildYYMMDD.HH.msi file.
* - full path to the folder where Plesk should be installed.
* - ID of the component that should not be installed, for example, KasperskyAV. You can specify several component IDs at once, separating them with a comma. For the list of available component IDs, refer to the List of Plesk Components Available for Plesk Installation Through Command Line section. Otherwise, the command will install all components.
* - external Microsoft SQL host name.
* - external Microsoft SQL administrator login.
* - external Microsoft SQL administrator password.
5. The installer will proceed with installing Plesk without specified components and without MSDE.

No comments:

Post a Comment