How-to: Reset a CodeSmith license.

Every once in a while you might run into a licensing problem when using CodeSmith.  This can be when the Visual Studio add-in becomes corrupted, or you encounter some kind of licensing problem and you have problems activating.  You can fix these related problems by resetting the license file and reactivating your copy of CodeSmith. 

First you will need to exit all CodeSmith related applications (CodeSmith Studio, Visual Studio) and follow the steps below.

1)    Open the windows run (windows key + r or start -> run) dialog box and type “cmd”

2)    And type “cs /resetlicense” hit enter and type “y” and hit enter again. This will remove any CodeSmith license files from your computer.
Your command prompt window should look something like this.

C:\Users\Administrator>cs /resetlicense
CodeSmith Console v4.1.3.3349
Copyright (c) 2002-2008 CodeSmith Tools, LLC.  All rights reserved.
WARNING: This will reset your license files and you will need to re-register and activate your license.  It will not extend your trial period.
Press Y to confirm that you would like to reset your license: y
Reset license complete.

3)    Next launch CodeSmith studio and try to register your key. You should now see the activation prompt.

Posted Apr 15 2008, 09:26 AM by Blake Niemyjski |
Filed under: ,;
Copyright © 2008 Windows Coding
Microsoft and Microsoft logo's are trademarks of Microsoft Corporation.