sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Checkbox Default Value

Hi guys,

We're still on AI 14.4.2. I have a checkbox defined as:
SendOnStartProperties.PNG
SendOnStartProperties.PNG (8.09 KiB) Viewed 5709 times
and for that checkbox I have the following Control Event on the Publish Event of the dialog's Next button to set the property to 0 if not selected (determined by checking property's value):
SendOnStartControlCondition.PNG
SendOnStartControlCondition.PNG (13.2 KiB) Viewed 5709 times
I think that condition is failing because according to the installer log that checkbox value is never '1' it's always 'true':

MSI (c) (4C!F4) [08:46:25:454]: PROPERTY CHANGE: Modifying CXMY_SENDONSTART.57BC1370_8347_47BC_8EDA_F94B982FDA46 property. Its current value is '""'. Its new value: 'true'.
MSI (c) (4C:70) [08:47:17:025]: PROPERTY CHANGE: Modifying CXMY_SENDONSTART property. Its current value is 'true'. Its new value: '0'.
MSI (c) (E4:00) [08:47:25:599]: PROPERTY CHANGE: Modifying CXMY_SENDONSTART.57BC1370_8347_47BC_8EDA_F94B982FDA46 property. Its current value is '""'. Its new value: 'true'.
MSI (c) (E4:00) [08:47:25:600]: PROPERTY CHANGE: Modifying CXMY_SENDONSTART property. Its current value is 'true'. Its new value: '0'.
MSI (c) (E4:00) [08:47:25:603]: Switching to server: APPDIR="C:\Program Files (x86)\Cicero Inc" WORKSPACE_DIRECTORY="C:\ProgramData\Cicero Inc\CIC" ICA_CLIENT_INSTALLDIR="C:\Program Files (x86)\Citrix\ICA Client" INSTALLDIR="C:\Program Files (x86)\Cicero Inc" CXMY_CITRIX_CLIENT="1" AI_DETECTED_DOTNET_VERSION="4.6.2" CXMY_PMON_ON="0" CXMY_SENDONSTART="0" CXMY_SERVER="2016testserver1.cicerotech.com" TARGETDIR="C:\" AI_SETUPEXEPATH="C:\Installs\ENHANCED\DiscoveryClientV2017_3_1_8272-NA\DiscoveryClient.exe" AI_SETUPEXEPATH_ORIGINAL="C:\Installs\ENHANCED\DiscoveryClientV2017_3_1_8272-NA\DiscoveryClient.exe" AI_INSTALL="1" CXMY_START_SSO_MON="0" CXMY_AUTOSTART_BDM="0" CXMY_ENABLELOGGING="1" CXMY_BATCHXMIT="0" ACCOUNT="LocalSystem" ICA_CLIENT_INSTALLED="1" INSTALLDIR.1774B61E_82C4_4E8C_8FBA_A705BBC46365="C:\Program Files (x86)\Cicero Inc\CIC" WORKSPACE_DIRECTORY.1774B61E_82C4_4E8C_8FBA_A705BBC46365="C:\ProgramData\Cicero Inc\CIC" APPDIR.1774B61E_82C4_4E8C_8FBA_A705BBC46365="C:\Program Files (x86)\C...
MSI (s) (EC:8C) [08:47:33:068]: Command Line: APPDIR=C:\Program Files (x86)\Cicero Inc WORKSPACE_DIRECTORY=C:\ProgramData\Cicero Inc\CIC ICA_CLIENT_INSTALLDIR=C:\Program Files (x86)\Citrix\ICA Client INSTALLDIR=C:\Program Files (x86)\Cicero Inc CXMY_CITRIX_CLIENT=1 AI_DETECTED_DOTNET_VERSION=4.6.2 CXMY_PMON_ON=0 CXMY_SENDONSTART=0 CXMY_SERVER=2016testserver1.cicerotech.com TARGETDIR=C:\ AI_SETUPEXEPATH=C:\Installs\ENHANCED\DiscoveryClientV2017_3_1_8272-NA\DiscoveryClient.exe AI_SETUPEXEPATH_ORIGINAL=C:\Installs\ENHANCED\DiscoveryClientV2017_3_1_8272-NA\DiscoveryClient.exe AI_INSTALL=1 CXMY_START_SSO_MON=0 CXMY_AUTOSTART_BDM=0 CXMY_ENABLELOGGING=1 CXMY_BATCHXMIT=0 ACCOUNT=LocalSystem ICA_CLIENT_INSTALLED=1 INSTALLDIR.1774B61E_82C4_4E8C_8FBA_A705BBC46365=C:\Program Files (x86)\Cicero Inc\CIC WORKSPACE_DIRECTORY.1774B61E_82C4_4E8C_8FBA_A705BBC46365=C:\ProgramData\Cicero Inc\CIC APPDIR.1774B61E_82C4_4E8C_8FBA_A705BBC46365=C:\Program Files (x86)\Cicero Inc\CIC REGSVR32_EXE.1774B61E_82C4_4E8C_8FBA...
MSI (s) (EC:8C) [08:47:33:071]: PROPERTY CHANGE: Modifying CXMY_SENDONSTART property. Its current value is 'true'. Its new value: '0'.
MSI (s) (EC:8C) [08:47:33:071]: PROPERTY CHANGE: Modifying CXMY_SENDONSTART.57BC1370_8347_47BC_8EDA_F94B982FDA46 property. Its current value is '""'. Its new value: 'true'.
MSI (s) (EC!8C) [08:47:33:508]: PROPERTY CHANGE: Modifying CXMY_SENDONSTART.57BC1370_8347_47BC_8EDA_F94B982FDA46 property. Its current value is 'true'. Its new value: '0'.
<Batch Enabled="false" BatchSendSizeLimit="512000" AutoBatchMessageLimit="0" SendFailedRetryCount="4" SendFailedRetryInterval="10" FailDeleteThreshold="24:00:00" SendOnStartUp="1">
Setting SendOnStartup to '0'
Property(S): CXMY_SENDONSTART = 0
Property(S): CXMY_SENDONSTART.57BC1370_8347_47BC_8EDA_F94B982FDA46 = 0


Should I be checking for 'true' in my Control Event?
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Checkbox Default Value

Hello Scott,

I am not sure why you are encountering this behavior.

From what I can see in the log, it seems that your property is preceded by a merge module GUID (called "Module GUID"), which makes me think that the property belongs to a merge module.

Can you please send us the .AIP file for your main package and also for the merge module/s, if you have any, by e-mail at support at advancedinstaller dot com so we can investigate it's settings?

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Checkbox Default Value

In this case I have it in both the parent install as well as a child merge module, which might be part of the issue.

I always seemed to have a problem, early on, with global properties being accessible in the merge modules.

I guess how do I "properly" pass AND use a global property (defined in a parent install and attached to a UI component) passed to a child merge module?

What I did years ago when I did these installers was used a VB script to copy global properties to their merge module defined counterparts:

Session.Property("CXMY_SERVER.57BC1370_8347_47BC_8EDA_F94B982FDA46") = Session.Property("CXMY_SERVER"):

it looks like I might have forgot to include a line for CXMY_SENDONSTART in opening post.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Checkbox Default Value

Similar discussion I started here:

viewtopic.php?t=21179
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Checkbox Default Value

Thank you for your follow up on this Scott.

I am glad you sorted things out.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Checkbox Default Value

LOL not really cleared up. Trying to make sense of the contradicting threads. When is doing the VBScript required and not required?
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Checkbox Default Value

Hello Scott,

:)

In this case I think we will need more details about your scenario. Could you please let us know where exactly within the MSM project do you need to access the parent MSI property? Please let us know how do you try to use the parent MSI property in you MSM project and what merge module project section are you trying to refer it from.

Even better, if you could create a small sample exposing the issue this will be very useful too.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”