minnumathew
Posts: 22
Joined: Mon Apr 22, 2013 8:11 am

how can i update radio button and check box value using script

We upgraded Advanced Installer 10 to 14. In one sequence, we are updating the value of a check box property and radio button using script. and based ont his we were installing files. Now its not working.
In my application one checkbox and radio button is there with property name "CHECKBOX" and "GXRBG" respectively and there default values are checkbox unchecked and radio button "1"

Following is the vscript code used for upgrading property variable
session.property("GXRBG") =2
session.property("CHECKBOX") =1

Then we use this property name as a condition for feature based install. But now we are not getting this value there and so the files not get copied. When we checked , installer is getting value "1" for GXRBG during feature install ( default value)
minnumathew
Posts: 22
Joined: Mon Apr 22, 2013 8:11 am

Re: how can i update radio button and check box value using script

In the log file, its showing below command. Both the features are marked for installation if radio button value =2 and checkbox selected

MSI (c) (F8:70) [00:31:54:473]: Doing action: InstallValidate
Action 0:31:54: InstallValidate. Validating install
Action start 0:31:54: InstallValidate.
MSI (c) (F8:70) [00:31:54:489]: Feature: CFRClient; Installed: Absent; Request: Null; Action: Null
MSI (c) (F8:70) [00:31:54:489]: Feature: CFRClientWithServer; Installed: Absent; Request: Null; Action: Null
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: how can i update radio button and check box value using script

Hello,

We are not sure why you encounter this behavior. Please send us the .AIP (project) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
minnumathew
Posts: 22
Joined: Mon Apr 22, 2013 8:11 am

Re: how can i update radio button and check box value using script

My issue got fixed.

For this I added a reg search, sets radio button property based on this value from init event of first dialog box and now its working fine
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: how can i update radio button and check box value using script

Hello,

I'm glad that you've got things working. Thank you for posting your solution.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”