Hi,
In my IA project I have created features/components and deleted, moved and edited them. Now I want to add some feature independent files and they occur in the "Setup User In Interview" section and not in the [OFFLINE CONTENT] section where I would expect them. If I cut and paste the Install Files to the [OFFLINE CONTENT] they are not displayed if I select the "feature independent" filter in the files editor of the IA IDE. They appear if I select the "Workflow Server\Database" filter.
I have no idea how to fix this except starting the project from scratch again. I'd be happy about some help.
this happens because very probably the Install Files commands of such files, are erroneously comprised within the feature selection state in your MSI code.
For example, the following code associates the files installation with a specific Feature selection;
Get Component MyFeature Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
[OFFLINE CONTENT]
Install Files ..\App files\*.* to $TARGETDIR$, include subfolders
End
Instead the following code installs the same file, regardless of the Feature selection;
[OFFLINE CONTENT]
Install Files ..\App files\*.* to $TARGETDIR$, include subfolders
Get Component MyFeature Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
End
Get Component Workflow Server\Database Selection State into Variable SELECTED
appears multiple times in my MSIcode, because I want to run programs depending on installed features. For example I want to create databases or patch configuration files. Maybe a solution is to use special variables for the features to be checked at multiple locations instead of reusing SELECTED.
Hi,
Maybe I did not unserstand your first reply correctly.
Is it true that, only if I use the SELECTED variable, the component appears in the list ? If I use another variable it will not be listed there ?
Best Regards,
Connor
yes, it's true that the SELECT variable must be used .... but you can set to TRUE a custom variable, in order to run a custom process later in your script.
Set Variable MyFeatureProcess to FALSE
Get Component MyFeature Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
[OFFLINE CONTENT]
Install Files ..\App files\*.* to $TARGETDIR$, include subfolders
Set Variable MyFeatureProcess to TRUE
End
.................
if Variable MyFeatureProcess Equals TRUE
... Do Something!
End