Click here to Skip to main content
15,905,144 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi All,
I am creating a setup project for an windows application exe file in .Net VS 2010.During the installation I want to add a my own custom dialoge box which contains textbox,a button and a web browser.User will enter the path of webservice in textbox and after hitting the button given url should run in the web browser.If path of web service is ok,user can proceed next step.Otherwise he will be asked to re-enter the path of web service.Can anybody suggest me how to do so.
Thanks in advance

Abhinav Alok
Posted

1 solution

Review this for creating a custom dialog for your setup application

Create custom dialogs for use in your Visual Studio Setup projects[^]

If you are only trying to determine the viability of the URL then you don't need to open a browser. You can construct a WebRequest[^] object to verify it.
 
Share this answer
 
Comments
Abhinav Alok 6-Aug-11 3:58am    
Hi Mark,
Thanks for your suggestion.But It can't fulfill my need.
In specifed article one can make dialogue box using existing dialogue box provided by .net.One can customise existing dialogue box.Earlier I used this article to change text proprty of Installation folder banner text using ORCA.But now I want to use my own custom dialogue box and use it in set up project.I have to handle button click event according to my own way.
[no name] 6-Aug-11 9:23am    
I really don't know what it is you want if this didn't help. You can't add your own dialog but you can start with one those supplied and modify it anyway you need, including adding your own event handlers.
Abhinav Alok 8-Aug-11 1:34am    
Hi Mark,
Thanks for your valueable advice.
I got alternative solution.I ceated my own form.I overided the installer class install method.I used threding to run my form during installation.I validated webservice url,user id,password ....etc.At form closing event I handled code such that it make upadte in app.config file regarding these information supplied by user during installation.I also made provision for rollback if error occurs.However this is alternative but it worked and fullfilled my requirement.
Actually I had to do a lot of thing during installation in my own customized way.That's why I was interested to create my own dialogue box.
Could you please suggest some more link/article where I can learn to add my own event handlers in predefined dialogue box

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900