Edit Apache httpd.conf
I'm trying to build an installer that should edit httpd.conf from Apache and have two problems.
1. To find the Apache installation I read the key HKLM "Software\Apache Group\Apache\2.0.48" "ServerRoot". It works but what if there is another version of apache installed. How do I find the version number?
2. I'm writing paths for example DocumentRoot to $INSTDIR using a replace script I found NSIS Archive but I have backslashes i my $INSTDIR variable and needs slashes for httpd.conf. How do I fix that?
Regards,
Johannes