cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
drew
Level 2

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.
Labels (1)
0 Kudos
(1) Reply
alphacz
Level 5

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.

From MSDN:
http://msdn.microsoft.com/en-us/library/aa368295.aspx
0 Kudos