Skip to content
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

Can't uninstall 2.9.2 on Win/IIS 10 #1868

Closed
dmarlow opened this issue Aug 8, 2018 · 6 comments
Closed

Can't uninstall 2.9.2 on Win/IIS 10 #1868

dmarlow opened this issue Aug 8, 2018 · 6 comments
Assignees
Milestone

Comments

@dmarlow
Copy link

dmarlow commented Aug 8, 2018

I get a popup saying "This setup requires IIS 7.0 or 8.0"

image

@victorhora victorhora self-assigned this Aug 14, 2018
@victorhora
Copy link
Contributor

Hi @dmarlow,

I believe your issue might be related to #931 which should be fixed by 51f1ff6

Could you please provide more details? You were able to install but no uninstall / reinstall?

@victorhora
Copy link
Contributor

@dmarlow

I've noticed there's already an issue open for this case here: #1122

I'm tagging #1122 for further investigation prior to 2.9.3 release. This being said, do you mind sharing those details on that issue so as to avoid duplicates?

Thanks!

@victorhora
Copy link
Contributor

Closing due lack of feedback. #1122 remains tagged for further investigation prior to 2.9.3 release.

@victorhora
Copy link
Contributor

Following up on the MSI issues reported at #1122 / #948, I can confirm that the issue reported here happens on Windows 10.

The problem seems to be related with the condition MSIUSEREALADMINDETECTION set here not being satisfied by default.

I believe it has to do with the that Windows 10 handles "RunAs" here. If you simply re-run the installer as Administrator, the uninstaller will work as expected.

There should be multiple ways to do this on Windows 10, but one that worked for me was running cmd.exe as Administrator and then running msiexec /i ModSecurityIIS_A.B.C-Zb.msi.
This will make sure that the MSI is run as admin and then uninstallation should work as expected

Alternatively, one should be able to uninstall also by simply heading to the "Apps & features" (aka "Add/Remove Programs") and select to trigger the uninstaller from there. This method correctly triggers the UAC prompt and the uninstall works as expected. See below for reference:

image

@victorhora victorhora reopened this Nov 2, 2018
@victorhora victorhora added this to the v2.9.3 milestone Nov 2, 2018
@victorhora
Copy link
Contributor

Commit 1843b79 make the error message more helpful for these edge cases.

Thanks for your report @dmarlow :)

@mwahl217
Copy link

mwahl217 commented Dec 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants