-
Notifications
You must be signed in to change notification settings - Fork 1.6k
ModSecurity IIS -- Error 1722 on Install #624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @semblano, thanks for the bug report. The bug is confirmed. I've installed the same version of Windows and IIS and I am able to reproduce the bug. This also happens with the release 2.7.7. This is under investigation. |
Hi, Regards, |
As a quick temporary workaround you could distribute all files without any installer in a zip file. Maybe include a batch file for copying the files to the correct directories. It would be enough for experienced server administrators... |
Also the needed VS12 files msvcr120.dll etc. is not included in the installer. |
Hi @Susfu, thank you for the help. You are running the same Windows and IIS version as semblano? The msvcr120.dll is part of Visual Studio redistribution files. As listed here: http://msdn.microsoft.com/en-us/library/8kche8ah.aspx and, in fact, needed by ModSecurity. It is not included on the installer as you have noticed. This dependency is described on our documentation but it can be part of the installer. I've opened a bug to track it at: #627 Regarding to the directories names, ModSecurity can be installed/copied to other directories. e.g., c:\modsecurity. IIS should not refuse to load the DLL because of a "wrong" directory. ModSecurity may not work properly due to permission issues and so on, but the DLL should be loaded. We have to handle better this directory structure, i've opened this bug #628, that describes others issue(s) that somehow are related to the directory structure. That idea of distributing ModSecurity without an installer is really cool. Other software does that and i guess it will be handy to have it, as long as a debug version in the same format. I will left the bug #629 to track it. Are you managed to get it working by those changes? I've made a build using the Win 2008 R2 with Visual Studio 2013 and it did not work out-of-box. Still need to debug it to figure out what is happening. I've just created a IIS Troubleshooting on our wiki page that may be useful for problems like that. |
I have this problem with ModSecurity 2.7.7 on Windows Server 2012 + IIS 8.0 Product: ModSecurity IIS -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action UninstallModule, location: C:\Program Files (x86)\ModSecurity IIS, command: "C:\Windows\SysWOW64\inetsrv\appcmd.exe" uninstall module /module.name:"ModSecurity IIS" P.S. Installing ModSecurity 2.7.7, after uninstalling ModSecurity 2.7.5 Also when open default site, see next: The Module DLL C:\Windows\SysWOW64\inetsrv\ModSecurityIIS.dll failed to load. The data is the error. this library is exist C:\Windows\SysWOW64\inetsrv\ModSecurityIIS.dll Why Product Name: ModSecurity IIS. Product Version: 2.7.6 on the end log: Property(C): IIS = #8 MSI (c) (4C:44) [17:33:01:033]: Windows Installer installed the product. Product Name: ModSecurity IIS. Product Version: 2.7.6. Product Language: 1033. Manufacturer: ModSecurity. Installation success or error status: 0. MSI (c) (4C:44) [17:33:01:033]: Grabbed execution mutex. |
Please notice the installer should not use the 32 bit version of AppCmd.exe (C:\Windows\SysWOW64\inetsrv\appcmd.exe) on a 64 bit machine. Use the 64 bit version (C:\Windows\inetsrv\appcmd.exe) instead. http://technet.microsoft.com/en-us/library/cc730918(v=ws.10).aspx (Also 64 bit binaries should go in "C:\Program Files" instead of "C:\Program Files (x86)") |
Hi @corradolab, thanks for the notice. There is a bug to handle that directory selection at: #628. As explained at #628, a 64bits machine can have the application pools configured to 32bits and so demands the 32bits binaries, in the bug description you can see that we already figured out an way to keep both installed/configured on the IIS. So that, the user will be able to change that configuration after the installation without problems. Apparently, we have to check the machine architecture (32/64b) to call the correct AppCmd, although, it not seems to be a problem on Win 8, 8.1 or 7. I am afraid that we may end up in another bug if we pick the 64bits version of the AppCmd based on the machine architecture only. I mean, the 32 bits is part of the IIS (64b) as well, it could be used in certain conditions, not sure, however, what conditions are those. I am opening the bug #632 so that we can have a discussion on that. |
Hi, the installation using AppCmd or something else or by manual editing should add the following lines to the file
It should look something like this if using Appcmd:
|
Having a similar same issue. How did people get the program installed? Windows 2008 R2 64 bit “There is a problem with the Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.” been reading the IIS troubleshooting info at https://github.com/SpiderLabs/ModSecurity/wiki/IIS-Troubleshooting Below is a link to my logfile when I ran msiexec. https://dl.dropboxusercontent.com/u/15505138/log.txt Appreciate any tips/troubleshooting/assistance/etc you can provide. Thanks. |
All the dependencies of this bug were updated and they are under test right now. The code is available at branch: https://github.com/SpiderLabs/ModSecurity/tree/iis_installer Daily releases can be tracked at: http://www.modsecurity.org/developers/buildbot/builders/Windows%20daily%20release Link to download the installers will be available as soon as we got the daily release stable. |
Fixed by: 831e598 |
Hi I have installed the pre requisites and also configured the paths. But immediately after the installation is complete the above warning and information message is logged. The environment is Please can anyone help as there is no documentation around compatibility of Mod security on this platform. |
Hi GireeshaRS, Try to install Visual C++ 2010 sp1 and Visual C++ 2013. |
Hi Thanks for the response. I have tried installing all versions of VC++ namely 2008, 2010 and 2013. I might have to try SP1 for VC++ 2010. Will give it a go and come back. Many thanks |
Hi I installed SP1 as per your recommendations. Not sure where the problem is but cannot get it to work. This is what I have done so far
Is there something I am missing or have not done correctly for it to work. I can see that in the temp folder under IIS for application pool, the module being loaded and every time I try to use the web site an entry being made in windows log file. I am sure the module is not the issue, is it the supporting reference files or my configurations that is the problem? Please advice. Thanks |
Just to add to my comments, I have used the dependency tracker from 'http://www.dependencywalker.com/' by clicking on 'Download Version 2.2.6000 for x64 [468k]' to verify the executable 'ModSecurityIIS_2.9.0-64b.msi' from mod security web site. When I do that and open the file to view dependencies I get a red warning message with ' No DOS or PE signature found. The file is not valid 32-bit or 64-bit Windows module' in the tool. Not sure if this helps diagnose the issue. |
Hello GireeshaRS . I am also having the exact same issue on the same platform. Were you able to resolve this issue? |
I was able to resolve the issue running the following commands: The problem was that ModSecurity module was registered in IIS but was not installed. To check if you have ModSecurity modules installed in IIS, go to IIS Manager, at server level search for Modules and check if the modules are installed in IIS. |
When installing ModSecurity 2.7.6 for IIS, the following error is displayed:
Product: ModSecurity IIS -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action InstallModule, location: C:\Program Files (x86)\ModSecurity IIS, command: "C:\Windows\SysWOW64\inetsrv\appcmd.exe" install module /name:"ModSecurity IIS" /image:"C:\Windows\SysWOW64\inetsrv\ModSecurityIIS.dll"
Windows Server 2008 R2
IIS 7.5.7600.16385
Visual Studio 2013 vcredist Installed as well.
The text was updated successfully, but these errors were encountered: