Dec 23, 2008 08:27 AM
Setting INSTALLDIR via Release Flags
I'm using a Basic MSI project, and I'd like to keep it that way if possible. I've looked at the other threads on this issue, and none of them seem to address my issue. I'm using a SetProperty custom action, which runs just before CostInitialize. The custom action settings and the error message are attached. Using the environment variable %ProgramFiles would be acceptable as well, instead of using INSTALLDIR in the property value, but I could not get that to work either.
Dec 31, 2008 03:14 PM
I believe the problem is that the INSTALLDIR property hasn't been initialized yet (via the directory table). You'll need to sequence your custom action after CostFinalize, which is when all of the directory properties are resolved.