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
- :
- Re: Disable & Unselect items in FeatureTree
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
‎May 27, 2009
01:27 AM
Disable & Unselect items in FeatureTree
How can I dynamically disable & deselect items in Feature tree dialiog (displayed by sdFeatureTree()) through InstallScript?
I want grayed and disabled items in tree.
I want grayed and disabled items in tree.
(13) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 28, 2009
07:22 AM
Hello,
Do you have an InstallScript Project or do you like to use Installscript in a basic msi project to enable or disable features?
I had the same problem in the past and and have found a workaround (basic msi)
I set an internal Property e.g. "NotInstallFeature1" via Installscript to TRUE
In the Feature definition I'd added a Condition
"Level 200 -> Condition NotInstallFeature1"
So if the property is set to true the Feature gets an Installlevel of 200 and would be displayed as "not Install"
You have to be sure that the INSTALLLEVEL Property for the project is not set to 200 or higher(default is 100).
BR
Jörg
Do you have an InstallScript Project or do you like to use Installscript in a basic msi project to enable or disable features?
I had the same problem in the past and and have found a workaround (basic msi)
I set an internal Property e.g. "NotInstallFeature1" via Installscript to TRUE
In the Feature definition I'd added a Condition
"Level 200 -> Condition NotInstallFeature1"
So if the property is set to true the Feature gets an Installlevel of 200 and would be displayed as "not Install"
You have to be sure that the INSTALLLEVEL Property for the project is not set to 200 or higher(default is 100).
BR
Jörg
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 29, 2009
01:18 AM
K0NFUZIUS wrote:
Hello,
Do you have an InstallScript Project or do you like to use Installscript in a basic msi project to enable or disable features?
I had the same problem in the past and and have found a workaround (basic msi)
I set an internal Property e.g. "NotInstallFeature1" via Installscript to TRUE
In the Feature definition I'd added a Condition
"Level 200 -> Condition NotInstallFeature1"
So if the property is set to true the Feature gets an Installlevel of 200 and would be displayed as "not Install"
You have to be sure that the INSTALLLEVEL Property for the project is not set to 200 or higher(default is 100).
BR
Jörg
I have an InstallScript project.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 02, 2009
04:17 AM
Any ideas?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 02, 2009
11:29 AM
You can select/deselect features through the FeatureSelectItem function. The only way a feature item can be disabled is if it is a required feature. You can hide or show features on the feature selection dialog with the FeatureSetData function.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2009
03:09 AM
joshstechnij wrote:
You can select/deselect features through the FeatureSelectItem function. The only way a feature item can be disabled is if it is a required feature. You can hide or show features on the feature selection dialog with the FeatureSetData function.
Is there any solution how to disable deselected element in the tree (through InstallScript)?
Maybe defining my own treeview component?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2009
10:51 AM
The only way to have a feature item in the selection tree disabled is by marking it as a required feature in the IDE.
You can certainly implement your own selection tree if the standard one is not sufficient.
You can certainly implement your own selection tree if the standard one is not sufficient.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2009
01:05 AM
joshstechnij wrote:
You can select/deselect features through the FeatureSelectItem function. The only way a feature item can be disabled is if it is a required feature. You can hide or show features on the feature selection dialog with the FeatureSetData function.
Is there any solution how to disable deselected element through InstallScript?
Maybe custom treeview component ?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2009
01:07 AM
joshstechnij wrote:
You can select/deselect features through the FeatureSelectItem function. The only way a feature item can be disabled is if it is a required feature. You can hide or show features on the feature selection dialog with the FeatureSetData function.
Is there any solution how to disable unselected items through InstallScript?
May be custom treeview component?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2009
01:09 AM
joshstechnij wrote:
The only way to have a feature item in the selection tree disabled is by marking it as a required feature in the IDE.
You can certainly implement your own selection tree if the standard one is not sufficient.
Any useful links?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2009
05:28 AM
sm_337 wrote:
Any useful links?
I need an example of custom TreeView component....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2009
11:09 AM
InstallScript does not provide built-in functionality for working with tree controls (the tree control on SdFeatureTree is mostly handled in C++). There is some sample code on InstallSite.org (Dialog with TreeView Control) that provides a basis for working with custom treeview implementations through Win32 APIs. Note that InstallSite is run by a third party and not supported by Acresso.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 05, 2009
03:17 AM
joshstechnij wrote:
InstallScript does not provide built-in functionality for working with tree controls (the tree control on SdFeatureTree is mostly handled in C++). There is some sample code on InstallSite.org (Dialog with TreeView Control) that provides a basis for working with custom treeview implementations through Win32 APIs. Note that InstallSite is run by a third party and not supported by Acresso.
Thanks. I have already found this component.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 05, 2009
03:19 AM
Thanks. I have already found this component.