So I'm trying to find a command to uninstall apache from windows that I have installed earlier with an NSIS script.
Basically apache is part of a package of aplications we use for our program, and when uninstalling our program we uninstall them all. Already working for postgres, java and ruby, but I'm not finding any command for apache.
I tried the wmic command, but it required user to confirm the action. There isn't any httpd uninstall command?
httpd -k uninstall
simply removes the service.
Thanks
Click the Windows "Start" button and select "Computer." Double-click the "C:" drive icon and then navigate to the folder containing your Apache installation ("C:\Program Files" by default). Right-click the "Apache Group" folder and select "Delete."
To Uninstall in Graphical ModeNavigate to the install-dir /bin directory. (UNIX) Type ./uninstall . (Windows) Double-click uninstall.exe or type uninstall from the command line. You can also use the Control Panel > Add or Remove Programs option, or use Start > Programs > Oracle > Web Server 7.0 > Uninstall.
sc delete Apache2.4
Remove service in windows
On Windows 8.1 I had to run cmd.exe as administrator (even though I was logged in as admin). Otherwise I got an error when trying to execute: httpd.exe -k uninstall
Error: C:\Program Files\Apache\bin>(OS 5)Access is denied. : AH00373: Apache2.4: OpenS ervice failed
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With