The setup code you provided thus far looks correct.
Some other part of your installation must be changing APPLICATIONFOLDER
so that it ends up resolving to [ProgramFilesFolder]HDSS.Net
. Search around for other references to APPLICATIONFOLDER
.
Alternatively, take a look at a verbose log file. It should show you when APPLICATIONFOLDER
is being overridden.