Last post Nov 25, 2010 04:14 PM by chorofonfilo
Nov 24, 2010 03:29 PM|chorofonfilo|LINK
Hello and thanks for the help you might give me in advance.
I have a created a Web Setup Package and i wonder if its possible to validate the input from a user within a textbox on a certain Form/GUI during the Installation process. So for example let's say that the installer needs the information of the Database
server and the user must provide a name into a textbox but he doesn't.
How could i show a MessageBox letting the user know that this field must be filled before continuing with the next step of the installation process?.
I have created a CustomInstallClass which i use to perform some installation logic, but i don't know how to request an event and control input on a particular Form within the package.
Would be great to get some advise on this.
Web Setup Project
Nov 25, 2010 01:00 AM|cninjas|LINK
hope the below article throws some light on ur issue...
hope it helps...thanks,
Nov 25, 2010 10:08 AM|chorofonfilo|LINK
Hi cninjas, thanks for your kind help.
I read that article and actually made my package work following those instructions, but i still can't figure how to validate the textboxes on one of the forms composing the Installation package. How can i handle the events and access the controls on each
Nov 25, 2010 12:16 PM|cninjas|LINK
wht kind of validation you wish to add..?
in the link can you search for "We’ll then update our custom action to access these values and do something with them like so"
..there they are actually defining their own logic...so you can include your valiation part there...
Nov 25, 2010 04:14 PM|chorofonfilo|LINK
I can perform a validation and thats correct but the way it works right now is that the validation/custom code logic is performed after the user is done setting the parameters on the previous Forms and the Installation process (Install Event) has been triggered.
What i would like to do is for example that in the second Form of the installer the user hasn't entered the ServerName information in one of the textboxes, so when "Next" is clicked on this Form a MessageBox shows up telling the user that "The ServerName
information is necessary to continue with the next step" and stucks him in such Form till the ServerName is entered or the installation is cancelled explicitely.
I have tried using the OnBeforeInstall event but i can't get to make it work yet.
I hope you got what i am trying to do.