One of the files in my installation needs to get copied into a location pointed to by a registry key/value pair on the user's destination machine.
Right now, I have a kind of kludgy solution where I have the files set to copy to [TempFolder] in the Components view, and then some custom InstallScript code in my OnFirstUIBefore() function which grabs the value from the registry, then does an MSIGetProperty on [TempFolder] and finally a CopyFile() from [TempFolder] into the path we grabbed from the registry previously.
This works but is all a bit cumbersome. A coworker says that he thinks I SHOULD be able to do an MSISetProperty on a custom property name like MY_RSRC_DIR and then somehow use that custom property in the Components pane to get the file copied to the correct place.
I can get as far as doing the MSISetProperty in an OnBegin() function, but trying to plug that property into the Components view is something I've not been able to get working yet.
Has anyone done this, and if so, how?