• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Restrict installation of Application

 
Ranch Hand
Posts: 79
Android Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have created applications which has 2 version - Trial & Registered. At present I have kept limitations on trial version & after the period is over, user has to register the product to use further.

But many uninstall the applicaiton & install it again which makes them free of access multiple times. I want to restrict this. If a person installs once the applicaiton, after finish of trial period, it should not be able to install again. How do I achieve this. I have no idea on how to achieve this or work around this. I need to know this for normal application & mobile application.

Guide me appropriately.
Thanks
 
Rancher
Posts: 4686
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its impossible. What you want is a Digital Rights Managment system. All of them are broken eventually.

In Windows, you can try putting something in the Registry and then whining on the second install. On other O/S you can try to write a file somewhere. But these are just SBO, they won't work long term.

You can have better luck by using a connection to a webserver to "check for updates" periodically. If you actually provide valuable updates, you can encourage your customers to check.

If you really want to protect your code, you have to write it as a Web service, and never distribute the code.
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Trupti,

You can try this way, you can use this library with java to access registry http://www.trustice.com/java/jnireg/

You put a value in registry like for trial you keep TRIAL

Now on uninstallation, dont remove this value, keep it in there secondly you can create a temp file in some windows or other folder that is hidden & read only, now if someone reinstalls the application, check the registry value & read that file, if its there then restrict installation.

tats it..
 
rubbery bacon. rubbery tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic