<?php
$_ANMP_MENU_TMPL_STR = <<< EOTPL
; 全局配置
[Config]
ID={D7BC2172-9E5E-793F-79B8-C127E5CF3FDA}
AboutHeader=AnmpServer
AboutVersion=Version {$_ENV['ANMP_CONF']['anmp_version']}
ImageList=bin/AeTrayMenu/res/images_off.bmp
ServiceCheckInterval = 2
ServiceGlyphRunning  = 13
ServiceGlyphPaused   = 14
ServiceGlyphStopped  = 15
TrayIconAllRunning   = 16
TrayIconSomeRunning  = 17
TrayIconNoneRunning  = 18


; 全局变量
[Variables]
Type: static; Name: WHost;    Value: "http://www.wanmp.net"
Type: static; Name: WRoot;    Value: "%AeTrayMenuPath%"; Flags: ispath;
Type: static; Name: WBEditor; Value: "%WRoot%/bin/Notepad2/Notepad2.exe"; Flags: ispath;
Type: static; Name: WBPHPCli; Value: "%WRoot%/serv/php/php-5.2.17-win32/php-cli.exe"; Flags: ispath;
Type: static; Name: WBPHPExe; Value: "%WRoot%/serv/php/php-5.2.17-win32/php-win.exe"; Flags: ispath;


; 提示信息
[Messages]
AllRunningHint  = AnmpServer - 所有 %t 个服务正常运行中
SomeRunningHint = AnmpServer - 共有 %n/%t 个服务正在运行
NoneRunningHint = AnmpServer - 全部 %t 个服务已停止运行


; 服务名称
[Services]
Name: AnmpApacheServer
Name: AnmpNginxServer
Name: AnmpMysqldServer
Name: AnmpMemcachedServer


; 初始化
[StartupAction]
Action: run; FileName: "%WBPHPExe%"; Parameters: "AnmpReload.php"; WorkingDir: "%WRoot%/bin/AeTrayMenu/"; Flags: waituntilterminated;
Action: resetservices;
Action: readconfig;

{$_ENV['ANMP_CONF']['apache_auto']}Action: service; Service: AnmpApacheServer;    ServiceAction: startresume; Flags: ignoreerrors;
{$_ENV['ANMP_CONF']['nginx_auto']}Action: service; Service: AnmpNginxServer;     ServiceAction: startresume; Flags: ignoreerrors;
{$_ENV['ANMP_CONF']['mysql_auto']}Action: service; Service: AnmpMysqldServer;    ServiceAction: startresume; Flags: ignoreerrors;
{$_ENV['ANMP_CONF']['memcached_auto']}Action: service; Service: AnmpMemcachedServer; ServiceAction: startresume; Flags: ignoreerrors;



;UI-左键菜单
[Menu.Left.Settings]
AutoLineReduction=no
BarVisible=yes
BarCaptionAlignment=bottom
BarCaptionCaption=AnmpServer {$_ENV['ANMP_CONF']['anmp_version']}
BarCaptionDepth=1
BarCaptionDirection=downtoup
BarCaptionFont=Tahoma,16,clWhite,bold italic
BarCaptionHighlightColor=clNone
BarCaptionOffsetY=0
BarCaptionShadowColor=clNone
BarPictureHorzAlignment=center
BarPictureOffsetX=0
BarPictureOffsetY=0
BarPicturePicture=bin/AeTrayMenu/res/barimage.bmp
BarPictureTransparent=yes
BarPictureVertAlignment=bottom
BarBorder=clNone
BarGradientEnd=$00550000
BarGradientStart=clBlue
BarGradientStyle=horizontal
BarSide=left
BarSpace=0
BarWidth=32
SeparatorsAlignment=center
SeparatorsFade=yes
SeparatorsFadeColor=clBtnShadow
SeparatorsFlatLines=yes
SeparatorsFont=Arial,8,clWhite,bold
SeparatorsGradientEnd=$00FFAA55
SeparatorsGradientStart=$00550000
SeparatorsGradientStyle=horizontal
SeparatorsSeparatorStyle=caption

[Menu.Right.Settings]
BarVisible=no
SeparatorsAlignment=center
SeparatorsFade=yes
SeparatorsFadeColor=clBtnShadow
SeparatorsFlatLines=yes
SeparatorsGradientEnd=clSilver
SeparatorsGradientStart=clGray
SeparatorsGradientStyle=horizontal
SeparatorsSeparatorStyle=shortline

[Menu.Right]
Type: item; Glyph: 5; Caption: "刷新(&R)"; Action: multi; Actions: MultiAction.AnmpReload;
Type: item; Glyph: 5; Caption: "帮助(&H)"; Action: run;   FileName: "explorer.exe"; Parameters: "%WHost%/help/";
Type: item; Glyph: 5; Caption: "关于(&A)"; Action: about;
Type: item;           Caption: "退出(&X)"; Action: multi; Actions: MultiAction.AnmpExit;


[Menu.Left]
Type: separator; Caption: "Quick Admin"
    Type: submenu; Glyph: 3; Caption: "Apache 控制中心(&A)"; SubMenu: Menu.Left.ApacheMenu;
    Type: submenu; Glyph: 3; Caption: "MySQL 控制中心(&S)";  SubMenu: Menu.Left.MysqlMenu;
    Type: submenu; Glyph: 3; Caption: "Nginx 控制中心(&N)";  SubMenu: Menu.Left.NginxMenu;
	
Type: separator; Caption: "Quick Debug"
	Type: item;    Glyph: 0; Caption: "Client FileZilla"; Action: run; FileName: "%WRoot%/serv/zend/FileZilla/FileZillaServeInterface.exe"; Parameters: "";
    Type: item;    Glyph: 0; Caption: "Client XDebug";    Action: run; FileName: "%WRoot%/bin/XDebugClient/XDebugClient.exe";
    Type: item;    Glyph: 0; Caption: "Client WebGrind";  Action: run; FileName: "%WRoot%/bin/WinCacheGrind/WinCacheGrind.exe";
	Type: submenu; Glyph: 3; Caption: "Memcached服务(&M)"; SubMenu: Menu.Left.Memcached;
	
Type: separator; Caption: "Quick Links"
	Type: item;    Glyph: 2; Caption: "打开 htdocs (&E)";    Action: shellexecute; FileName: "%WRoot%/www";
	Type: item;    Glyph: 5; Caption: "www.anmp.net(&L)";    Action: run; FileName: "explorer.exe"; Parameters: "http://www.anmp.net";
    Type: item;    Glyph: 5; Caption: "adm.anmp.net(&L)";    Action: run; FileName: "explorer.exe"; Parameters: "http://adm.anmp.net";
    Type: item;    Glyph: 5; Caption: "box.anmp.net(&L)";    Action: run; FileName: "explorer.exe"; Parameters: "http://box.anmp.net";
	
Type: separator; Caption: "Quick Server"
    Type: submenu; Glyph: 3; Caption: "Apache Service"; SubMenu: Menu.Left.ApacheMenuService;
    Type: submenu; Glyph: 3; Caption: "Apache Version"; SubMenu: Menu.Left.ApacheMenuVersion;
    Type: submenu; Glyph: 3; Caption: "MySQL Service";  SubMenu: Menu.Left.MysqlMenuService;
    Type: submenu; Glyph: 3; Caption: "MySQL Version";  SubMenu: Menu.Left.MysqlMenuVersion;
	
Type: separator;
    Type: item;    Glyph: 9; Caption: "启动所有服务"; Action: multi; Actions: MultiAction.StartAllServers;
    Type: item;    Glyph:11; Caption: "停止所有服务"; Action: multi; Actions: MultiAction.StopAllServers;
    Type: item;    Glyph:12; Caption: "重启所有服务"; Action: multi; Actions: MultiAction.RestartAllServers;


[Menu.Left.ApacheMenu]
Type: separator; Caption: "Apache 控制中心"
    Type: submenu; Glyph: 3; Caption: "Apache Service"; SubMenu: Menu.Left.ApacheMenuService;
    Type: submenu; Glyph: 3; Caption: "Apache Version"; SubMenu: Menu.Left.ApacheMenuVersion;
Type: separator
    Type: item; Glyph: 6; Caption: "Apache 配置文件(&C)"; Action: run; FileName: "%WBEditor%"; parameters: "%WRoot%/serv/httpd/{$_ENV['ANMP_CONF']['apache_verh']}/conf/httpd.conf";
    Type: item; Glyph: 6; Caption: "Apache 错误日志(&E)"; Action: run; FileName: "%WBEditor%"; parameters: "%WRoot%/data/error/apache_error.log";
    Type: item; Glyph: 6; Caption: "Apache 访问日志(&A)"; Action: run; FileName: "%WBEditor%"; parameters: "%WRoot%/data/error/apache_access.log";
    Type: item; Glyph: 6; Caption: "Apache PHP配置(&P)";  Action: run; FileName: "%WBEditor%"; parameters: "%WRoot%/serv/php/{$_ENV['ANMP_CONF']['apache_verp']}/php-apache2handler.ini";
    Type: item; Glyph: 6; Caption: "Apache PHP错误(&Q)";  Action: run; FileName: "%WBEditor%"; parameters: "%WRoot%/data/error/php_error.log";

[Menu.Left.ApacheMenuService]
Type: separator; Caption: "Apache 服务"
    Type: item;   Glyph: 9; Caption: "启动服务(&S)"; Action: service; Service: AnmpApacheServer; ServiceAction: startresume;
    Type: item;  Glyph: 11; Caption: "停止服务(&T)"; Action: service; Service: AnmpApacheServer; ServiceAction: stop;
    Type: item;  Glyph: 12; Caption: "重启服务(&R)"; Action: service; Service: AnmpApacheServer; ServiceAction: restart;
Type: separator
    Type: item;  Glyph: 9; Caption: "测试1::80端口(&P)"; Action: run; FileName: "%WBPHPCli%"; Parameters: "-c . AnmpTestPort.php test apache 127.0.0.1 80"; WorkingDir: "%WRoot%/bin/AeTrayMenu/"; Flags: waituntilterminated;
    Type: item;  Glyph: 9; Caption: "测试2::80端口(&P)"; Action: run; FileName: "%WBPHPCli%"; Parameters: "-c . AnmpTestPort.php test nginx 127.0.0.2 80"; WorkingDir: "%WRoot%/bin/AeTrayMenu/"; Flags: waituntilterminated;
    Type: item;  Glyph: 8; Caption: "安装服务(&I)";   Action: multi; Actions: MultiAction.ApacheServiceInstall;
    Type: item;  Glyph: 7; Caption: "卸载服务(&U)";   Action: multi; Actions: MultiAction.ApacheServiceRemove;

[Menu.Left.ApacheMenuVersion]
Type: separator; Caption: "Apache 版本"
;ANMP_APACHE_VERSION_MENU
;ANMP_APACHE_VERSION_MEN_END

[Menu.Left.MysqlMenu]
Type: separator; Caption: "MySQL 控制中心"
    Type: submenu; Glyph: 3; Caption: "MySQL Service";  SubMenu: Menu.Left.MysqlMenuService;
    Type: submenu; Glyph: 3; Caption: "MySQL Version";  SubMenu: Menu.Left.MysqlMenuVersion;
Type: separator
    Type: item;    Glyph: 0; Caption: "MySQL Console(&C)";  Action: run; FileName: "%WRoot%/serv/mysql/{$_ENV['ANMP_CONF']['mysql_vers']}/bin/mysql.exe"; Parameters: "-u root -p";
    Type: item;    Glyph: 6; Caption: "MySQL 配置文件(&S)"; Action: run; FileName: "%WBEditor%";  parameters: "%WRoot%/serv/mysql/{$_ENV['ANMP_CONF']['mysql_vers']}/my.ini";
    Type: item;    Glyph: 6; Caption: "MySQL 错误日志(&E)"; Action: run; FileName: "%WBEditor%";  parameters: "%WRoot%/data/error/mysql_error.log";

[Menu.Left.MysqlMenuService]
Type: separator; Caption: "MySQL 服务"
    Type: item; Glyph:  9; Caption: "启动服务(&S)"; Action: service; Service: AnmpMysqldServer; ServiceAction: startresume; Flags: ignoreerrors;
    Type: item; Glyph: 11; Caption: "停止服务(&T)"; Action: service; Service: AnmpMysqldServer; ServiceAction: stop;        Flags: ignoreerrors;
    Type: item; Glyph: 12; Caption: "重启服务(&R)"; Action: service; Service: AnmpMysqldServer; ServiceAction: restart;     Flags: ignoreerrors;
Type: separator
    Type: item;  Glyph: 8; Caption: "安装服务(&I)"; Action: multi; Actions: MultiAction.MySQLServiceInstall;
    Type: item;  Glyph: 7; Caption: "卸载服务(&U)"; Action: multi; Actions: MultiAction.MySQLServiceRemove;

[Menu.Left.MysqlMenuVersion]
Type: separator; Caption: "MySQL 版本"
;ANMP_MYSQL_VERSION_MENU
;ANMP_MYSQL_VERSION_MEN_END

[Menu.Left.NginxMenu]
Type: separator; Caption: "Nginx 控制中心"
    Type: item; Glyph:  9; Caption: "启动服务(&S)"; Action: service; Service: AnmpNginxServer; ServiceAction: startresume;
    Type: item; Glyph: 11; Caption: "停止服务(&T)"; Action: service; Service: AnmpNginxServer; ServiceAction: stop;
    Type: item; Glyph: 12; Caption: "重启服务(&R)"; Action: service; Service: AnmpNginxServer; ServiceAction: restart;
Type: separator
    Type: item; Glyph:  9; Caption: "启动全部PHP进程(&1)"; Action: multi; Actions: MultiAction.NginxServiceStartPHP5;
    Type: item; Glyph: 11; Caption: "关闭全部PHP进程(&1)"; Action: multi; Actions: MultiAction.NginxServiceStopPHP5;
Type: separator
    Type: item; Glyph: 12; Caption: "重启PHP-52进程(&2)";  Action: multi; Actions: MultiAction.NginxServiceStartPHP52;
    Type: item; Glyph: 12; Caption: "重启PHP-53进程(&3)";  Action: multi; Actions: MultiAction.NginxServiceStartPHP53;
    Type: item; Glyph: 12; Caption: "重启PHP-54进程(&4)";  Action: multi; Actions: MultiAction.NginxServiceStartPHP54;
    Type: item; Glyph: 12; Caption: "重启PHP-55进程(&5)";  Action: multi; Actions: MultiAction.NginxServiceStartPHP55;
    Type: item; Glyph: 12; Caption: "重启PHP-56进程(&5)";  Action: multi; Actions: MultiAction.NginxServiceStartPHP56;
Type: separator
    Type: item; Glyph:  6; Caption: "Nginx 配置文件(&C)";  Action: run;   FileName: "%WBEditor%"; parameters:"%WRoot%/serv/nginx/{$_ENV['ANMP_CONF']['nginx_vers']}/conf/nginx.conf";
    Type: item; Glyph:  6; Caption: "Nginx 错误日志(&E)";  Action: run;   FileName: "%WBEditor%"; parameters:"%WRoot%/data/error/nginx_error.log";
    Type: item; Glyph:  6; Caption: "Nginx 访问日志(&A)";  Action: run;   FileName: "%WBEditor%"; parameters:"%WRoot%/data/error/nginx_access.log";
Type: separator
    Type: item; Glyph:  8; Caption: "Nginx 安装服务(&I)";  Action: multi; Actions: MultiAction.NginxServiceAllInstall;
    Type: item; Glyph:  7; Caption: "Nginx 卸载服务(&U)";  Action: multi; Actions: MultiAction.NginxServiceAllRemove;


[Menu.Left.Memcached]
Type: separator; Caption: "Memcached 服务"
    Type: item; Glyph:  9; Caption: "启动服务(&S)"; Action: service; Service: AnmpMemcachedServer; ServiceAction: startresume; Flags: ignoreerrors;
    Type: item; Glyph: 11; Caption: "停止服务(&T)"; Action: service; Service: AnmpMemcachedServer; ServiceAction: stop;        Flags: ignoreerrors;
    Type: item; Glyph: 12; Caption: "重启服务(&R)"; Action: service; Service: AnmpMemcachedServer; ServiceAction: restart;     Flags: ignoreerrors;
Type: separator
    Type: item;  Glyph: 8; Caption: "安装服务(&I)"; Action: multi; Actions: MultiAction.memcachedServiceInstall;
    Type: item;  Glyph: 7; Caption: "卸载服务(&U)"; Action: multi; Actions: MultiAction.memcachedServiceRemove;


[MultiAction.ApacheServiceInstall]
Action: run; FileName: "%WRoot%/serv/httpd/{$_ENV['ANMP_CONF']['apache_verh']}/bin/httpd.exe"; Parameters: "-k install -n AnmpApacheServer"; WorkingDir: "%WRoot%/serv/httpd/{$_ENV['ANMP_CONF']['apache_verh']}/"; ShowCmd: hidden; Flags: waituntilterminated;
Action: run; FileName: "SC"; Parameters: "CONFIG AnmpApacheServer start= {$_ENV['ANMP_CONF']['apache_type']}"; ShowCmd: hidden; Flags: waituntilterminated;
Action: run; FileName: "SC"; Parameters: "DESCRIPTION AnmpApacheServer ""-Apache-Server-Description-"""; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: resetservices
Action: service; Service: AnmpApacheServer; ServiceAction: startresume; Flags: ignoreerrors;

[MultiAction.ApacheServiceRemove]
Action: service; Service: AnmpApacheServer; ServiceAction: stop; Flags: ignoreerrors waituntilterminated;
Action: closeservices; Flags: ignoreerrors;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpApacheServer"; ShowCmd: hidden; Flags: waituntilterminated;
Action: resetservices

[MultiAction.MySQLServiceInstall]
Action: run; FileName: "%WRoot%/serv/mysql/{$_ENV['ANMP_CONF']['mysql_vers']}/bin/mysqld.exe"; Parameters: "--install-manual AnmpMysqldServer"; WorkingDir: "%WRoot%/serv/mysql/{$_ENV['ANMP_CONF']['mysql_vers']}/"; ShowCmd: hidden; Flags: waituntilterminated;
Action: run; FileName: "SC"; Parameters: "CONFIG AnmpMysqldServer start= {$_ENV['ANMP_CONF']['mysql_type']}"; ShowCmd: hidden; Flags: waituntilterminated;
Action: run; FileName: "SC"; Parameters: "DESCRIPTION AnmpMysqldServer ""-MySQL-Server-Description-"""; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: resetservices;
Action: service; Service: AnmpMysqldServer; ServiceAction: startresume; Flags: ignoreerrors;

[MultiAction.MySQLServiceRemove]
Action: service; Service: AnmpMysqldServer; ServiceAction: stop; Flags: waituntilterminated ignoreerrors;
Action: closeservices; Flags: ignoreerrors;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpMysqldServer"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: resetservices;

[MultiAction.MemcachedServiceInstall]
Action: service; Service: AnmpMemcachedServer; ServiceAction: stop; Flags: ignoreerrors waituntilterminated;
Action: closeservices; Flags: ignoreerrors;
Action: run; FileName: "%WRoot%/serv/memcached/memcahced.exe"; Parameters: "-d install"; WorkingDir: "%WRoot%/serv/memcached/"; ShowCmd: hidden; Flags: waituntilterminated;
Action: run; FileName: "SC"; Parameters: "CONFIG AnmpMemcachedServer start= {$_ENV['ANMP_CONF']['memcached_type']}"; ShowCmd: hidden; Flags: waituntilterminated;
Action: run; FileName: "SC"; Parameters: "DESCRIPTION AnmpMemcachedServer ""AnmpMemcached/1.2.6 (Win32)"""; ShowCmd: hidden; Flags: waituntilterminated;
Action: resetservices;
Action: service; Service: AnmpMemcachedServer; ServiceAction: startresume; Flags: ignoreerrors;

[MultiAction.MemcachedServiceRemove]
Action: service; Service: AnmpMemcachedServer; ServiceAction: stop; Flags: waituntilterminated ignoreerrors;
Action: closeservices;  Flags: ignoreerrors;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpMemcachedServer"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: resetservices


[MultiAction.StartAllServers]
Action: service; Service: AnmpApacheServer;    ServiceAction: startresume; Flags: ignoreerrors;
Action: service; Service: AnmpMysqldServer;    ServiceAction: startresume; Flags: ignoreerrors;
Action: service; Service: AnmpMemcachedServer; ServiceAction: startresume; Flags: ignoreerrors;
Action: service; Service: AnmpNginxServer;     ServiceAction: startresume; Flags: ignoreerrors;
; Action: multi; Actions: MultiAction.NginxServiceReloadPHP5;

[MultiAction.StopAllServers]
Action: service; Service: AnmpApacheServer;    ServiceAction: stop; Flags: ignoreerrors;
Action: service; Service: AnmpMysqldServer;    ServiceAction: stop; Flags: ignoreerrors;
Action: service; Service: AnmpMemcachedServer; ServiceAction: stop; Flags: ignoreerrors;
Action: service; Service: AnmpNginxServer;     ServiceAction: stop; Flags: ignoreerrors;
Action: multi; Actions: MultiAction.NginxServiceStopPHP5;


[MultiAction.RestartAllServers]
Action: multi; Actions: MultiAction.StopAllServers;
Action: multi; Actions: MultiAction.StartAllServers;


[MultiAction.RemoveAllServers]
Action: service; Service: AnmpApacheServer;    ServiceAction: stop; Flags: waituntilterminated ignoreerrors;
Action: service; Service: AnmpMysqldServer;    ServiceAction: stop; Flags: waituntilterminated ignoreerrors;
Action: service; Service: AnmpMemcachedServer; ServiceAction: stop; Flags: waituntilterminated ignoreerrors;
Action: service; Service: AnmpNginxServer;     ServiceAction: stop; Flags: waituntilterminated ignoreerrors;
Action: closeservices; Flags: ignoreerrors;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpApacheServer";    ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpMysqldServer";    ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpMemcachedServer"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpNginxServer";     ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: resetservices


[MultiAction.AnmpReload]
Action: run; FileName: "%WBPHPExe%"; Parameters: "AnmpReload.php"; WorkingDir: "%WRoot%/bin/AeTrayMenu/"; Flags: waituntilterminated;
Action: closeservices; Flags: ignoreerrors;
Action: resetservices;
Action: readconfig;


[MultiAction.AnmpExit]
; Action: multi; Actions: MultiAction.StopAllServers;
Action: exit





[MultiAction.NginxServiceAllInstall]
Action: closeservices;  Flags: ignoreerrors;
Action: run; FileName: "%WRoot%\\serv\\nginx\\winsw\\winsw-nginx.exe";      Parameters: "install"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "%WRoot%\\serv\\nginx\\winsw\\winsw-php-srv-52.exe"; Parameters: "install"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "%WRoot%\\serv\\nginx\\winsw\\winsw-php-srv-53.exe"; Parameters: "install"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "%WRoot%\\serv\\nginx\\winsw\\winsw-php-srv-54.exe"; Parameters: "install"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "%WRoot%\\serv\\nginx\\winsw\\winsw-php-srv-55.exe"; Parameters: "install"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "%WRoot%\\serv\\nginx\\winsw\\winsw-php-srv-56.exe"; Parameters: "install"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;

Action: run; FileName: "SC"; Parameters: "CONFIG AnmpNginxServer      start= {$_ENV['ANMP_CONF']['nginx_type']}"; ShowCmd: hidden; Flags: waituntilterminated;
Action: run; FileName: "SC"; Parameters: "CONFIG AnmpNginxServerPHP52 start= {$_ENV['ANMP_CONF']['nginx_phps']}"; ShowCmd: hidden; Flags: waituntilterminated;
Action: run; FileName: "SC"; Parameters: "CONFIG AnmpNginxServerPHP53 start= {$_ENV['ANMP_CONF']['nginx_phps']}"; ShowCmd: hidden; Flags: waituntilterminated;
Action: run; FileName: "SC"; Parameters: "CONFIG AnmpNginxServerPHP54 start= {$_ENV['ANMP_CONF']['nginx_phps']}"; ShowCmd: hidden; Flags: waituntilterminated;
Action: run; FileName: "SC"; Parameters: "CONFIG AnmpNginxServerPHP55 start= {$_ENV['ANMP_CONF']['nginx_phps']}"; ShowCmd: hidden; Flags: waituntilterminated;
Action: run; FileName: "SC"; Parameters: "CONFIG AnmpNginxServerPHP56 start= {$_ENV['ANMP_CONF']['nginx_phps']}"; ShowCmd: hidden; Flags: waituntilterminated;


Action: service; Service: AnmpNginxServer; ServiceAction: startresume; Flags: ignoreerrors;
Action: resetservices


[MultiAction.NginxServiceAllRemove]
Action: service; Service: AnmpNginxServer; ServiceAction: stop; Flags: waituntilterminated ignoreerrors;
Action: closeservices;  Flags: ignoreerrors;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpNginxServer"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;	
Action: multi; Actions: MultiAction.NginxServiceRemovePHP5;
Action: resetservices



[MultiAction.NginxServiceStartPHP5]
Action: multi; Actions: MultiAction.NginxServiceStartPHP52;
Action: multi; Actions: MultiAction.NginxServiceStartPHP53;
Action: multi; Actions: MultiAction.NginxServiceStartPHP54;
Action: multi; Actions: MultiAction.NginxServiceStartPHP55;
Action: multi; Actions: MultiAction.NginxServiceStartPHP56;

[MultiAction.NginxServiceStopPHP5]
Action: multi; Actions: MultiAction.NginxServiceStopPHP52;
Action: multi; Actions: MultiAction.NginxServiceStopPHP53;
Action: multi; Actions: MultiAction.NginxServiceStopPHP54;
Action: multi; Actions: MultiAction.NginxServiceStopPHP55;
Action: multi; Actions: MultiAction.NginxServiceStopPHP56;

[MultiAction.NginxServiceRemovePHP5]
Action: multi; Actions: MultiAction.NginxServiceRemovePHP52;
Action: multi; Actions: MultiAction.NginxServiceRemovePHP53;
Action: multi; Actions: MultiAction.NginxServiceRemovePHP54;
Action: multi; Actions: MultiAction.NginxServiceRemovePHP55;
Action: multi; Actions: MultiAction.NginxServiceRemovePHP56;

; 重启全部PHP服务
[MultiAction.NginxServiceStartPHP52]
Action: multi; Actions: MultiAction.NginxServiceStopPHP52;
Action: run; FileName: "SC"; Parameters: "START AnmpNginxServerPHP52"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceStartPHP53]
Action: multi; Actions: MultiAction.NginxServiceStopPHP53;
Action: run; FileName: "SC"; Parameters: "START AnmpNginxServerPHP53"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceStartPHP54]
Action: multi; Actions: MultiAction.NginxServiceStopPHP54;
Action: run; FileName: "SC"; Parameters: "START AnmpNginxServerPHP54"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceStartPHP55]
Action: multi; Actions: MultiAction.NginxServiceStopPHP55;
Action: run; FileName: "SC"; Parameters: "START AnmpNginxServerPHP55"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceStartPHP56]
Action: multi; Actions: MultiAction.NginxServiceStopPHP56;
Action: run; FileName: "SC"; Parameters: "START AnmpNginxServerPHP56"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;

; 卸载全部PHP服务
[MultiAction.NginxServiceRemovePHP52]
Action: multi; Actions: MultiAction.NginxServiceStopPHP52;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpNginxServerPHP52"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceRemovePHP53]
Action: multi; Actions: MultiAction.NginxServiceStopPHP53;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpNginxServerPHP53"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceRemovePHP54]
Action: multi; Actions: MultiAction.NginxServiceStopPHP54;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpNginxServerPHP54"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceRemovePHP55]
Action: multi; Actions: MultiAction.NginxServiceStopPHP55;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpNginxServerPHP55"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceRemovePHP56]
Action: multi; Actions: MultiAction.NginxServiceStopPHP56;
Action: run; FileName: "SC"; Parameters: "DELETE AnmpNginxServerPHP56"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;


; 停止全部PHP服务
[MultiAction.NginxServiceStopPHP52]
Action: run; FileName: "SC"; Parameters: "STOP  AnmpNginxServerPHP52"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im winsw-php-srv-52.exe"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im winsw-php-fpm-52.exe"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im php-cgi-52.exe";       ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceStopPHP53]
Action: run; FileName: "SC"; Parameters: "STOP  AnmpNginxServerPHP53"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im winsw-php-srv-53.exe"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im winsw-php-fpm-53.exe"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im php-cgi-53.exe";       ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceStopPHP54]
Action: run; FileName: "SC"; Parameters: "STOP  AnmpNginxServerPHP54"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im winsw-php-srv-54.exe"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im winsw-php-fpm-54.exe"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im php-cgi-54.exe";       ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceStopPHP55]
Action: run; FileName: "SC"; Parameters: "STOP  AnmpNginxServerPHP55"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im winsw-php-srv-55.exe"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im winsw-php-fpm-55.exe"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im php-cgi-55.exe";       ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
[MultiAction.NginxServiceStopPHP56]
Action: run; FileName: "SC"; Parameters: "STOP  AnmpNginxServerPHP56"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im winsw-php-srv-56.exe"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im winsw-php-fpm-56.exe"; ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;
Action: run; FileName: "taskkill"; Parameters: "/f /im php-cgi-56.exe";       ShowCmd: hidden; Flags: waituntilterminated ignoreerrors;


;ANMP_APACHE_VERSION_SWITCH
;ANMP_MYSQL_VERSION_SWITCH

[DoubleClickAction]
; Action: about;
Action: multi; Actions: MultiAction.AnmpReload;

[AboutText]
AnmpServer Version {$_ENV['ANMP_CONF']['anmp_version']}

Created by 狂飙的小蜗牛
 
QQ: 858908467
E-mail: 858908467@qq.com
 
http://www.anmpserver.com


EOTPL;
?>