I'm attempting to set the default path (that the user is prompted for) to the path where the application was last installed.
I've read every post related to the subject that I can find, to no avail.
Currently, I havea search called "GETREGTARGETDIR". It specifies a registry entry that I've manually set.
I also have defined a custom action that sets APPDIR to [GETREGTARGETDIR] I've tried placing this custom action in every location that accepts Directory Set With Formatted. I settled on MigrateFeatureStates. I was able to set a hard-coded path here ('c:\test\test') and that worked - it appeared in the dialog where the user chooses the install path. But when I changed it to a variable created in the search [GETREGTARGETDIR], it fails.
I presume that the search hasn't happened yet.
So, what steps can I take to read the prior install dir from the registry and use that as the default install location that the user sees and can modify?
Thanks
-pete