Page 1 of 1

feature independent files appear in "User Interview"

Posted: Wed Aug 06, 2014 11:27 pm
by Connor21
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.

Here is my section creation MSICode

Code: Select all

Comment: Define Setup Components
Define Component: Workflow Server
Define Component: Client
Define Component: Client\Documentation
Define Component: Administration\Documentation
Define Component: Administration
Define Component: Tools
Define Component: wPortal\Documentation
Define Component: wPortal
Define Component: Additional\RIP configurations
Define Component: Additional\icc profiles
Define Component: wPortal\Portal Processor
Define Component: Additional
Define Component: Tools\Syslog Server
Define Component: Tools\Service Guardian
Define Component: Workflow Server\Database
Define Component: Workflow Server\Processor (proc/wom)
Define Component: Tools\License Server
Define Component: Client\Control Client
Define Component: wPortal\Web Session Manager
Define Component: Administration\AdminCentral
Define Component: Administration\Syslog Monitor


thanks in advance,
C.

Re: feature independent files appear in "User Interview"

Posted: Thu Aug 07, 2014 4:46 am
by FrancescoT
Dear User,

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;

Code: Select all

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;

Code: Select all

[OFFLINE CONTENT]
Install Files ..\App files\*.* to $TARGETDIR$, include subfolders
Get Component MyFeature Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
End


Hope this helps you.

Re: feature independent files appear in "User Interview"

Posted: Thu Aug 14, 2014 11:02 pm
by Connor21
Francesco,
Thank you for your reply. This leads me in the correct direction. Indeed the code

Code: Select all

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.

Do you have any other suggestion to solve this?

Best Regards,
Connor

Re: feature independent files appear in "User Interview"

Posted: Thu Aug 14, 2014 11:13 pm
by Connor21
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

Re: feature independent files appear in "User Interview"

Posted: Mon Aug 18, 2014 9:33 am
by FrancescoT
Dear 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.

Code: Select all

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


Regards