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:
- Right-click your setup project in Solution Explorer, select 'View', select 'Registry'
-
HKEY_LOCAL_MACHINE Open
, software, [Creator] key - Right-click between the screen (where you see a name / value grid), And select new, string value
- Change the name to your liking Value # 1 and right-click and open the property window
- In the Properties window, the most likely solution is from Explorer Enter [date] in the form of value, with parentheses below!
- Create your setup, run setup.exe from your debug / release wall and complete the setup.
- Open Regis, browse on
HKEY_LOCAL_MACHINE \ Software \ (your 'company name')
- 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