We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jstuardo
Posts: 88
Joined: Mon Nov 09, 2015 10:44 pm

Incorrect property values

Hello,

when I try to use a property, I see this dialog box:
AI_Properties.png
AI_Properties.png (13.61 KiB) Viewed 4379 times
Please see properties: CREATE_USER, DROP_DATABASE, NO_SCRIPTS, SQL_TRUSTED_CONNECTION

All of them are checkboxes.

I have realized that CREATE_USER property is not taken into account, because I have in a condition: CREATE_USER = 1

As you see, the property has the value of CheckBox however, I have set as "1" in the dialog editor.

Other fact is coming to my attention. Why don't the other checkboxes have the value in parenthesis the same as SQL_TRUSTED_CONNECTION?
AI_Properties_2.png
AI_Properties_2.png (158.09 KiB) Viewed 4379 times
I am attaching project file also.

Can you check it, please?

Regards
Jaime
Attachments
Control de Visitas 3.aip
(93.54 KiB) Downloaded 277 times
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Incorrect property values

Hello Jaime,

This sounds like a strange issue, indeed.

The fact that the value of your checkbox is still set to the default one ("CheckBox"), even after you have changed it, is pretty strange.

In order to fix this, please go to "Install Parameters" page --> under "Properties" section please check the "Show properties with empty value or used in dialog controls" --> double click on your property --> change its default value to 1.
Other fact is coming to my attention. Why don't the other checkboxes have the value in parenthesis the same as SQL_TRUSTED_CONNECTION?
This is because not all properties have a default value. For instance, the PASSWORD_PROP property does not have a predefined value, as opposed to the PORT_PROP property which has a default value of "1433".

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jstuardo
Posts: 88
Joined: Mon Nov 09, 2015 10:44 pm

Re: Incorrect property values

Hello Cataline,

this is the Install Parameters page. I have version 12.1.
Install Parameters.png
Install Parameters.png (59.48 KiB) Viewed 4371 times
No such option exists and the list appears empty.

Regards
Jaime
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Incorrect property values

Hello Jaime,

Indeed, you are right, there is no such option in Advanced Installer 12.1.

After further investigation, I could find out that this option was added in version 12.3 of Advanced Installer.

After few tests on my machine, I was able to replicate the same behavior using version 12.1 of Advanced Installer. After doing so, I dug a little bit deeper and I found out that this was a bug in Advanced Installer that caused the default value of a CheckBox control to not be updated. This was fixed in version 12.6.

A workaround for this issue would be to go to "Dialogs" page --> select the CheckBox control --> set its "Selected" attribute to "False" and then back to "True" --> save the project. This way, the property should be updated accordingly.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jstuardo
Posts: 88
Joined: Mon Nov 09, 2015 10:44 pm

Re: Incorrect property values

Thanks Catalin,

that solved the issue, :D

Regards,
Jaime
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Incorrect property values

You are always welcome, Jaime!

I am glad I could help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”