I have a custom dialo开发者_运维技巧g in my Visual Studio Seup project and need to know how to make the field required, so the user cannot progress (click next), if they don't enter a value into the textbox.
It's very rare to someone use Visual Studio Setup Project in order to make it's custom Setup ... normally we would use WIX or any other tool for builind the setup if the "normal" Visual Studio does not fit our needs.
Scott Guthrie has a old post about creating custom actions... maybe it would be a good read for you.
This can be done by configuring some control events and creating a small message box custom action. You can find the generic approach here: http://setupanddeployment.com/installation-user-interface/validate-user-input-installation/
Visual Studio setup projects do not support this directly, but you can edit your MSI with Orca. Another solution would be to use a setup authoring tool which allows you to modify control events.
精彩评论