Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Prompt for registration key
 

Prompt for registration key

Is there a way with a standard VS setup project, to add a step that prompts for a setup key?

Can I add a "form" to the project, request that user fill-in the key, validate the key and then proceed (if key is "valid")?

Is such a capability beyond the standard VS setup capabilities?

We use VS 2008 Team Edition for developers.

H
Captain Kernel  Thursday, September 17, 2009 9:38 AM
There is a customer information dialog you can add and show a serial number, but there's no way to run code right there to validate it, there's just a masked edit verification control. Maybe that's enough.

You will come across solutions that are pretty terrible because of the VS limitations. You can run a custom action to check that key, but only after the whole setup has been installed. Failing the check causes the entire setup to roll back and uninstall when all you really wanted was to run some of your validation code when the Next button was clicked, but VS setups don't do that.
Phil Wilson
PhilWilson  Thursday, September 17, 2009 8:50 PM
There is a customer information dialog you can add and show a serial number, but there's no way to run code right there to validate it, there's just a masked edit verification control. Maybe that's enough.

You will come across solutions that are pretty terrible because of the VS limitations. You can run a custom action to check that key, but only after the whole setup has been installed. Failing the check causes the entire setup to roll back and uninstall when all you really wanted was to run some of your validation code when the Next button was clicked, but VS setups don't do that.
Phil Wilson
PhilWilson  Thursday, September 17, 2009 8:50 PM

You can use google to search for other answers

Custom Search

More Threads

• Looking for click-once like solution
• Multiple Publish Targets for ClickOnce
• Network Deployment
• clickonce application update failed on Windows Vista
• using one certificate for different environments..
• HowTo: Launch Browser window from winform usercontrol ?
• Cannot retrieve application. Authentication error.
• System.Deployment.Application.DeploymentException (InvalidManifest) - How do I fix?
• GenerateDeploymentManifest and Codebase issue
• Problems running embedded Windows Control with Server 2003?