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!

DKr
Posts: 2
Joined: Mon Jun 16, 2014 10:21 am

Conditionally installing ODBC or Registry Keys

Hey there,

We're looking for a way to install ODBC DSNs based on whether an installing user checked a "install odbc" check box in the installing process. Alternatively, we could create them by using registry keys - which don't seem to have conditions, too. Can you guys think of a way to achieve this?


KR,

DK
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Conditionally installing ODBC or Registry Keys

Hello and welcome to Advanced Installer forums,
We're looking for a way to install ODBC DSNs based on whether an installing user checked a "install odbc" check box in the installing process.
In order to achieve that you can condition the installation of the component through its Condition field. Please note that when you added the Data Source in the ODBC page, automatically a component has been assigned to the Organization page.

When you added the CheckBox control in the Dialogs a pubic property has been assigned to it. (by default CHECKBOX_1_PROP). Add this property in the Condition field of the related component.

So, when the user will check the related option, the ODBC DNS will be installed, otherwise it will not be installed.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DKr
Posts: 2
Joined: Mon Jun 16, 2014 10:21 am

Re: Conditionally installing ODBC or Registry Keys

Great, I didn't know about the Origanization view. Works like a charm, thanks.

I have another issue now. When calling another MSI as Chained Package, it will always pop up in the background - behind my actual installer windows. Is there any way to change this?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Conditionally installing ODBC or Registry Keys

You're welcome,
I have another issue now. When calling another MSI as Chained Package, it will always pop up in the background - behind my actual installer windows. Is there any way to change this?
Unfortunately the Operating System decides if an application is launched in foreground or in background.

However, the recommended way to launch a chained package is silent, with No UI so the user get the best and easiest user interface as possible. If you need some input from the user during installation, you can create a custom dialog and pass the values entered by the user through the Properties field from the Chained Package Properties.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”