Restore default path on Directory page after validation
How do you change the path presented to the user on the directory page after a user-specified path fails validation? It returns the user to the directory page with the invalid field that was just rejected. How do we return the value to some type of default
ie:
Default ($INSTDIR) is set to C:\Program Files\Xyz
User browses to C:\Recycler, which fails the validation
After notifying the user that C:\Recycler is not an allowable destination, how do we change the path back to C:\Program Files\Xyz?
I have tried "StrCpy $INSTDIR C:\Program Files\Xyz in the pre and leave section of the directory page, but they only work if the user selects the "Back" and then "Next" button