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

[SqlTrustedConnection] property value is not passed to custom action

Hello,

I have created a custom action which is a VBS file.

I have added this as action data:

Code: Select all

[APPDIR]|[SERVER_BROWSE_LISTBOX]|[USERNAME_PROP]|[PASSWORD_PROP]|[SqlTrustedConnection]
However, SqlTrustedConnection is received empty, even when I check the corresponding checkbox in a dialog box that allows to enter SQL Server credentials

Any help please

Thanks
Jaime
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: [SqlTrustedConnection] property value is not passed to custom action

Hello Jaime,

This happens because your folder property is a private property (i.e. contains lower letters in its name - SqlTrustedConnection). To achieve what you want you should use a public property name (i.e. SQL_TRUSTED_CONNECTION).

When the installation passes from the dialogs stage to the install execution stage the values (set during dialogs stage) of the private properties are reset to their default values. This is the behavior of Windows Installer. Only the public property values are preserved when the installation passes from dialogs stage to the execution stage (i.e. after pressing the [Install] button).

Let us know if this helped.

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

Return to “Building Installers”