Hello!
I have the following installation packages for my project:
1. Framework, with some basic environment
2. a set of Plugins, each dependent on the framework.
And the situation is, that I would like to:
1. prevent Plugins from installing if Framework is not present - this can be easily done via Custom Action
2. Set install dir for each Plugin as a subdir of Framework install dir. Currently I'm doing this by passing Framework install dir as environment variable, and by setting the TARGETDIR in Plugins to [%FRAMEWORK]\Plugins\MyPlugin...
But the problem is when I'm trying to install a plugin on machine on which there is no Framework present, so %FRAMEWORK variable is empty, and TARGETDIR has the value "\Plugins\MyPlugin...", which in turn makes instaler to show a message "Cannot access resource \Plugins...", and stop installation.
My question is: is it possible to perform Custom Action BEFORE processing of TARGETDIR and other MSI properties?
Or how can I make my install package reacting properly to missing Framework?
Best regards and thanks in advance for help
Alexandra Duda