1. Use an immediate custom action to generate the "scrambled" registry value into a property (C++ or .NET via DTF). 2. Encode the current ProductVersion property into that value as well. If the value already exists in the registry (use a property initialized via RegSearch) verify if the embedded ProductVersion matches the current ProductVersion (if they match, keep the value already in the registry, if they don't, generate a new value based on the current date). Or some variation on the theme... Blair > Date: Mon, 24 Jun 2013 12:27:37 +0200 > From: lukasha...@gmx.at > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Registry Key for Licensing > > Hi, > > For my application, I use software activation. However, in case they > activation fails, the software should work for 14 days after > installation (grace period). > > While I know it is difficult to protect this it should at least not be > circumvented by simple re-installation. > > What is the best procedure to implement this? > > Things to keep in mind: minor updates are rolled out which always have a > constant UpgradeCode. The grace period should start from beginning in > this case but should not start from beginning if the same minor upgrade > is removed and then re-installed. > > Just using manual Component/RegistryKey? But how can I store the current > date in a "scrambled" way? How do I make sure that this value is > overwritten on a minor upgrade but not on a reinstallation? > > > Thank you, > Luke > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows:
Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users