Search code examples
c#visual-studioinstallationsetup-project

VS SetUp set expiry date without using db


I need to create a msi file which would be expire after say 45 days using VS setup Project. How can i implement this without using the database.The user wont be able to change or update any settings of expiry.


Solution

  • There is no option in Visual Studio Setup Project to do so.

    Instead you can read the values from registry / other secure source on Application Start

    Here is a code snippet on how to do it without DB

    Code Snippet: TrialTimeManager class