File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 381381 <Custom Action =" Cleanup3" Before =" Cleanup2" ><![CDATA[ NOT Installed AND IIS_SETUP]]> </Custom >
382382 <Custom Action =" Cleanup4" Before =" Cleanup3" ><![CDATA[ NOT Installed AND IIS_SETUP]]> </Custom >
383383 <Custom Action =" Cleanup5" Before =" Cleanup4" ><![CDATA[ NOT Installed AND IIS_SETUP]]> </Custom >
384+ <Custom Action =" CreateModSecurityDirs" After =" Cleanup1" ><![CDATA[ NOT Installed AND IIS_SETUP]]> </Custom >
384385 <?if $(var.Win64) = " yes" ?>
385386 <Custom Action =" InstallModule64" Before =" InstallFinalize" ><![CDATA[ NOT Installed AND IIS_SETUP]]> </Custom >
386387 <Custom Action =" InstallModule32" After =" InstallModule64" ><![CDATA[ NOT Installed AND IIS_SETUP]]> </Custom >
410411 <CustomAction Id =" Cleanup4" Execute =" deferred" Impersonate =" no" Return =" ignore" Directory =" INSTALLFOLDER" ExeCommand =" " [SystemFolder]inetsrv\appcmd.exe" uninstall module /module.name:" ModSecurity IIS" " />
411412 <CustomAction Id =" Cleanup5" Execute =" deferred" Impersonate =" no" Return =" ignore" Directory =" INSTALLFOLDER" ExeCommand =" " [SystemFolder]inetsrv\appcmd.exe" uninstall module /module.name:" ModSecurityIIS" " />
412413 <?endif ?>
414+ <!-- Create required directories for ModSecurity -->
415+ <CustomAction Id =" CreateModSecurityDirs" Execute =" deferred" Impersonate =" no" Return =" ignore" Directory =" INSTALLFOLDER" ExeCommand =" cmd.exe /c " if not exist c:\inetpub\temp mkdir c:\inetpub\temp & if not exist c:\inetpub\logs mkdir c:\inetpub\logs" " />
413416 <?if $(var.Win64) = " yes" ?>
414417 <CustomAction Id =" InstallModule32" Execute =" deferred" Impersonate =" no" Return =" check" Directory =" INSTALLFOLDER" ExeCommand =" " [System64Folder]inetsrv\appcmd.exe" install module /name:" ModSecurity IIS (64bits)" /image:" %SystemRoot%\System32\inetsrv\ModSecurityIIS.dll" /preCondition:" bitness64" " />
415418 <CustomAction Id =" InstallModule64" Execute =" deferred" Impersonate =" no" Return =" check" Directory =" INSTALLFOLDER" ExeCommand =" " [System64Folder]inetsrv\appcmd.exe" install module /name:" ModSecurity IIS (32bits)" /image:" %SystemRoot%\SysWOW64\inetsrv\ModSecurityIIS.dll" /preCondition:" bitness32" " />
You can’t perform that action at this time.
0 commit comments