How to implement a 30 day trial period?

Hello,
I'm trying to implement a 30 day evaluation period for a pure C# WinForms commercial application. The requirements are basically that an uninstall / reinstall should not reset the countdown and it should not be trivial for the user to do it himself. It would also be nice if it were obscured even from detection using SysInternals regmon / filemon software.
I'm thinking of storing the install date somewhere, but where? I tried using isolated storage, but was disappointed to see it just stores as a normal file in the user's Application Data directory.
Certainly this problem has been solved before. Thanks for any ideas...

 in c# this code work for me,
try it 
The Code snippiest is,
In your main Application, add this code to Programm.CS
using SecureApp;
static void Main()
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            string path = @"Software\Tanmay\Protection";
            Secure scr = new Secure();
            bool logic = scr.Algorithm("tanmay", path);
            if(logic ==true)
                Application.Run(new Form1());
Here all the necessary information will save in Registry.
So you must provide a valid path, which will create this dll. 
In this case the password is : tanmay, 
Those two things are provided as,
bool logic
= scr.Algorithm("tanmay", path);
The main code scr.Algorithm(,) is as follows,
public bool Algorithm(String appPassword, String pass)
            globalPath = pass;
            bool chpass = checkPassword(appPassword);
            if (chpass == true) //execute
                return true;
            else
                bool block = blackListCheck();
                if (block == false)
                    string chinstall = checkfirstDate();
                    if (chinstall == "First")
                        firstTime();// installation date
                        DialogResult ds = MessageBox.Show("You
are using trial Pack! Would you Like to Activate it Now!", "Product key", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
                        if (ds == DialogResult.Yes)
                            Form1 f1 = new Form1(appPassword,
globalPath);
                            DialogResult ds1 = f1.ShowDialog();
                            if (ds1 == DialogResult.OK)
                                return true;
                            else
                                return false;
                        else
                            return true;
                    else
                        string status = dayDifPutPresent();
                        if (status == "Error")
                            blackList();
                            DialogResult ds = MessageBox.Show("Application
Can't be loaded, Unauthorized Date Interrupt Occurred! Without activation it can't run! Would you like to activate it?", "Terminate Error-02", MessageBoxButtons.YesNo, MessageBoxIcon.Error);
                            if (ds == DialogResult.Yes)
                                Form1 f1 = new Form1(appPassword,
globalPath);
                                DialogResult ds1
= f1.ShowDialog();
                                if (ds1 == DialogResult.OK)
                                    return true;
                                else
                                    return false;
                            else
                                return false;
                        else if (status
== "Expired")
                            DialogResult ds = MessageBox.Show("The
trial version is now expired! Would you Like to Activate it Now!", "Product key", MessageBoxButtons.YesNo,MessageBoxIcon.Information);
                            if (ds == DialogResult.Yes)
                                Form1 f1 = new Form1(appPassword,
globalPath);
                                DialogResult ds1
= f1.ShowDialog();
                                if (ds1 == DialogResult.OK)
                                    return true;
                                else
                                    return false;
                            else
                                return false;
                        else // execute with how
many day remaining
                            DialogResult ds = MessageBox.Show("You
are using trial Pack, you have " + status + " days left to Activate! Would you Like to Activate it now!", "Product key",MessageBoxButtons.YesNo, MessageBoxIcon.Information);
                            if (ds == DialogResult.Yes)
                                Form1 f1 = new Form1(appPassword,
globalPath);
                                DialogResult ds1
= f1.ShowDialog();
                                if (ds1 == DialogResult.OK)
                                    return true;
                                else
                                    return false;
                            else
                                return true;
                else
                    DialogResult ds = MessageBox.Show("Application
Can't be loaded, Unauthorized Date Interrupt Occurred! Without activation it can't run! Would you like to activate it?", "Terminate Error-01", MessageBoxButtons.YesNo, MessageBoxIcon.Error);
                    if (ds == DialogResult.Yes)
                        Form1 f1 = new Form1(appPassword,
globalPath);
                        DialogResult ds1 = f1.ShowDialog();
                        if (ds1 == DialogResult.OK)
                            return true;
                        else
                            return false;
                    else
                        return false;
                    //return "BlackList";

Similar Messages

  • How do I uninstall once the trial period has ended?  The instructions say to de-activate the software, but the only option I am given is to enter a serial number.  Thank you

    How do I uninstall once the trial period has ended?  The instructions say to de-activate the software, but the only option I am given is to enter a serial number (I can't get to a place where I can go to help and de-activate)..  Thank you

    Mobriennc which operating system are you using?  Which Adobe software title are you currently evaluating?

  • 120 day trial-period

    Which of these licenses have a 120 day Trial-period?
    Table 5.       Software Packaging and Licensing
    License
    Chassis Based or Port Based
    Part Number
    Supported Features and Platforms
    Cisco Nexus 5548 FCoE NPV License
    Chassis
    N5548-FNPV-SSK9
    FCoE NPV features supported on Cisco Nexus 5548
    Cisco Nexus 5596 FCoE NPV License
    Chassis
    N5596-FNPV-SSK9
    FCoE NPV features supported on Cisco Nexus 5596
    Cisco Nexus 5500 Storage Protocols Services License, 8 Ports
    Port
    N55-8P-SSK9
    Fibre Channel and FCoE and FCoE NPV features supported on any 8 ports of Cisco Nexus 5548 and 5596
    Cisco Nexus 5500 Storage Protocols Services License, 48 Ports
    Port
    N55-48P-SSK9
    Fibre Channel and FCoE and FCoE NPV features supported on any 48 ports of Cisco Nexus 5548 and 5596
    Cisco Nexus 5500 Layer 3 Base Software License
    Chassis
    N55-BAS1K9
    Static routing, RIPv2, OSPFv2, EIGRP stub, HSRP, VRRP, IGMPv2 and v3, PIMv2 (sparse mode), routed ACL; OSPF scalability is limited to 256 dynamically learned routes,
    VRF-lite (IP-VPN)
    Cisco Nexus 5500 Layer 3 Enterprise Software License
    Chassis
    N55-LAN1K9
    Full EIGRP, OSPF with scalability up to 8000 routes, BGP; maximum routes supported by Layer 3 hardware: 8000 entries; uRPF
    Cisco Nexus 5500 VM-FEX Software License
    Chassis
    N55-VMFEXK9
    Cisco Data Center VM-FEX supported on Cisco Nexus 5548 and Cisco Nexus 5596
    Cisco Nexus 5548 Enhanced Layer 2 Software License
    Chassis
    N5548-EL2-SSK9
    Cisco FabricPath supported on Cisco Nexus 5548
    Cisco Nexus 5596 Enhanced Layer 2 Software License
    Chassis
    N5596-EL2-SSK9
    Cisco FabricPath supported on Cisco Nexus 5596
    Cisco DCNM SAN Software License
    Chassis
    DCNM-SAN-N5K-K9
    Cisco DCNM for SAN Advanced Edition for Nexus 5000 Series
    Cisco DCNM LAN Software License
    Chassis
    DCNM-L-NXACCK9
    Cisco DCNM for LAN Advanced Edition for Cisco Nexus 3000 and 5000 Series

    Hi Andrey,
    All of these licenses have 90 day evaluation periods.  You can download them from the following link: https://tools.cisco.com/SWIFT/LicensingUI/Quickstart#.  Next, click "Get Other Licenses > Demo and Evaluation...".  DCNM licenses will be under Network Mgmt Products and N5500 licenses will be under Routers & Switches.
    -Eric

  • HT201318 How do you downgrade free 15 day trial period of ICloud?

    There is a fifteen day grace period where you can downgrade iCloud storage.  How do I do it????

    If in the US, follow the link below (you must request a refund within 15 days) -
    https://discussions.apple.com/message/16968425#16968425
    it gives the USA phone number - if you don't live there you will have to find an equivalent number from the 'Contact Us' link at bottom right of this page.

  • How to implement aggregation for different date periods

    We have a report which shows various metrics for a given date period, selected by date prompts.
    The problem is that one of the metrics should show data only for the first day in the range, selected by the prompt.
    So, for example, if user selects in the prompt the range Oct 1 - Oct 10, then that particular column should only show data for Oct 1, while all others - for Oct 1 - Oct 10.
    Any suggestions how to implement this would be appreciated.

    Please try to play around with case statements in the fact column.

  • How to implement a time-limited trial version of application?

    Hello
    I am working on a trial version of my application for Windows Phone 8.1 Runtime.
    I based my code on this MSDN tutorial:
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn532253.aspx
    It clearly mentions here about a trial-period of an application.
    However, when I launched the Store Dashboard, I didn't see any places in which I could set the trial-time period. There's only one checkbox turning on or off an ability for users to download a trial version.
    Is it possible for Windows Phone Runtime to make a time-limited trial version of an application? For example - after 48 hours it would block itself from using it.
    The important thing is to make sure the trial does not restart when user reinstalls the application (as if it could be done if I used AppSettings for validating a first-app run time).
    Thanks in advance

    For windows phone you have to implement your own way to check if the trial is over and apply the action yourself. Although on windows 8.1 store does what you want automatically.

  • Our thirty day trial period is over. I didn`t know we had to purchase anyway. cannot save any work because of it

    Our thirty day trial is over. We cannot now save anything . Everytime we try to save the thirty day calender pops up. It is asking us now to purchase iwork 09
    can someone explain.

    The thirty day trial is free to allow you to assess the applications. After that you have to pay if you want to continue to use it - the suite is not free. You can purchase iWork online when you visit apple.com/iwork/trial and click Buy Now in the upper right of the page: this link now leads you to the Mac App Store when you can purchase the three programs individually.

  • I have CC since 12/13, Last month my desktop photoshop App only opens to allow me a 30 day trial period, as if I wasn't a member. Tried re-downloading ,but gett error 50

    I've been with CC since 12/13. Downloaded LR and PS(64bit) and worked fine. Last month, when trying to open PS on desktop, it only allows me a 30 day trial (even though I'm paying monthly fee). When I try to download PS again I get error code 50. Any help please.

    sign out and then back in to your cc app.
    if that fails, follow solution 2 here, CC desktop lists applications as "Up to Date" when not installed

  • Trial version ended in one day??? I didn't get the entire 30 day trial period

    I down loaded photo shop elements free 30 day free trial yesterday, and today when I try to open it, it states trial has ended...........I don't understand what happen or why it ended. Please help!

    I believe that you need to do following things:
    Uninstall the current broken installation of PSE from the machine.(If it indeed got installed)
    Run the clean up script to remove any licensing bits remaining on the machine of previous trial installation which got expired in a day:
    http://kb2.adobe.com/cps/406/kb406241.html
    and then manually remove any leftovers of PSE 7.0 from machine by following below link:
    http://kb2.adobe.com/cps/405/kb405847.html
    Now, try to install you new purchased PSE and use the serial number which you have got.
    This should get you working. PSE does allow the user to install on Windows XP SP3 so there must be some funny things happening on your machine which should get resolved by following above links.
    Let us know if it works.
    Ankush

  • How to enter serial number before trial period is up.

    I downloaded Photoshop Elements 11 and Premiere Elements 11 trial version and decided to purchase from Amazon.  Can I use the serial numbers from the CDs to activate the trial version and not have to uninstall the trial and install from the CDs?  How do I enter the serial numbers before the trial ends?

    Never mind.  You have to open the editor in photoshop and premiere elements to get the button to enter the serial number.

  • How to cancel a membership before trial period is up.

    I haven't even used my free trial membership this month and it's up in a few days. I want to cancel it. I don't want to buy a membership at this time. I had no time to even download it.

    Return, cancel, or exchange an Adobe order

  • I purchased a Dreamweaver MX recently and I am trying to find a way to activate it so that it can be used longer than the 30 day trial period.  I also purchased a Creative Suite Premium at the same time, same problems.

    Is there a place on the website where older versions of Dreamweaver and Creative Suite can be registered and activated?

    Unable to activate | Macromedia products - http://helpx.adobe.com/x-productkb/policy-pricing/macromedia-legacy-activation-error.html
    As far as Creative Suites go, there are about 7 of them, so which one are you having a problem with?  If it happens to be CS2 or older, then see the following...   Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3 - http://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.htm l

  • I would like to cancel my subscription, I am within the 30 day initial period.

    Dear Sir/Madam,
    I would like to cancel my subscription, it seems very difficult to do so - despite still being within the initial 30 day trial period!!!

    Hi Bev,
    Thanks for the response - however I wish it were as SIMPLE as clicking on the link you supplied. I tried this myself before posting here. For someone who is attempting to cancel within the 30 day period - there is no automated button that one can click on. Instead you have to 'speak to an advisor' - for which there is a verrrry long
    waiting time.
    However I did perservere (after all, I was keen to avoid any billing charges) - Anyway when I did finally get through - I was offered all sorts of incentives to stay - until I had to ask if I had accidentally been put through to 'sales' instead of 'customer services'!!!
    Anyway, I (think) finally managed to cancel - hope it all goes through as expected!!!
    M

  • What happens when trial period runs out?

    My PSE9 included a 30-day trial for Lightroom3. I'm thinking about giving it a try but have a question: What happens to the new images I import into Lightroom's library after the 30-day trial period runs out, especially if I decide not to buy Lightroom?

    The images will still be where you put them on your computer. Simply go to the folder.

  • Acrobat revert to previous version at end of XI free trial period if I don't purchase?

    What happens to my existing version of Acrobat (acrobat X standard) if I install the trial version of XI at the end of the 30 day trial period?  Has it been destroyed by the XI installation?  Or does it just revert (in the event that I don't decide to purchase).

    John Waller's advice is absolutely not  recommended or endorsed by Adobe in any way whatsoever.
    You can only have one version of Acrobat fully and properly installed at one time. If you install Acrobat 11 without letting the installer uninstall Acrobat 10, you end up with a version of the AdobePDF PostScript printer driver instance as well as the PDFMakers for Office overriding what you installed for Acrobat 10. There are many known issues/conflicts involved with trying to maintain parallel installations of two versions of Acrobat on the same system!!! And if you expect to uninstall Acrobat 11 and have a working Acrobat 10, you may be very disappointed. That is why by default, Acrobat's installer will uninstall the old version(s) of Acrobat on your system before installing the new version.
    If you really wish to try out Acrobat 11 (actually, wait a few hours and you can try out Acrobat DC 2015; Acrobat 11 will be gone), making sure you have a copy of the serial number for your Acrobat 10 installation, install the trial of the new software, allowing it to uninstall the old. If you don't wish to license the new software, uninstall it completely and then fully reinstall Acrobat 10 using the Acrobat 10 serial number that you have saved.
                - Dov

Maybe you are looking for

  • How do I safely stop a Time Machine Restore midway through?

    I started a Time Machine restore from backup at about 1pm this afternoon. After about 15 minutes of estimating the size of the files to be transferred, it gave me a 19hr estimate for transfer time. I had heard that it could take awhile, so I wasn't t

  • What is the significance of ACTIVATE in SAP?

    what is the concept of Activate in SAP? there are objects like report that must be activated. but then there are objects like an SAP-Script that is just saved in TC SE71. Why? what's the difference? similarly, when tables are created and maintained,

  • Time and date notation

    Hi, is there a way to change time to a 24 hrs notation instead of using the AM and PM? And also I would like to use the european way of date notation day/month/year instead of the american way month/day/year. Any help appreciated! Ernest

  • I have an HP DV9408nr, and want to know if I can put 4 gig in it

    I have the HP DV9408nr and it has two 1 gig dimms in it. I would like to put two 2 gig dimms for a total of 4 gig. But I cant find anything that will tell me if it would support that much memory. Would anyone here know this?

  • Absence Approvals

    Hi gurus, There is a requirement where there are two business groups in a location. Both the business groups have self service HR Employee and Manager access. Business Group 1 - Only Manager approves the absences. But in business group 2 we want have