Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Setup & Deployment Projects - Validation of User Interface
 

Setup & Deployment Projects - Validation of User Interface

I have created a Web Setup project for a web application that I have written. I added several new dialog windows to the user interface to collect various details, such as SQL Server info, company info, etc. I created custom actions to install the database, etc. The problem that I currently have is that I do not know how to validate the data within the new dialog windows (Textboxes A, etc) before the installation actually starts. So, if someone enters invalid SQL Server details, the installation starts, then my custom action is executed. If I validate the information and determine it is invalid, I can throw an exception which would cause the setup to fail. But, doing so requires the user to open the setup.msi again and start all over. Is there anyway to validate this information when the Next button is clicked?

Also, I have created a banner that I would like to use at the top of each of the dialogs. If I use it, the BannerText at the top of each dialog sits on top the banner and doesn't look right, based on the color I have chosen for the banner. I would like to remove the BannerText completely from all dialogs. Each of the custom dialogs that I added to the user interface myself have a property called BannerText. On those dialogs, I can just delete the text within this property and my banner looks great. Why is it that I can't do the same on all other dialogs? Or can i? Does anyone have a suggestion?

Thanks in advance for your help!

- John

asp.netSoftware  Saturday, November 17, 2007 6:02 PM
Visual Studio setups don't have support for custom actions in the UI sequence (which is why there's this, although it's an older version http://support.microsoft.com/kb/253683/en-us). You have the same general situation with dialogs about limited IDE support. There should be a FAQ for Visual Studio setups that says something about what you can and can't do - setup projects don't offer the kind of expanded use of Windows Installer features that you'd find in InstallShield, WiX, Wise, Advanced Installer etc.

PhilWilson  Sunday, November 18, 2007 7:43 PM
Visual Studio setups don't have support for custom actions in the UI sequence (which is why there's this, although it's an older version http://support.microsoft.com/kb/253683/en-us). You have the same general situation with dialogs about limited IDE support. There should be a FAQ for Visual Studio setups that says something about what you can and can't do - setup projects don't offer the kind of expanded use of Windows Installer features that you'd find in InstallShield, WiX, Wise, Advanced Installer etc.

PhilWilson  Sunday, November 18, 2007 7:43 PM

I have been wrestling with this for a while and have just found a solution which is simplicity itself.

1. Download and install instedit from here: http://www.instedit.com/(it's free btw and really easy to use).
2. Create your setup project with yourcustom banner (bmp or jpg).
3.Start InstEdit and load the msi that you created at Step 2.
4. Click on the "Dialogs" tab and locate the screens where you want to remove banner text (e.g. "WelcomeForm").
5. Expand the Control node and delete the control for the banner text (in the case of the Welcome screenthis will be called "WelcomeForm|BannerText").
6. Save your changes.

Beware, the one drawback with this is that every time the setup project is re-compiled the changes are lost and the banner text re-appears, so banner text removal must be repeated.

Steve

stephengraham  Thursday, August 13, 2009 10:26 AM

You can use google to search for other answers

Custom Search

More Threads

• Passing Primary-Output-Path to CustomAction
• Uninstalling old version while upgrading to new version(Installer class)
• problem deploying obfuscated app using ClickOnce
• This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of the package to basic.
• Pass data from customaction to vbscript in setup deployment project
• Publish problem with C# Express
• delete registry , close IE at the time of Install Setup.exe
• admin privileges for vista installer
• Selecting multiple prerequisites from different locations
• Updater block error with "The client does not have sufficient access rights to the requested server object."