Convert $INSTDIR to UNIX-style Path
Hello. I have a strange problem that I'm not sure how to solve. I'm building a custom installer for the Apache web server with NSIS v1.98. The installer includes a function that builds the Apache configuration file (httpd.conf). This file contains settings that require a listing of the installation directory path, but unfortunately the backslashes (\) must be converted to UNIX-style slashes (/). I'm at a loss for how to convert $INSTDIR to this format. I considered writing the file and then using the search for string method listed in other messages in this forum, but I can't use it because there are backslashes in other settings within the file that cannot be replaced with a forward slash.
Any ideas are greatly appreciated.
Regards,
Garrel Renick