Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Setup / October 2006

Tip: Looking for answers? Try searching our database.

How to add validations in a dialog for the setup project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yash - 31 Oct 2006 05:21 GMT
Hi,

I have some custom text boxes as part of my deployment installation
program(this is .NET setup project) and I would like to know how to validate
these text boxes so that if they are left blank then a message pops up.

One can add dialog of type "Textboxes" and set the properties such as
"EditLabel", "EditProperty", "EditValue", "EditVisible" for each textbox. But
i just want to have a simple validation that the text box should not be empty.

Let me know if there is anything i can do to make sure it works. I have
invested considerable time in .NET setup project and i dont want to move to
other tech like WIX etc.

Thanks,
Phil Wilson - 31 Oct 2006 22:29 GMT
If you want to validate textboxes in Visual Studio dialogs, the bad news is
that VS supplies no hooks (like custom actions) on buttons in the UI
sequence. That's why this article exists, for example, to validate a serial
number:
http://support.microsoft.com/kb/253683/en-us

So either way you have to invest more time, either on Orca and changing the
MSI file to do your validation, or moving to another tool (I guess I
shouldn't mention Wix).
Signature

Phil Wilson
[Microsoft MVP - Windows Installer]

> Hi,
>
[quoted text clipped - 15 lines]
>
> Thanks,

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.