Re-activating on Same Machine (Development Testing)

Hi,

I am testing the licensing on my development machine, and I have ended up in a situation, where I have registered and activated a product on my dev machine, deleted a license, an no longer have the option to activate the product.

When i run TurboActivate, it tells me the activation was successful. But I would like to test the activation workflow logic again.

How can I fix this? and what would be the best way to be able to test activations on a single machine?

Karl

Hey Karl,

Call either Deactivate() or IsGenuine() within your application and this will force deactivation. That is, you'll be able to use another product key.

Tell me if this helps.

That did help, this is the code I have now built into a console app to handle deactivation. Does the logic seem correct?

private static void Deactivate()        {            bool needsReactivate = false;            try            {                if (!TurboActivate.IsGenuine(ref needsReactivate))                {                    TurboActivate.Deactivate(true);                }            }            catch (NotActivatedException)            {                Console.WriteLine("Your product is not activated. Please activate before attempting to deactivate.");                //allow the user to see the message before application quits                ConsoleMode.StartConsoleRunLoop();            }        }

If you're just deactivating you don't need to check if the user is genuine. Just call Deactivate(). For example:

private static void Deactivate(){    try    {        TurboActivate.Deactivate(true);    }    catch (Exception ex)    {        Console.WriteLine(ex.Message);        //allow the user to see the message before application quits        ConsoleMode.StartConsoleRunLoop();    }}