dat file and product key

Hi,

I am having two versions of my application.One is full product and one is trial product.Now we have created two versions on limelm also.Both will have different Version GUID which i can handle from my code depedning upon the version identification.But do i also need to download .dat file and .exe file separately for these different version?Will one .dat file work for both the versions?Do i need to maintain 2 Windows folder inside my application.

ThanksDhwani

Hey Dhwani,

It would be easier if you just have a single version in LimeLM and use those product keys for both trial and full verisons of your app. You can use license fields (e.g. "is_trial") to differentiate trial/full. This has the added advantage of being able to change a product key from a "trial" one to a "full" one just by editing the "is_trial" field.

Hi,Thanks for the quick response.I will go by that way only.

ThanksDhwani

Hello,

I have found that if i changed my trial days length then i need to redownload the .dat file and use it in m,y application.

Now as i have previously posted you query about how to maintain different versions and you have suggested to have only one in limelm and manage it using is_trial and is_full variables.

Now i am confused on how the days length will be handleed here?My trial version is valid for 2 days as of now and full version is valid for 1 year.So how to use .dat file and versions?

ThanksDhwani

Use another license field of date/time type named something like "expires_on". Then you can set that value to be either 2 days from the time you created the product key or 1 year from the time you created the product key.

Hi,I have just gone through below forum post https://wyday.com/forum/t/662/adobe-air-two-applications-one-project/#post-3317

I am also having the same scenario.I understood the process which you have suggested to follow. But i am also opting for path B 2nd option.May i know where should i keep both *.dat files?

Is it possible to change name of the *.dat files to easily identify which .dat file is for which version?

ThanksDhwani

Is it possible to change name of the *.dat files to easily identify which .dat file is for which version?

Yes, you can use any name you want so long as you call PDetsFromPath().

Hi,

I am continuing my last forum post answer here. There was some unrelated post in my forum post.

I have renamed my two .dat files as TurboActivateFull.dat and TurboActivateTrial.dat.I have kept them in my Windows folder and after identifying version i am passing path of .dat file to load.I am getting below error:The product details file "TurboActivate.dat" failed to load. It's either missing or corrupt.

I have redownloaded turboactivate folder from your site and taken systa.exe and .dll file from there.Am i missing anything here?

I am calling ta.PDetsFromPath before checking anything else from turboactivate.(I am providing version guid before calling this function)Please let me know what should i do?

ThanksDhwani

The error is telling you what's wrong. It can't find it. That means you're not passing in the correct path. Are you just putting in part of the path? If so, put in the full path.

Hello,

We are experiencing the same problem. Function PDetsFromPath receives full path to the dat file, which exists (it can be opened with fopen()), but only on Windows this function returns TA_E_PDETS, "The product details file "TurboActivate.dat" failed to load". TurboActivate is version 3.3.4

On the other platforms (Linux, Mac OS) it is working well.Thank you for solution.

Well, there's not enough information to solve this problem for you. Here's what you need to do:

  1. Redownload the TurboActivate.dat from LimeLM.
  2. Include the re-downloaded TurboActivate.dat with your app.
  3. Make sure you specify the full absolute path to PDetsFromPath() if you're using that function.
  4. Make sure the file is readable by your app (and/or the TurboActivate wizard).

If you're still getting the error then give me the snippet of code you're using that's failing.

Hi,

Thanks for the response. I have not given the full path and that is why it was giving me an error.Thanks it works fine now.

Thanks for help, finally I found an error. On Windows, each string, passed to the TA functions, has to be converted with "MultiByteToWideChar", or each string constants has to be prefixed with L.