I also know that if I put some text into the Directory Selection control, when they click the "..." browse button, it will jump to the place specified by that text. So far so good.
Here's my problem. When I do this:
I want it so that if CATALINA_HOME is "C:\Program Files\temp", it will change to "C:\Program Files\temp\webapps".Push $0
ExpandEnvStrings $0 "%CATALINA_HOME%"
!insertmacro MUI_INSTALLOPTIONS_WRITE "chooseWebtop.ini" "Field 1" "State" "$0\webapps"
Pop $0
What it does instead is change it to: "C:\Program Files\temp/webapps", which the control disagrees with.
Two other tries:
- results in "C:\Program Files\temp\\webapps"!insertmacro MUI_INSTALLOPTIONS_WRITE "chooseWebtop.ini" "Field 1" "State" "$0\\webapps"
- results in "C:\Program Files\tempwebapps"!insertmacro MUI_INSTALLOPTIONS_WRITE "chooseWebtop.ini" "Field 1" "State" "$0webapps"
- results in a compiler warning.!insertmacro MUI_INSTALLOPTIONS_WRITE "chooseWebtop.ini" "Field 1" "State" "$0webapps"
Any ideas? Thanks in advance.