Custom forms in installation project

  • Thread starter Thread starter logicalfeline
  • Start date Start date
L

logicalfeline

Hi there,

I'm creating an installation project where at a particular point in the
installation I want the user to be able to specify a filepath for use in the
program. My idea was to create a form that allowed the user to choose the
datapath and confirm it then add this to the installation project. I'm
having trouble with this however. Does anyone know a simple procedure for
doing this?

Cat
 
Follow these steps, to create the custom dialog.

1. Create a new Setup Project
2. In the solution Explorer toolbar, click User Interface Editor
3. You can see a bunch of dialog icons in a Tree format.
4. In one the Node (preferably "Start" node, becoz thats where u need
dialog) right click and click again Add dialog.
5. There is a custom dialog Template, which has lot of combinations, with
textboxes, checkboxes.
6. Pick the closet one you required.
7. Go to the properties and remove the unwanted controls by setting Visible
= False;
 
Ok, but is it possible to write code behind the dialog that does something
with the user input? I did try this approach but didn't get very far..
 
To write the code for custom dialogs

You can create seperate c# project(exe ) and include it by going to the menu

Custom actions editor->Install->Add Custom action
 
unfortunately, without using one of the premium install products,
there is no 'dialog editor' that comes with the basic visual studio.
I'm not even aware of any good dialog editor tools out there to use
with install.
 
Back
Top