cvs: win-installer / PHPInstallerBase52.wxs PHPInstallerBase53.wxs PHPInstallerBase53NTS.wxs PHPInstallerBase60.wxs PHPInstallerBase60NTS.wxs
| From: | John Mertic | 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
" in appcmd calls didnt 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=""[%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=""[%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=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']" /commit:apphost" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI "/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RCGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php-cgi.exe',allowed='true',groupId='PHP',description='PHP']"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php5isapi.dll',allowed='true',groupId='PHP',description='PHP']"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHPRC" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]" /commit:apphost" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIaddremove" ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php-cgi.exe" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php5isapi.dll" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php-cgi.exe"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php5isapi.dll"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -add -section:"PHP" -extension:php -path:"[INSTALLDIR]php-cgi.exe"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHPRC:"[INSTALLDIR]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:"[INSTALLDIR]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"" 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=""[%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=""[%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=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']" /commit:apphost" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI "/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RCGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php-cgi.exe',allowed='true',groupId='PHP',description='PHP']"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php5isapi.dll',allowed='true',groupId='PHP',description='PHP']"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHPRC" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]" /commit:apphost" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIaddremove" ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php-cgi.exe" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php5isapi.dll" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php-cgi.exe"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php5isapi.dll"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -add -section:"PHP" -extension:php -path:"[INSTALLDIR]php-cgi.exe"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHPRC:"[INSTALLDIR]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:"[INSTALLDIR]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"" 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=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetInstanceMaxRequests" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI "/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']" /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGIaddremove" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -add -section:"PHP" -extension:php -path:"[INSTALLDIR]php-cgi.exe"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHPRC:"[INSTALLDIR]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:"[INSTALLDIR]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"Ã" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"" 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=""[%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=""[%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=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']" /commit:apphost" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI "/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RCGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php-cgi.exe',allowed='true',groupId='PHP',description='PHP']"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php5isapi.dll',allowed='true',groupId='PHP',description='PHP']"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHPRC" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]" /commit:apphost" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIaddremove" ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php-cgi.exe" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php5isapi.dll" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php-cgi.exe"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php5isapi.dll"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -add -section:"PHP" -extension:php -path:"[INSTALLDIR]php-cgi.exe"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHPRC:"[INSTALLDIR]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:"[INSTALLDIR]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"" 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=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetInstanceMaxRequests" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI "/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']" /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGIaddremove" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -add -section:"PHP" -extension:php -path:"[INSTALLDIR]php-cgi.exe"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHPRC:"[INSTALLDIR]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:"[INSTALLDIR]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"Ã" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"" 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/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=""[%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=""[%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=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']" /commit:apphost" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI "/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RCGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php-cgi.exe',allowed='true',groupId='PHP',description='PHP']"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php5isapi.dll',allowed='true',groupId='PHP',description='PHP']"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHPRC" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]" /commit:apphost" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIaddremove" ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php-cgi.exe" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php5isapi.dll" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php-cgi.exe"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php5isapi.dll"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -add -section:"PHP" -extension:php -path:"[INSTALLDIR]php-cgi.exe"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHPRC:"[INSTALLDIR]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:"[INSTALLDIR]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"" 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=""[%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=""[%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=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']" /commit:apphost" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI "/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RCGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php-cgi.exe',allowed='true',groupId='PHP',description='PHP']"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php5isapi.dll',allowed='true',groupId='PHP',description='PHP']"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHPRC" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]" /commit:apphost" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIaddremove" ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php-cgi.exe" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php5isapi.dll" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php-cgi.exe"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php5isapi.dll"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -add -section:"PHP" -extension:php -path:"[INSTALLDIR]php-cgi.exe"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHPRC:"[INSTALLDIR]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:"[INSTALLDIR]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"" 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=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetInstanceMaxRequests" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI "/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']" /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGIaddremove" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -add -section:"PHP" -extension:php -path:"[INSTALLDIR]php-cgi.exe"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHPRC:"[INSTALLDIR]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:"[INSTALLDIR]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"Ã" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"" 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=""[%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=""[%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=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']" /commit:apphost" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI "/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "-+[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RCGI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php-cgi.exe',allowed='true',groupId='PHP',description='PHP']"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700RISAPI" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:isapiCgiRestriction "-+[path='[INSTALLDIR]php5isapi.dll',allowed='true',groupId='PHP',description='PHP']"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHPRC" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]" /commit:apphost" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700CGIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-CGI',path='*.php',verb='GET,HEAD,POST',modules='CgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe'"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" Return="ignore" - Execute="deferred" + Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIaddremove" ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700ISAPIremove" - ExeCommand=""[WindowsFolder]System32\inetsrv\APPCMD.EXE" SET CONFIG -section:handlers "--[name='PHP-ISAPI',path='*.php',verb='GET,HEAD,POST',modules='IsapiModule',scriptProcessor='[INSTALLDIR]php5isapi.dll'"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php-cgi.exe" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPI" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /AddFile "[INSTALLDIR]php5isapi.dll" 1 PHP 1 "PHP: Hypertext Processor"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSCGIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php-cgi.exe"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iisextVBSISAPIremove" - ExeCommand="cscript "[WindowsFolder]system32\iisext.vbs" /rmfile "[INSTALLDIR]php5isapi.dll"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -add -section:"PHP" -extension:php -path:"[INSTALLDIR]php-cgi.exe"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHPRC:"[INSTALLDIR]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:"[INSTALLDIR]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"" 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=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetInstanceMaxRequests" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI "/[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].instanceMaxRequests:10000" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGI" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHP_FCGI_MAX_REQUESTS',value='10000'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGISetPHPRC" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHPRC',value='[INSTALLDIR]']" /commit:apphost" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /+"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]].environmentVariables.[\[]name='PHPRC',value='[INSTALLDIR]'[\]]" /commit:apphost" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetInstanceMaxRequests" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].instanceMaxRequests:10000 /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGI" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /+"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="iis700FastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/fastCGI /+"[fullPath='[INSTALLDIR]php-cgi.exe'].environmentVariables.[name='PHP_FCGI_MAX_REQUESTS',value='10000'] /commit:apphost" + Directory="ProgramFilesFolder"/> + <CustomAction Id="iis700FastCGIaddremove" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/fastCGI /-"[\[]fullPath='[INSTALLDIR]php-cgi.exe'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="iis700FastCGIremove" - ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG /section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[INSTALLDIR]php-cgi.exe',resourceType='Either'[\]]"" + ExeCommand=""[WindowsFolder]system32\inetsrv\APPCMD.EXE" SET CONFIG -section:system.webServer/handlers /-"[\[]name='PHP_via_FastCGI',path='*.php',verb='*'[\]]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGI" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -add -section:"PHP" -extension:php -path:"[INSTALLDIR]php-cgi.exe"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHPRC" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHPRC:"[INSTALLDIR]"" - Return="ignore" - Execute="deferred" - Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGISetInstanceMaxRequests" ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -InstanceMaxRequests:10000" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> - <CustomAction Id="fcgiconfigJSFastCGISetPHP_FCGI_MAX_REQUESTS" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000" + Directory="ProgramFilesFolder"/> + <CustomAction Id="fcgiconfigJSFastCGISetPHPRCAndMAX_REQUESTS" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000,PHPRC:"[INSTALLDIR]"" Return="ignore" Execute="deferred" Impersonate="no" - Directory="INSTALLDIR"/> + Directory="ProgramFilesFolder"/> <CustomAction Id="fcgiconfigJSFastCGIremove" - ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"Ã" + ExeCommand="cscript "[WindowsFolder]system32\inetsrv\fcgiconfig.js" -remove -section:"PHP"" 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>