- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Problems setting Feature Action state in Suite project InstallScript
- 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
Hello,
I'm having trouble to set features to install or remove from the Installscript during OnBegin events inside Suite project.
The thing I'm trying to do is to send a property via command line and read it in the OnBegin flow using the following code:
rv = SuiteGetProperty("ADMIN", strAdminFeatures); if (rv >= 0) && (StrCompare(strAdminFeatures,"") != 0) then rv = SuiteSetProperty("FeatureCheckboxAdmin", strAdminFeatures); StrToNum(nVar,strAdminFeatures); if (nVar > 0) then rv = SuiteSetProperty("FEATURE[AdminTools].actionstate", "install"); else rv = SuiteSetProperty("FEATURE[AdminTools].actionstate", "remove"); endif; SuiteLogInfo("SetPreselectedFeatures: Set admin feature to %s", strAdminFeatures); bHasPreselectedFeature = TRUE; endif;
And my log lines are:
6-23-2019[05:13:42 PM]: Engine: property 'FeatureCheckboxAdmin' value now '0' 6-23-2019[05:13:42 PM]: Engine: property 'FEATURE[AdminTools].actionstate' value now 'remove' 6-23-2019[05:13:42 PM]: (ISP Action): SetPreselectedFeatures: Set admin feature to 0 6-23-2019[05:13:42 PM]: Engine: property 'FeatureCheckboxOffice' value now '0' 6-23-2019[05:13:42 PM]: Engine: property 'FEATURE[Office].actionstate' value now 'remove' 6-23-2019[05:13:43 PM]: (ISP Action): SetPreselectedFeatures: Set office feature to 0 6-23-2019[05:13:43 PM]: Engine: property 'FeatureCheckboxPrinter' value now '0' 6-23-2019[05:13:43 PM]: (ISP Action): SetPreselectedFeatures: Set HasPreselectedFeature 6-23-2019[05:13:43 PM]: Action returned value 0x00000000 6-23-2019[05:13:43 PM]: Action 'SetPreselectedFeatures' returned status 0x00000000 6-23-2019[05:13:43 PM]: Engine: no update XML URL specified 6-23-2019[05:13:43 PM]: Engine: not rebooted or maintenance, checking for suite update (update: '', updated from: '') 6-23-2019[05:13:43 PM]: Engine: initialization complete 6-23-2019[05:13:43 PM]: Evaluating abort conditions 6-23-2019[05:13:43 PM]: Invalid/unknown parcel ID specified for ParcelRef: {CE31BF6D-E17A-46D6-B89C-62E633D99D8A} 6-23-2019[05:13:43 PM]: Engine: determining suite feature states 6-23-2019[05:13:43 PM]: Skipping feature detect state in first time install 6-23-2019[05:13:43 PM]: Initializing state for feature 'Office' 6-23-2019[05:13:43 PM]: Default action state 1 for mode 0 6-23-2019[05:13:43 PM]: Feature has conditions and install state is first time install 6-23-2019[05:13:43 PM]: Initial feature state: 0 6-23-2019[05:13:43 PM]: Final feature state: 0 6-23-2019[05:13:43 PM]: Skipping feature detect state in first time install 6-23-2019[05:13:43 PM]: Initializing state for feature 'Printer' 6-23-2019[05:13:43 PM]: Default action state 1 for mode 0 6-23-2019[05:13:43 PM]: Feature has conditions and install state is first time install 6-23-2019[05:13:43 PM]: Initial feature state: 0 6-23-2019[05:13:43 PM]: Final feature state: 0 6-23-2019[05:13:43 PM]: Skipping feature detect state in first time install 6-23-2019[05:13:43 PM]: Initializing state for feature 'AdminTools' 6-23-2019[05:13:43 PM]: Default action state 1 for mode 0 6-23-2019[05:13:43 PM]: Feature has conditions and install state is first time install 6-23-2019[05:13:43 PM]: Initial feature state: 1 6-23-2019[05:13:43 PM]: Final feature state: 1 6-23-2019[05:13:43 PM]: Skipping feature detect state in first time install 6-23-2019[05:13:43 PM]: Engine: determining action states for all parcels 6-23-2019[05:13:43 PM]: MSI parcel detect: condition is overridden by setup.xml detect
What may be the problem here?
Is there an easier way to set "silent mode switches"?
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
See if below properties works for you 🙂
"The following properties have special meaning to the Advanced UI or Suite/Advanced UI installation when they are passed on the command line:
• ISFeatureInstall—This property provides a comma-delimited list of feature names that are to be installed with the current installation operation. It is intended for a silent first-time installation.
• ISFeatureRemove—This property provides a comma-delimited list of feature names that are to be removed with the current installation operation. It is intended for maintenance installations."
InstallScript Package
If you are configuring the Install and Modify operations for an InstallScript package, you can use the Advanced UI and Suite/Advanced UI properties ISFeatureInstall and ISFeatureRemove in your command line. The InstallScript function FeatureConfigureFeaturesFromSuite uses these properties to set feature states for the InstallScript package.
You can set these properties to a comma-delimited list of feature names as follows in the Command Line setting and the Silent Command Line setting:
ISFeatureInstall=Feature1,Feature2 ISFeatureRemove=Feature3
In the above example, Feature1 and Feature2 are selected to be installed; Feature3 is selected to be removed, if it is present.
If any features are used in the values of both properties, the features that are set for the ISFeatureRemove property supersede the ISFeatureInstall property.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
See if below properties works for you 🙂
"The following properties have special meaning to the Advanced UI or Suite/Advanced UI installation when they are passed on the command line:
• ISFeatureInstall—This property provides a comma-delimited list of feature names that are to be installed with the current installation operation. It is intended for a silent first-time installation.
• ISFeatureRemove—This property provides a comma-delimited list of feature names that are to be removed with the current installation operation. It is intended for maintenance installations."
InstallScript Package
If you are configuring the Install and Modify operations for an InstallScript package, you can use the Advanced UI and Suite/Advanced UI properties ISFeatureInstall and ISFeatureRemove in your command line. The InstallScript function FeatureConfigureFeaturesFromSuite uses these properties to set feature states for the InstallScript package.
You can set these properties to a comma-delimited list of feature names as follows in the Command Line setting and the Silent Command Line setting:
ISFeatureInstall=Feature1,Feature2 ISFeatureRemove=Feature3
In the above example, Feature1 and Feature2 are selected to be installed; Feature3 is selected to be removed, if it is present.
If any features are used in the values of both properties, the features that are set for the ISFeatureRemove property supersede the ISFeatureInstall property.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi,
Could you please verify that this statement is or is not valid:
rv = SuiteSetProperty("FEATURE[AdminTools].actionstate", "install");
I don't think it is, and that this pseudo property isn't available in an suite InstallScript. Is there any other way to retrieve the value of the feature.
Thanks!