Jun 23, 2019
09:23 AM
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.
... View more
Labels
- Labels:
-
InstallShield 2016 Premier
Dec 11, 2016
09:17 AM
Hello, I'm working on Advanced UI\Suite project in InstallShield 2015. I need to run an executable and test the return code I got from it. I created an action with ignore, abort and reboot codes and I see them in the debug log, but I couldn't find where it is being saved and how to question it in a condition. Thanks, Alex
... View more
Labels
- Labels:
-
InstallShield 2015
Latest posts by Alex_Leahu
Subject | Views | Posted |
---|---|---|
1900 | Jun 23, 2019 09:23 AM | |
1911 | Dec 11, 2016 09:17 AM |
Activity Feed
- Posted Problems setting Feature Action state in Suite project InstallScript on InstallShield Forum. Jun 23, 2019 09:23 AM
- Tagged Problems setting Feature Action state in Suite project InstallScript on InstallShield Forum. Jun 23, 2019 09:23 AM
- Tagged Problems setting Feature Action state in Suite project InstallScript on InstallShield Forum. Jun 23, 2019 09:23 AM
- Posted How do I query for an EXE Action return code on InstallShield Forum. Dec 11, 2016 09:17 AM
- Tagged How do I query for an EXE Action return code on InstallShield Forum. Dec 11, 2016 09:17 AM
- Tagged How do I query for an EXE Action return code on InstallShield Forum. Dec 11, 2016 09:17 AM
- Tagged How do I query for an EXE Action return code on InstallShield Forum. Dec 11, 2016 09:17 AM
- Tagged How do I query for an EXE Action return code on InstallShield Forum. Dec 11, 2016 09:17 AM
- Tagged How do I query for an EXE Action return code on InstallShield Forum. Dec 11, 2016 09:17 AM