I have created one setup file in visual studio 2010 for windows forms ,also inserted SerialNumberTemplate Property In that setup ,now I am trying to allot 1 month duration period for this setup ,but If I store the start time using Registrykey and check it using some code , than how should i add this code in that setup ,or is there any other way with which I can achieve this ,any better way to do this?
I could save start date something like this and check for end date ,but how to merge it in that setup? What is the correct way
RegistryKey regkey = Registry.CurrentUser;
DateTime dt = DateTime.Now;
string onlyDate = dt.ToShortDateString(); // get only date not time
regkey.SetValue("Install", onlyDate); //Value Name,Value Data
regkey.SetValue("Use", onlyDate); //Value Name,Value Data
Thanks in advance for any help