Using WixUI_InstallDir
I'm allowing the user to select a target directory for installing an add-in. After the user enters the directory, I would like to check if the chosen installation folder has a parent directory matching a certain name.
The folder of on the of the parents of the installation directory must be SPECIFIED_NAME
:
C:/SPECIFIED_NAME/target --> okay
C:/SPECIFIED_NAME/foo/bar/target --> okay
C:/foo/bar/SPECIFIED_NAME/target --> okay
C:/Temp/target --> not okay
Is this possible using WiX 3.x?