This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Setting INSTALLDIR via Release Flags
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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.
From MSDN:
http://msdn.microsoft.com/en-us/library/aa368295.aspx
From MSDN:
http://msdn.microsoft.com/en-us/library/aa368295.aspx
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)