We are using Visual Studio 2010 and .NET 4. We have build a setup project using the standard tools within VB .NET, but now we have a requirement which means we must force the user to scroll to the bottom of the license agreement before they can click on “I agree”. We did find a C++ project solution online using ORCA I believe, but that was not performing as expected, it was too slow and scrolling was rendering the text un-readable. Any help would be truly appreciated.
This is how we are adding the license agreement dialog to the setup project:
How to add Licence agreement in the setup project
But we are not sure how we can add custom logic to handle scroll-bar. We possibly need a custom license dialog or an external open source application which offers this facility.
Well, I think I did it!
It’s a rather cumbersome solution but it definitely works…
You can test it yourself by downloading this “dummy” setup: MySetup
Here’s how it works:
The MySetup is actually an application written in VB.NET which includes the actual MSI setup file as a resource.
When you start MySetup it launches the actual setup and then starts a monitoring threaded looking for the RichTextBox control and continually tests the position of the scrollbar’s thumb.
Then, based on that value (and weather the “I Agree” radio button is selected) it enables or disables the “Next” button.
If you wish, you can download the source code here: LAChecker/MySetup
Hope this helps…