6

I have created a custom dialog for Visual Studio Setup Project using the steps described here

Now I have a combobox in one of my dialogs. I want to populate the combobox with a list of all SQL Server instances running on the local network. It's trivial to get the server list ... but I'm completely lost on how to make them display in the combobox. I would appreciate your help and some code might also be nice as I'm beginner :).

2 Answers 2

13

I've always found the custom dialogs in visual studio setup projects to be woefully limited and barely functional.

By contrast, I normally create custom actions that display winforms gui's for any remotely difficult tasks during setup. Works really well and you can do just about anything you want by creating a custom action and passing a few parameters across.

In the dayjob we built a collection of common custom actions for tasks like application config and database creation / script execution to get around custom dialog limitations.

Sign up to request clarification or add additional context in comments.

3 Comments

I finally switched to WiX installer which is much more configurable, also with respect to the UI.
hi David, How do you manage to set focus to winform displaying as custom action. I trying your method, but always focus goes to main setup window not to the winform.
@NayanaAdassuriya from memory, I never had any problems with focus, but my memory of 2008 is somewhat hazey alas!
1

I guess you'll have to go beyond the out-of-the-box setup and deployment package and try a third party app.

You may want to look at:

Both are free; they might give you the customization that you need.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.