sdm10101
Posts: 35
Joined: Wed May 06, 2009 2:13 pm

Getting ODBC name into a variable

I'd like to use the ODBC name elsewhere and would like to use whatever is set on the ODBC setup screen.
Is there a way to get this hard-coded name into a variable?

Thanks
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Re: Getting ODBC name into a variable

Hi,

What do you mean by "ODBC setup scrren"? If you are referring to the data entered in the AI ODBC view, I'm afraid that it cannot be stored in a property because those fields are not formatted.

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
sdm10101
Posts: 35
Joined: Wed May 06, 2009 2:13 pm

Re: Getting ODBC name into a variable

That is what I mean.

I know it is not possible to set the ODBC name with a variable, but would like to use the name elsewhere and would prefer not to hard-code the same name in two separate places. That way, if this is ever changed it will only need to be changed in one place.

The same way as we can 'grab' the [ProductName], for instance. I'd just like to use the [ODBCName] to populate a config file.

Thanks
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Re: Getting ODBC name into a variable

This is possible. Just create a property in the "Install Parameters" with the desired value. You can then use that property in all formatted and pseudo-formatted fields.

Regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
sdm10101
Posts: 35
Joined: Wed May 06, 2009 2:13 pm

Re: Getting ODBC name into a variable

This isn't quite what I mean.

This would still require the text in two places: in the AI ODBC view; and in the Install Params.

I take it that it's not possible to get the text that is set as the ODBC name in the AI ODBC view?

That I would always need to set the name of the ODBC in the AI ODBC view AND the same text in the Install params to be used anywhere else?


Thanks
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Re: Getting ODBC name into a variable

That I would always need to set the name of the ODBC in the AI ODBC view AND the same text in the Install params to be used anywhere else?
Yes for the moment. I have added on our to do list to improve this in the future.

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
sdm10101
Posts: 35
Joined: Wed May 06, 2009 2:13 pm

Re: Getting ODBC name into a variable

ok. Thanks

Return to “Common Problems”