PDA

View Full Version : Displaying Custom Dialogs



suniltg
08-29-2002, 11:44 PM
Hi All,

How can I show and get data from CUSTOM DIALOG BOXES designed in VC 6.0 or in VS.net in setup program? IS built in dialogs lacks flexibility. :mad:

I am using IS 7.03 with .net support.

Thanks in advance,
Sunil TG

gamisd
08-30-2002, 02:03 AM
What flexibility are you missing?

suniltg
08-30-2002, 05:52 AM
Lacks many things =>
:( How can I show a treeview? A password text field?
How can I edit xml files? Read xml files?
I meant a complete custom dialog like one which is getting displayed upon VS.net installation-> select components from a treeview. Also, want to write additional logic for validating key given. If I am able to show a dialog program created in C#, or VC 6.0 I'd be happy.
:)

timelox
08-30-2002, 05:53 AM
Create a resource dll with all your custom dialogs (created in visual studio). Add that file to the 'Setup Files' section under the language of your choice.

Then use the function EzDefineDialog() to define your custom made dialog and WaitOnDialog() to see what the user clicks on. Call SdCloseDlg() when done.

If you look up 'EzDefineDialog' in the online help you'll find a good example of how to use it.

At least this works for me.

suniltg
08-30-2002, 05:57 AM
Will you be kind enough totell me wether a dialog created in VisualStudio.net in C#, can be shown? I mean a dialog residing inside a .net dll?

timelox
08-30-2002, 06:46 AM
I have only made C# executabled, never worked with .NET dlls. If .NET dlls also need to be compiled into native code as with .NET exe-files then the .NET core must already be present on the target machine before the dll can be accessed. Better to create the resources using Visual Studio 6. That will work.

gamisd
08-30-2002, 01:41 PM
Originally posted by suniltg
Lacks many things =>
:(


Not as many as you seem to think.


How can I show a treeview?

Just use a selection tree in your dialog.


A password text field?

Use an edit field and set the password property to TRUE.


How can I edit xml files?
A install package is not an editor, and why would you want to edit XML files in an installer? If you need to create a XML file you should collect the data in a more user friendly format and then generate the XML file yourself via a custom action.


Read xml files?

Use a custom action. You can parse the XML file and populate your dialogs that way.


I meant a complete custom dialog like one which is getting displayed upon VS.net installation-> select components from a treeview.

I haven't seen that installation myself, but as I mentioned before there is a selection tree control in the dialog editor.


Also, want to write additional logic for validating key given.

Easy, just write a custom action to do it.