Saturday 15 September 2012

save datetime in registry using installer class during installation of C#.NET Setup -


I want to create a setup in C # .NET as a trial version. So I installed the registry on the date of installation I want to save and check the validity of the trial version. I tried to use the installer class. But I do not know the exact method of storing the product's date time. This code can be explained with examples.

Thank you in advance

Most of the current date add-on to the registry in a setup project The easiest way is as follows:

  1. Right-click your setup project in Solution Explorer, select 'View', select 'Registry'
  2. HKEY_LOCAL_MACHINE Open , software, [Creator] key
  3. Right-click between the screen (where you see a name / value grid), And select new, string value
  4. Change the name to your liking Value # 1 and right-click and open the property window
  5. In the Properties window, the most likely solution is from Explorer Enter [date] in the form of value, with parentheses below!
  6. Create your setup, run setup.exe from your debug / release wall and complete the setup.
  7. Open Regis, browse on HKEY_LOCAL_MACHINE \ Software \ (your 'company name')
  8. If everything is okay, The name / value will see the current date in the pair :). If not, then reading the steps again and repeating or commenting on my answer where and what is wrong

No comments:

Post a Comment