cvs: win-installer / PHPInstallerBase52.wxs PHPInstallerBase53.wxs PHPInstallerBase53NTS.wxs PHPInstallerBase60.wxs PHPInstallerBase60NTS.wxs

From: Date: Mon, 26 Jan 2009 18:16:28 +0000
Subject: cvs: win-installer / PHPInstallerBase52.wxs PHPInstallerBase53.wxs PHPInstallerBase53NTS.wxs PHPInstallerBase60.wxs PHPInstallerBase60NTS.wxs
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-55960@lists.php.net to get a copy of this message
jmertic Mon Jan 26 18:16:28 2009 UTC Modified files: /win-installer PHPInstallerBase52.wxs PHPInstallerBase53.wxs PHPInstallerBase53NTS.wxs PHPInstallerBase60.wxs PHPInstallerBase60NTS.wxs Log: Applied fixes contributed from Kanwaljeet Singla <ksingla@microsoft.com>: - Changed custom actions to run in ProgramFilesFolder instead of INSTALLDIR. When commands are run, on a fresh machine INSTALLDIR is not present and command fails. - Previously all custom actions were running after=”InstallInitialize”. Few appcmd commands will pass only if they are run after a previous appcmd call. Made custom action run one after the other. - Appcmd commands had square brackets which were not properly escaped. Fixed that. Few start &quot; in appcmd calls didn’t end properly. Fixed. - Fcgiext.ini has only EnvironmentVars key and all environment variables need to set in one call. Did that. - IIS7 php handle uninstall command need only keys. Removed other attributes. Also moved custom actions to keep install and uninstall custom actions together.

http://cvs.php.net/viewvc.cgi/win-installer/PHPInstallerBase52.wxs?r1=1.34&r2=1.35&diff_format=u Index: win-installer/PHPInstallerBase52.wxs diff -u win-installer/PHPInstallerBase52.wxs:1.34 win-installer/PHPInstallerBase52.wxs:1.35 --- win-installer/PHPInstallerBase52.wxs:1.34 Sun Dec 21 04:21:13 2008 +++ win-installer/PHPInstallerBase52.wxs Mon Jan 26 18:16:26 2009 @@ -553,151 +553,85 @@ Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="netserveCustomCGIVariablesadd" ExeCommand="&quot;[%ProgramFiles]NetServe Web Server\config.exe /add CustomCGIVariables REDIRECT_STATUS^|200']" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="netserveCGIInterpretersremove" ExeCommand="&quot;[%ProgramFiles]NetServe Web Server\config.exe /del CGIInterpreters php^|[INSTALLDIR]php-cgi.exe']" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIadd" ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;-+[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/handlers /+&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']&quot; /commit:apphost" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI &quot;/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;-+[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RCGI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:isapiCgiRestriction &quot;-+[path='[INSTALLDIR]php-cgi.exe',allowed='true',groupId='PHP',description='PHP']&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RISAPI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:isapiCgiRestriction &quot;-+[path='[INSTALLDIR]php5isapi.dll',allowed='true',groupId='PHP',description='PHP']&quot;" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHPRC" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]&quot; /commit:apphost" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGIremove" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;--[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'&quot;" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/handlers /+&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIaddremove" ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /-&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/handlers /-&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/handlers /-&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPIremove" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;--[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGI" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /AddFile &quot;[INSTALLDIR]php-cgi.exe&quot; 1 PHP 1 &quot;PHP: Hypertext Processor&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPI" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /AddFile &quot;[INSTALLDIR]php5isapi.dll&quot; 1 PHP 1 &quot;PHP: Hypertext Processor&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGIremove" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /rmfile &quot;[INSTALLDIR]php-cgi.exe&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPIremove" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /rmfile &quot;[INSTALLDIR]php5isapi.dll&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -add -section:&quot;PHP&quot; -extension:php -path:&quot;[INSTALLDIR]php-cgi.exe&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHPRC:&quot;[INSTALLDIR]&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:&quot;[INSTALLDIR]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -remove -section:&quot;PHP&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="configIIS4" BinaryKey="PHPInstallerScripts" Return="check" @@ -719,7 +653,7 @@ <Custom Action="netserveCGIInterpretersadd" After="InstallInitialize"> <![CDATA[&netserve = 3]]> </Custom> - <Custom Action="netserveCustomCGIVariablesadd" After="InstallInitialize"> + <Custom Action="netserveCustomCGIVariablesadd" After="netserveCGIInterpretersadd"> <![CDATA[&netserve = 3]]> </Custom> <Custom Action="netserveCGIInterpretersremove" After="InstallInitialize"> @@ -728,37 +662,22 @@ <Custom Action="iis700FastCGIadd" After="InstallInitialize"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGI" After="InstallInitialize"> + <Custom Action="iis700FastCGISetInstanceMaxRequests" After="iis700FastCGIadd"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetPHPRC" After="InstallInitialize"> + <Custom Action="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" After="iis700FastCGISetInstanceMaxRequests"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetInstanceMaxRequests" After="InstallInitialize"> + <Custom Action="iis700FastCGISetPHPRC" After="iis700FastCGISetPHP_FCGI_MAX_REQUESTS"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" After="InstallInitialize"> + <Custom Action="iis700FastCGI" After="iis700FastCGISetPHPRC"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700CGI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4CGI = 3]]> - </Custom> - <Custom Action="iis700ISAPI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4ISAPI = 3]]> - </Custom> - <Custom Action="iis700RCGI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4CGI = 3]]> - </Custom> - <Custom Action="iis700RISAPI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4ISAPI = 3]]> - </Custom> - <Custom Action="iis700CGIremove" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4CGI = 2]]> - </Custom> - <Custom Action="iis700FastCGIaddremove" After="InstallInitialize"> + <Custom Action="iis700FastCGIremove" After="InstallInitialize"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> </Custom> - <Custom Action="iis700FastCGIremove" After="InstallInitialize"> + <Custom Action="iis700FastCGIaddremove" After="iis700FastCGIremove"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> </Custom> <Custom Action="iis700ISAPIremove" After="InstallInitialize"> @@ -779,23 +698,20 @@ <Custom Action="fcgiconfigJSFastCGI" After="InstallInitialize"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetPHPRC" After="InstallInitialize"> + <Custom Action="fcgiconfigJSFastCGISetInstanceMaxRequests" After="fcgiconfigJSFastCGI"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetInstanceMaxRequests" After="InstallInitialize"> + <Custom Action="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" After="fcgiconfigJSFastCGISetInstanceMaxRequests"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" After="InstallInitialize"> - <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> + <Custom Action="configIIS4" After="InstallFinalize"> + <![CDATA[VersionNT < 600 AND &iis4FastCGI = 3]]> </Custom> <Custom Action="fcgiconfigJSFastCGIremove" After="InstallInitialize"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 2]]> </Custom> - <Custom Action="unconfigIIS4" After="InstallValidate"> - <![CDATA[VersionNT < 600 AND (&iis4ISAPI = 2 OR &iis4CGI = 2 OR &iis4FastCGI = 2)]]> - </Custom> - <Custom Action="configIIS4" After="InstallFinalize"> - <![CDATA[VersionNT < 600 AND (&iis4ISAPI = 3 OR &iis4CGI = 3 OR &iis4FastCGI = 3)]]> + <Custom Action="unconfigIIS4" After="fcgiconfigJSFastCGIremove"> + <![CDATA[VersionNT < 600 AND &iis4FastCGI = 2]]> </Custom> <Custom Action="unconfigApache" After="InstallValidate"> <![CDATA[&apache13 = 2 OR &apache20 = 2 OR &apache22 = 2 OR &apacheCGI = 2]]> http://cvs.php.net/viewvc.cgi/win-installer/PHPInstallerBase53.wxs?r1=1.10&r2=1.11&diff_format=u Index: win-installer/PHPInstallerBase53.wxs diff -u win-installer/PHPInstallerBase53.wxs:1.10 win-installer/PHPInstallerBase53.wxs:1.11 --- win-installer/PHPInstallerBase53.wxs:1.10 Sun Dec 21 04:21:13 2008 +++ win-installer/PHPInstallerBase53.wxs Mon Jan 26 18:16:26 2009 @@ -524,151 +524,85 @@ Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="netserveCustomCGIVariablesadd" ExeCommand="&quot;[%ProgramFiles]NetServe Web Server\config.exe /add CustomCGIVariables REDIRECT_STATUS^|200']" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="netserveCGIInterpretersremove" ExeCommand="&quot;[%ProgramFiles]NetServe Web Server\config.exe /del CGIInterpreters php^|[INSTALLDIR]php-cgi.exe']" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIadd" ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;-+[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/handlers /+&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']&quot; /commit:apphost" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI &quot;/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;-+[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RCGI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:isapiCgiRestriction &quot;-+[path='[INSTALLDIR]php-cgi.exe',allowed='true',groupId='PHP',description='PHP']&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RISAPI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:isapiCgiRestriction &quot;-+[path='[INSTALLDIR]php5isapi.dll',allowed='true',groupId='PHP',description='PHP']&quot;" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHPRC" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]&quot; /commit:apphost" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGIremove" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;--[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'&quot;" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/handlers /+&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIaddremove" ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /-&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/handlers /-&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/handlers /-&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPIremove" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;--[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGI" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /AddFile &quot;[INSTALLDIR]php-cgi.exe&quot; 1 PHP 1 &quot;PHP: Hypertext Processor&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPI" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /AddFile &quot;[INSTALLDIR]php5isapi.dll&quot; 1 PHP 1 &quot;PHP: Hypertext Processor&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGIremove" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /rmfile &quot;[INSTALLDIR]php-cgi.exe&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPIremove" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /rmfile &quot;[INSTALLDIR]php5isapi.dll&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -add -section:&quot;PHP&quot; -extension:php -path:&quot;[INSTALLDIR]php-cgi.exe&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHPRC:&quot;[INSTALLDIR]&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:&quot;[INSTALLDIR]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -remove -section:&quot;PHP&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="configIIS4" BinaryKey="PHPInstallerScripts" Return="check" @@ -690,7 +624,7 @@ <Custom Action="netserveCGIInterpretersadd" After="InstallInitialize"> <![CDATA[&netserve = 3]]> </Custom> - <Custom Action="netserveCustomCGIVariablesadd" After="InstallInitialize"> + <Custom Action="netserveCustomCGIVariablesadd" After="netserveCGIInterpretersadd"> <![CDATA[&netserve = 3]]> </Custom> <Custom Action="netserveCGIInterpretersremove" After="InstallInitialize"> @@ -699,37 +633,22 @@ <Custom Action="iis700FastCGIadd" After="InstallInitialize"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGI" After="InstallInitialize"> + <Custom Action="iis700FastCGISetInstanceMaxRequests" After="iis700FastCGIadd"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetPHPRC" After="InstallInitialize"> + <Custom Action="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" After="iis700FastCGISetInstanceMaxRequests"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetInstanceMaxRequests" After="InstallInitialize"> + <Custom Action="iis700FastCGISetPHPRC" After="iis700FastCGISetPHP_FCGI_MAX_REQUESTS"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" After="InstallInitialize"> + <Custom Action="iis700FastCGI" After="iis700FastCGISetPHPRC"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700CGI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4CGI = 3]]> - </Custom> - <Custom Action="iis700ISAPI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4ISAPI = 3]]> - </Custom> - <Custom Action="iis700RCGI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4CGI = 3]]> - </Custom> - <Custom Action="iis700RISAPI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4ISAPI = 3]]> - </Custom> - <Custom Action="iis700CGIremove" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4CGI = 2]]> - </Custom> - <Custom Action="iis700FastCGIaddremove" After="InstallInitialize"> + <Custom Action="iis700FastCGIremove" After="InstallInitialize"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> </Custom> - <Custom Action="iis700FastCGIremove" After="InstallInitialize"> + <Custom Action="iis700FastCGIaddremove" After="iis700FastCGIremove"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> </Custom> <Custom Action="iis700ISAPIremove" After="InstallInitialize"> @@ -750,23 +669,20 @@ <Custom Action="fcgiconfigJSFastCGI" After="InstallInitialize"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetPHPRC" After="InstallInitialize"> + <Custom Action="fcgiconfigJSFastCGISetInstanceMaxRequests" After="fcgiconfigJSFastCGI"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetInstanceMaxRequests" After="InstallInitialize"> + <Custom Action="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" After="fcgiconfigJSFastCGISetInstanceMaxRequests"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" After="InstallInitialize"> - <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> + <Custom Action="configIIS4" After="InstallFinalize"> + <![CDATA[VersionNT < 600 AND &iis4FastCGI = 3]]> </Custom> <Custom Action="fcgiconfigJSFastCGIremove" After="InstallInitialize"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 2]]> </Custom> - <Custom Action="unconfigIIS4" After="InstallValidate"> - <![CDATA[VersionNT < 600 AND (&iis4ISAPI = 2 OR &iis4CGI = 2 OR &iis4FastCGI = 2)]]> - </Custom> - <Custom Action="configIIS4" After="InstallFinalize"> - <![CDATA[VersionNT < 600 AND (&iis4ISAPI = 3 OR &iis4CGI = 3 OR &iis4FastCGI = 3)]]> + <Custom Action="unconfigIIS4" After="fcgiconfigJSFastCGIremove"> + <![CDATA[VersionNT < 600 AND &iis4FastCGI = 2]]> </Custom> <Custom Action="unconfigApache" After="InstallValidate"> <![CDATA[&apache13 = 2 OR &apache20 = 2 OR &apache22 = 2 OR &apacheCGI = 2]]> http://cvs.php.net/viewvc.cgi/win-installer/PHPInstallerBase53NTS.wxs?r1=1.9&r2=1.10&diff_format=u Index: win-installer/PHPInstallerBase53NTS.wxs diff -u win-installer/PHPInstallerBase53NTS.wxs:1.9 win-installer/PHPInstallerBase53NTS.wxs:1.10 --- win-installer/PHPInstallerBase53NTS.wxs:1.9 Sun Dec 21 04:21:13 2008 +++ win-installer/PHPInstallerBase53NTS.wxs Mon Jan 26 18:16:26 2009 @@ -418,73 +418,67 @@ Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGIaddremove" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /-&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]&quot;" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetInstanceMaxRequests" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI &quot;/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/handlers /+&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']&quot; /commit:apphost" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/handlers /+&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGIaddremove" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /-&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/handlers /-&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/handlers /-&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -add -section:&quot;PHP&quot; -extension:php -path:&quot;[INSTALLDIR]php-cgi.exe&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHPRC:&quot;[INSTALLDIR]&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:&quot;[INSTALLDIR]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -remove -section:&quot;PHP&quot;ß" + ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -remove -section:&quot;PHP&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="configIIS4" BinaryKey="PHPInstallerScripts" Return="check" @@ -493,50 +487,47 @@ BinaryKey="PHPInstallerScripts" Return="check" VBScriptCall="unconfigIIS4" /> - + <InstallExecuteSequence> <Custom Action="iis700FastCGIadd" After="InstallInitialize"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGIaddremove" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> - </Custom> - <Custom Action="iis700FastCGI" After="InstallInitialize"> + <Custom Action="iis700FastCGISetInstanceMaxRequests" After="iis700FastCGIadd"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetPHPRC" After="InstallInitialize"> + <Custom Action="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" After="iis700FastCGISetInstanceMaxRequests"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetInstanceMaxRequests" After="InstallInitialize"> + <Custom Action="iis700FastCGISetPHPRC" After="iis700FastCGISetPHP_FCGI_MAX_REQUESTS"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" After="InstallInitialize"> + <Custom Action="iis700FastCGI" After="iis700FastCGISetPHPRC"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> <Custom Action="iis700FastCGIremove" After="InstallInitialize"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> </Custom> + <Custom Action="iis700FastCGIaddremove" After="iis700FastCGIremove"> + <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> + </Custom> <Custom Action="fcgiconfigJSFastCGI" After="InstallInitialize"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetPHPRC" After="InstallInitialize"> + <Custom Action="fcgiconfigJSFastCGISetInstanceMaxRequests" After="fcgiconfigJSFastCGI"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetInstanceMaxRequests" After="InstallInitialize"> + <Custom Action="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" After="fcgiconfigJSFastCGISetInstanceMaxRequests"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" After="InstallInitialize"> - <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> + <Custom Action="configIIS4" After="InstallFinalize"> + <![CDATA[VersionNT < 600 AND &iis4FastCGI = 3]]> </Custom> <Custom Action="fcgiconfigJSFastCGIremove" After="InstallInitialize"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 2]]> </Custom> - <Custom Action="unconfigIIS4" After="InstallValidate"> + <Custom Action="unconfigIIS4" After="fcgiconfigJSFastCGIremove"> <![CDATA[VersionNT < 600 AND &iis4FastCGI = 2]]> </Custom> - <Custom Action="configIIS4" After="InstallFinalize"> - <![CDATA[VersionNT < 600 AND &iis4FastCGI = 3]]> - </Custom> <RemoveExistingProducts After="InstallValidate" /> </InstallExecuteSequence> http://cvs.php.net/viewvc.cgi/win-installer/PHPInstallerBase60.wxs?r1=1.24&r2=1.25&diff_format=u Index: win-installer/PHPInstallerBase60.wxs diff -u win-installer/PHPInstallerBase60.wxs:1.24 win-installer/PHPInstallerBase60.wxs:1.25 --- win-installer/PHPInstallerBase60.wxs:1.24 Sun Dec 21 04:21:13 2008 +++ win-installer/PHPInstallerBase60.wxs Mon Jan 26 18:16:26 2009 @@ -524,151 +524,85 @@ Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="netserveCustomCGIVariablesadd" ExeCommand="&quot;[%ProgramFiles]NetServe Web Server\config.exe /add CustomCGIVariables REDIRECT_STATUS^|200']" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="netserveCGIInterpretersremove" ExeCommand="&quot;[%ProgramFiles]NetServe Web Server\config.exe /del CGIInterpreters php^|[INSTALLDIR]php-cgi.exe']" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIadd" ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;-+[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/handlers /+&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']&quot; /commit:apphost" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI &quot;/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;-+[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RCGI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:isapiCgiRestriction &quot;-+[path='[INSTALLDIR]php-cgi.exe',allowed='true',groupId='PHP',description='PHP']&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RISAPI" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:isapiCgiRestriction &quot;-+[path='[INSTALLDIR]php5isapi.dll',allowed='true',groupId='PHP',description='PHP']&quot;" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHPRC" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]&quot; /commit:apphost" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGIremove" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;--[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'&quot;" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/handlers /+&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIaddremove" ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /-&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/handlers /-&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/handlers /-&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPIremove" - ExeCommand="&quot;[WindowsFolder]System32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:handlers &quot;--[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGI" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /AddFile &quot;[INSTALLDIR]php-cgi.exe&quot; 1 PHP 1 &quot;PHP: Hypertext Processor&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPI" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /AddFile &quot;[INSTALLDIR]php5isapi.dll&quot; 1 PHP 1 &quot;PHP: Hypertext Processor&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGIremove" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /rmfile &quot;[INSTALLDIR]php-cgi.exe&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPIremove" - ExeCommand="cscript &quot;[WindowsFolder]system32\iisext.vbs&quot; /rmfile &quot;[INSTALLDIR]php5isapi.dll&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -add -section:&quot;PHP&quot; -extension:php -path:&quot;[INSTALLDIR]php-cgi.exe&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHPRC:&quot;[INSTALLDIR]&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:&quot;[INSTALLDIR]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -remove -section:&quot;PHP&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="configIIS4" BinaryKey="PHPInstallerScripts" Return="check" @@ -690,7 +624,7 @@ <Custom Action="netserveCGIInterpretersadd" After="InstallInitialize"> <![CDATA[&netserve = 3]]> </Custom> - <Custom Action="netserveCustomCGIVariablesadd" After="InstallInitialize"> + <Custom Action="netserveCustomCGIVariablesadd" After="netserveCGIInterpretersadd"> <![CDATA[&netserve = 3]]> </Custom> <Custom Action="netserveCGIInterpretersremove" After="InstallInitialize"> @@ -699,37 +633,22 @@ <Custom Action="iis700FastCGIadd" After="InstallInitialize"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGI" After="InstallInitialize"> + <Custom Action="iis700FastCGISetInstanceMaxRequests" After="iis700FastCGIadd"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetPHPRC" After="InstallInitialize"> + <Custom Action="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" After="iis700FastCGISetInstanceMaxRequests"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetInstanceMaxRequests" After="InstallInitialize"> + <Custom Action="iis700FastCGISetPHPRC" After="iis700FastCGISetPHP_FCGI_MAX_REQUESTS"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" After="InstallInitialize"> + <Custom Action="iis700FastCGI" After="iis700FastCGISetPHPRC"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700CGI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4CGI = 3]]> - </Custom> - <Custom Action="iis700ISAPI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4ISAPI = 3]]> - </Custom> - <Custom Action="iis700RCGI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4CGI = 3]]> - </Custom> - <Custom Action="iis700RISAPI" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4ISAPI = 3]]> - </Custom> - <Custom Action="iis700CGIremove" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4CGI = 2]]> - </Custom> - <Custom Action="iis700FastCGIaddremove" After="InstallInitialize"> + <Custom Action="iis700FastCGIremove" After="InstallInitialize"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> </Custom> - <Custom Action="iis700FastCGIremove" After="InstallInitialize"> + <Custom Action="iis700FastCGIaddremove" After="iis700FastCGIremove"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> </Custom> <Custom Action="iis700ISAPIremove" After="InstallInitialize"> @@ -750,23 +669,20 @@ <Custom Action="fcgiconfigJSFastCGI" After="InstallInitialize"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetPHPRC" After="InstallInitialize"> + <Custom Action="fcgiconfigJSFastCGISetInstanceMaxRequests" After="fcgiconfigJSFastCGI"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetInstanceMaxRequests" After="InstallInitialize"> + <Custom Action="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" After="fcgiconfigJSFastCGISetInstanceMaxRequests"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" After="InstallInitialize"> - <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> + <Custom Action="configIIS4" After="InstallFinalize"> + <![CDATA[VersionNT < 600 AND &iis4FastCGI = 3]]> </Custom> <Custom Action="fcgiconfigJSFastCGIremove" After="InstallInitialize"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 2]]> </Custom> - <Custom Action="unconfigIIS4" After="InstallValidate"> - <![CDATA[VersionNT < 600 AND (&iis4ISAPI = 2 OR &iis4CGI = 2 OR &iis4FastCGI = 2)]]> - </Custom> - <Custom Action="configIIS4" After="InstallFinalize"> - <![CDATA[VersionNT < 600 AND (&iis4ISAPI = 3 OR &iis4CGI = 3 OR &iis4FastCGI = 3)]]> + <Custom Action="unconfigIIS4" After="fcgiconfigJSFastCGIremove"> + <![CDATA[VersionNT < 600 AND &iis4FastCGI = 2]]> </Custom> <Custom Action="unconfigApache" After="InstallValidate"> <![CDATA[&apache13 = 2 OR &apache20 = 2 OR &apache22 = 2 OR &apacheCGI = 2]]> http://cvs.php.net/viewvc.cgi/win-installer/PHPInstallerBase60NTS.wxs?r1=1.10&r2=1.11&diff_format=u Index: win-installer/PHPInstallerBase60NTS.wxs diff -u win-installer/PHPInstallerBase60NTS.wxs:1.10 win-installer/PHPInstallerBase60NTS.wxs:1.11 --- win-installer/PHPInstallerBase60NTS.wxs:1.10 Sun Dec 21 04:21:13 2008 +++ win-installer/PHPInstallerBase60NTS.wxs Mon Jan 26 18:16:26 2009 @@ -418,73 +418,67 @@ Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGIaddremove" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /-&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]&quot;" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetInstanceMaxRequests" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI &quot;/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/handlers /+&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']&quot; /commit:apphost" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /+&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]&quot; /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/handlers /+&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/fastCGI /+&quot;[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGIaddremove" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/fastCGI /-&quot;[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG /section:system.webServer/handlers /-&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]&quot;" + ExeCommand="&quot;[WindowsFolder]system32\inetsrv\APPCMD.EXE&quot; SET CONFIG -section:system.webServer/handlers /-&quot;[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -add -section:&quot;PHP&quot; -extension:php -path:&quot;[INSTALLDIR]php-cgi.exe&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHPRC:&quot;[INSTALLDIR]&quot;" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -set -section:&quot;PHP&quot; -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:&quot;[INSTALLDIR]&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" - ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -remove -section:&quot;PHP&quot;ß" + ExeCommand="cscript &quot;[WindowsFolder]system32\inetsrv\fcgiconfig.js&quot; -remove -section:&quot;PHP&quot;" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="configIIS4" BinaryKey="PHPInstallerScripts" Return="check" @@ -493,50 +487,47 @@ BinaryKey="PHPInstallerScripts" Return="check" VBScriptCall="unconfigIIS4" /> - + <InstallExecuteSequence> <Custom Action="iis700FastCGIadd" After="InstallInitialize"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGIaddremove" After="InstallInitialize"> - <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> - </Custom> - <Custom Action="iis700FastCGI" After="InstallInitialize"> + <Custom Action="iis700FastCGISetInstanceMaxRequests" After="iis700FastCGIadd"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetPHPRC" After="InstallInitialize"> + <Custom Action="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" After="iis700FastCGISetInstanceMaxRequests"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetInstanceMaxRequests" After="InstallInitialize"> + <Custom Action="iis700FastCGISetPHPRC" After="iis700FastCGISetPHP_FCGI_MAX_REQUESTS"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" After="InstallInitialize"> + <Custom Action="iis700FastCGI" After="iis700FastCGISetPHPRC"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 3]]> </Custom> <Custom Action="iis700FastCGIremove" After="InstallInitialize"> <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> </Custom> + <Custom Action="iis700FastCGIaddremove" After="iis700FastCGIremove"> + <![CDATA[VersionNT >= 600 AND &iis4FastCGI = 2]]> + </Custom> <Custom Action="fcgiconfigJSFastCGI" After="InstallInitialize"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetPHPRC" After="InstallInitialize"> + <Custom Action="fcgiconfigJSFastCGISetInstanceMaxRequests" After="fcgiconfigJSFastCGI"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetInstanceMaxRequests" After="InstallInitialize"> + <Custom Action="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" After="fcgiconfigJSFastCGISetInstanceMaxRequests"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> </Custom> - <Custom Action="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" After="InstallInitialize"> - <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 3]]> + <Custom Action="configIIS4" After="InstallFinalize"> + <![CDATA[VersionNT < 600 AND &iis4FastCGI = 3]]> </Custom> <Custom Action="fcgiconfigJSFastCGIremove" After="InstallInitialize"> <![CDATA[((VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 2)) AND &iis4FastCGI = 2]]> </Custom> - <Custom Action="unconfigIIS4" After="InstallValidate"> + <Custom Action="unconfigIIS4" After="fcgiconfigJSFastCGIremove"> <![CDATA[VersionNT < 600 AND &iis4FastCGI = 2]]> </Custom> - <Custom Action="configIIS4" After="InstallFinalize"> - <![CDATA[VersionNT < 600 AND &iis4FastCGI = 3]]> - </Custom> <RemoveExistingProducts After="InstallValidate" /> </InstallExecuteSequence>
« previous php.cvs (#55960) next »