checkExists for the File Tag can be circumvented
Status: Beta
Brought to you by:
teknopaul
checkExists for the File Tag can be circumvented if you hit enter twice.
I used a tag that looks like this:
<file property="MY_FILE"
displayText="My file"
defaultValue=""
checkExists="true"/>
From the UI, this works perfectly. If the user enters an invalid filename, or enters nothing, the installer will prompt that the file does not exist.
From text mode, it will prompt that the file does not exist, then provide the user with default. If the user hits enter on default, it looks like it does not try to validate default.
The install continues with an invalid file, or in this case, null.
Logged In: YES
user_id=1962851
Originator: YES
As long as the defaultValue is null, it will not validate again when the user hits enter (text mode)