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
- :
- Found the 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
‎Jun 01, 2006
01:57 PM
How do i change Product Bean Active Property
Hi ,
At run time I want to detect if the user has selected to install a feature in run time during the installation . Base on the this selection , i want to set one of its dependant bean active property to false so that it not installed.
At design time, MyBean active property is true. i am trying to retrieve this active property in OnInstalling method of the root product.
the proplem is even though the user has not selected the feature(MyBean)
, it is returned with true.
here is what i am doing in OnInstalling method.
public void onInstallingMyRootProductbean(com.installshield.event.product.ProductInstallContext context)
{
String isUserDefinedAppSelected=context.resolveString("$P(bpfUserDefinedConfigurationFeatureBean.active)");
}
isUserDefinedAppSelected is returned with "true" even though the user has not selected this feature to install.
any help?
Thanks
Senthil
At run time I want to detect if the user has selected to install a feature in run time during the installation . Base on the this selection , i want to set one of its dependant bean active property to false so that it not installed.
At design time, MyBean active property is true. i am trying to retrieve this active property in OnInstalling method of the root product.
the proplem is even though the user has not selected the feature(MyBean)
, it is returned with true.
here is what i am doing in OnInstalling method.
public void onInstallingMyRootProductbean(com.installshield.event.product.ProductInstallContext context)
{
String isUserDefinedAppSelected=context.resolveString("$P(bpfUserDefinedConfigurationFeatureBean.active)");
}
isUserDefinedAppSelected is returned with "true" even though the user has not selected this feature to install.
any help?
Thanks
Senthil
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 01, 2006
03:16 PM
OnInstalling method itself let us check the active property. I was wrong previously.
This is how we can change the product bean active property at runt time.
ProductBean ourBean=context.getProduct().getProductTree().getBean("beanId");
ourBean.setActive(true);
Thanks
Senthil
This is how we can change the product bean active property at runt time.
ProductBean ourBean=context.getProduct().getProductTree().getBean("beanId");
ourBean.setActive(true);
Thanks
Senthil
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 08, 2006
09:02 AM
Just to give another way of many I'm sure!
Regards
ProductService service = (ProductService) arg0.getService(ProductService.NAME);
service.setProductBeanProperty(ProductService.DEFAULT_PRODUCT_SOURCE, BeanID,PropertyName,value);
service.setProductBeanProperty(ProductService.DEFAULT_PRODUCT_SOURCE, "beanid","active","true");
Regards