feature independent files appear in "User Interview"

Got a problem you cannot solve? Try here.
Connor21
Posts: 4
Joined: Wed Aug 06, 2014 5:20 am
Location: Kiel/Germany
Contact:

feature independent files appear in "User Interview"

Postby Connor21 » Wed Aug 06, 2014 11:27 pm

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.
Attachments
iacomp.png
multiple groups in drop down, but only one defined
iacomp.png (11.06 KiB) Viewed 4771 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: feature independent files appear in "User Interview"

Postby FrancescoT » Thu Aug 07, 2014 4:46 am

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.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Connor21
Posts: 4
Joined: Wed Aug 06, 2014 5:20 am
Location: Kiel/Germany
Contact:

Re: feature independent files appear in "User Interview"

Postby Connor21 » Thu Aug 14, 2014 11:02 pm

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

Connor21
Posts: 4
Joined: Wed Aug 06, 2014 5:20 am
Location: Kiel/Germany
Contact:

Re: feature independent files appear in "User Interview"

Postby Connor21 » Thu Aug 14, 2014 11:13 pm

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: feature independent files appear in "User Interview"

Postby FrancescoT » Mon Aug 18, 2014 9:33 am

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 132 guests