Is there a way to get an environment variable in WIX into a property?
I\'m trying to get the USERPROFILE with:
Property Id=\"UserFolder\
Alternative is to use SetProperty element - it will effectively create type 51 custom Action. It is simpler than using Custom Action as you don't need to separately specify the schedule for it - everything is done in one element. In my example below, I set the property only if its empty, i.e. was not passed from the command line.
Example: