File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 412412 <CustomAction Id =" Cleanup5" Execute =" deferred" Impersonate =" no" Return =" ignore" Directory =" INSTALLFOLDER" ExeCommand =" " [SystemFolder]inetsrv\appcmd.exe" uninstall module /module.name:" ModSecurityIIS" " />
413413 <?endif ?>
414414 <!-- Create required directories for ModSecurity with proper permissions for IIS -->
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 & ; icacls c:\inetpub\temp /grant IIS_IUSRS:(OI)(CI)M /T & ; icacls c:\inetpub\logs /grant IIS_IUSRS:(OI)(CI)M /T" " />
415+ <CustomAction Id =" CreateModSecurityDirs" Execute =" deferred" Impersonate =" no" Return =" ignore" Directory =" INSTALLFOLDER" ExeCommand =" powershell .exe -NoProfile -ExecutionPolicy Bypass -Command " New-Item -ItemType Directory -Path ' c:\inetpub\temp', ' c:\inetpub\logs' -Force | Out-Null ; icacls ' c:\inetpub\temp' /grant ' IIS_IUSRS:(OI)(CI)M' /T /Q | Out-Null ; icacls ' c:\inetpub\logs' /grant ' IIS_IUSRS:(OI)(CI)M' /T /Q | Out-Null " " />
416416 <?if $(var.Win64) = " yes" ?>
417417 <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" " />
418418 <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