Quickstart

Top  Previous  Next

 

The following steps will guide you through using the Trial Maker application to create the data file and integrating it with your application.

 

 

Step 1

       Select the type of limitation you want applied to your trial application (Days, # of Uses or Specific date). Supply the value with that option then click the "Save Trial" button.

       

       Step1c

 

 

 

Step 2

       Select and copy off the PIN code for this trial. Make sure this is done before you click the "Save Trail" button as it will change.

 

       Step1b

 

 

Step 3

       Browse to the location of your Applications source directory and save the data file as tmd.dll.

 

Step2

 

Step 4

       Add the tmd.dll file to your applications source. This allows you to ensure it is available for your builds and is under source control if you use it.

 

Step3

 

 

 

Step4

 

Step5

 

Step 5

       Modify the properties of the tmd.dll file in Visual Studio changing the "Copy to Output Directory" to "Copy always".

 

Step6

 

Step 6

       Add a Reference to Trial Maker assembly.

 

 

       

Step7

 

 

Step 7

 

       Add the following code into your App.Config file between the <configuration> tags. If your project is already using the SqLite data provider you might not need to add the following section.

 

               <system.data>

                       <DbProviderFactories>

                               <remove invariant="System.Data.SQLite" />

                               <add name="SQLite Data Provider" invariant="System.Data.SQLite"

                                support="3F" description=".Net Framework Data Provider for SQLite"

                                type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />

                       </DbProviderFactories>

               </system.data>

 

 

Step 8

       Finally add the call to TrialManager.VerifyTrial() in your application as one of the first things. For the first parameter put in the PIN code string you copied earlier. It's important that this string is exactly the same with no spaces.

 

Step8b