I want to save the path of my application, installed with wix, in the windows registry. I tried the following:
Just remove the # sign, leave only [INSTALLLOCATION] and it should work. The # symbol referes to file keys. Without the # it refers to a property and all directories become properties. See the article about Formatted data type for more details.
#
[INSTALLLOCATION]