While running Inno Setup, I have the need of making sure the drive letter of the install directory is uppercase after being entered by a user.
The reason: Apache’s mod_xsendfile requires it. It doesn’t work (in httpd.conf) if the drive letter is entered in lower case. And only the drive letter must be changed; Apache can’t handle it either if any characters of a path don’t match the case of the path in the file system (despite Windows being case-insensitive).
How do I make the Inno Setup {app} constant automatically capitalize its first character?
This piece of code should keep the first letter of the directory edit box always upper case: