开发者

Apache windows uninstall path

开发者 https://www.devze.com 2023-03-31 19:38 出处:网络
I\'m trying to find the path of the uninstall file for apache 2.2. I can see it in add/remove programs, and tried to find the uninstall path in the registry under HKLM\\software\\microsoft\\windows\\c

I'm trying to find the path of the uninstall file for apache 2.2. I can see it in add/remove programs, and tried to find the uninstall path in the registry under HKLM\software\microsoft\windows\currentversion\uninstall but there is no folder for apache...

开发者_StackOverflow中文版

I'm trying to find the path because I'm making an install file which installs apache/php/mysql and want to uninstall any existing installations of those 3 beforehand.

I know that running the apache installer gives you the option of repair/remove if its already installed but I want the uninstall to be silent/automated, so that the end user doesnt have to manually select remove to actually uninstall the existing apache.

I hope this makes sense, thanks in advance.


On my WinXP x32 laptop there is a key for Apache (2.2.13), installed with the MSI, under

HKLM\software\microsoft\windows\currentversion\uninstall

...and the uninstall string is

MsiExec.exe /I{UUID of key}

Just checked a Win2003 machine (Apache 2.2.19) at work and it is the same.

This probably doesn't help you very much, because you need to find the key before you know which UUID to pass to msiexec.

Looking through the other keys, this seems to be similar for all packages that were installed with MSIs.

Which version of Apache are you looking at? Because some older releases in the 2.2 branch didn't use MSI (if I remember rightly), I think they may have used InstallShield?


How did you originally install apache? Most of the time on Windows it is installed with XAMPP, WAMP, or some other similar bundled package. Try a search for php.ini or apache.conf, then look at the directory structure. That should point you in the right direction, you could also try

apache -k uninstall

Also take a look here http://support.esri.com/en/knowledgebase/techarticles/detail/23569


Here are the instructions I followed when I uninstalled my Apache server on Windows 7: http://www.ehow.com/how_7361546_uninstall-apache-windows.html

And one more thing, when doing the command prompt instruction, be sure to run it as Administrator or it will tell you that access is denied.

0

精彩评论

暂无评论...
验证码 换一张
取 消