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
- :
- This is a difficult question to answer ...
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
Apr 18, 2006
03:30 PM
This is a difficult question to answer ...
Hi,
First, I am using the file searcher bean from the Extras package.
Second, I created a bean that can obtain a value from a java properties file, by just giving the following parameters: Filename (obtained from file searcher), property key. The value, if it exists, is returned to a hidden bean property named 'propertyvalue', otherwise it will receive a default 'No Value Found!' string.
I want to concanetate several properties that I have been able to obtain that would end up in a variable called winProps if the platform is windows or linuxProps if the platform is Linux (pardon the redundancy). Now, my question is the following: How can I conditionally do this without having to create a wizard action for each one and for each platform?
Can conditional statements be used with the resolvers?
Is there something like the one-time popular iif? For example: iif( testCondition, trueExp, falseExp)
The more I work with IS MP 11.5 the more I like it. It's a great tool, but it does lack intuitivity and it requires improved documentation.
First, I am using the file searcher bean from the Extras package.
Second, I created a bean that can obtain a value from a java properties file, by just giving the following parameters: Filename (obtained from file searcher), property key. The value, if it exists, is returned to a hidden bean property named 'propertyvalue', otherwise it will receive a default 'No Value Found!' string.
I want to concanetate several properties that I have been able to obtain that would end up in a variable called winProps if the platform is windows or linuxProps if the platform is Linux (pardon the redundancy). Now, my question is the following: How can I conditionally do this without having to create a wizard action for each one and for each platform?
Can conditional statements be used with the resolvers?
Is there something like the one-time popular iif? For example: iif( testCondition, trueExp, falseExp)
The more I work with IS MP 11.5 the more I like it. It's a great tool, but it does lack intuitivity and it requires improved documentation.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 18, 2006
05:22 PM
Make one of the properies in your custom bean an array. For each element of the array store something like:
filename_from_searcher,property_to_get
Then just loop through the array, tokenize each element, processing and concatenating.
HTH
filename_from_searcher,property_to_get
Then just loop through the array, tokenize each element, processing and concatenating.
HTH