Dialog to dynamically create DSN - Advanced Installer Community

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!

koivu
Posts: 3
Joined: Tue Apr 01, 2008 3:36 pm

Dialog to dynamically create DSN

I'm evaluating Advanced Installer and have found a number of posts on DSN set up. I understand how to set these up beforehand when all of the information is know.

What I need to do is create an Access DB DSN during the install process by prompting the user to select the location of their mdb file on their local system. This mdb is installed by a 3rd party, so I won't know where the file is located. I only want to require the user to enter this 1 piece of information, as the other values are static.

Is their a way to create a dialog that prompts the user for the mdb file location, then creates the DSN as a result? I'm not very familar with VBS scripts, so need some help on how to do this if possible.

Thanks in advance,

James
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

We have a tutorial for creating a custom dialog, please take a look:
http://www.advancedinstaller.com/user-g ... ditor.html

Also, you can read more about the Dialog Editor feature here:
http://www.advancedinstaller.com/user-g ... ditor.html

Regarding the DSN creation, you can use the ODBC page:
http://www.advancedinstaller.com/user-guide/odbc.html

Since most of the fields used in the ODBC page are formatted, you can use installer properties set by the user in your custom dialog (for example the property of an edit box contains the value entered in the edit box).

You can read more about installer properties here:
http://www.advancedinstaller.com/user-g ... rties.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
koivu
Posts: 3
Joined: Tue Apr 01, 2008 3:36 pm

Thanks for the info and quick response. After looking at these examples I was able to create a file selection box to specify the db location and create the DSN based on that property.

Return to “Common Problems”