Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Where to hide my app. registration registry key...

Where to hide my app. registration registry key...

Scheduled Pinned Locked Moved C#
csharpcomwindows-adminhelpquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harleydk
    wrote on last edited by
    #1

    Hello, thanks in advance for your attention. I'm delving into application registration for the first time. I've figured out my approach in regards to handling registration, in no small part based on Heath Stewart's great article (http://www.codeproject.com/csharp/ComputerID.asp). Yet I'm faced with a problem: I wish to allow the user a 90 day trial period of the application. Beyond those 90 days, only a registration option will be available. Now, I need to store a "application installation date" value somewhere locally, as I don't wish to rely on an available Internet connection. But where do I store this, so that the user cannot effortlessly simply uninstall and reinstall the application for a further 90 days trial? I reckon the registry is the place to hide this, but does anyone have a safe tip on exactly where to put it, so it won't interfere with other applications on the machine? Like I said, thank you in advance. Morten, Denmark -- modified at 18:33 Thursday 1st November, 2007

    C 1 Reply Last reply
    0
    • H harleydk

      Hello, thanks in advance for your attention. I'm delving into application registration for the first time. I've figured out my approach in regards to handling registration, in no small part based on Heath Stewart's great article (http://www.codeproject.com/csharp/ComputerID.asp). Yet I'm faced with a problem: I wish to allow the user a 90 day trial period of the application. Beyond those 90 days, only a registration option will be available. Now, I need to store a "application installation date" value somewhere locally, as I don't wish to rely on an available Internet connection. But where do I store this, so that the user cannot effortlessly simply uninstall and reinstall the application for a further 90 days trial? I reckon the registry is the place to hide this, but does anyone have a safe tip on exactly where to put it, so it won't interfere with other applications on the machine? Like I said, thank you in advance. Morten, Denmark -- modified at 18:33 Thursday 1st November, 2007

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The sad fact is, the only way you can achieve this is to be anti social. You need to hide the data so that the user can't find it. I never use the registry, I would put a file in the system32 folder, and name it something starting with MS so it looks official, something like MSVWML.DLL. Then store your date in there, but not as plain text, you don't want anyone to be able to modify it in notepad.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      P L 2 Replies Last reply
      0
      • C Christian Graus

        The sad fact is, the only way you can achieve this is to be anti social. You need to hide the data so that the user can't find it. I never use the registry, I would put a file in the system32 folder, and name it something starting with MS so it looks official, something like MSVWML.DLL. Then store your date in there, but not as plain text, you don't want anyone to be able to modify it in notepad.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        Christian Graus wrote:

        put a file in the system32 folder, and name it something starting with MS so it looks official, something like MSVWML.DLL

        That works fine. Most people fall for it.

        1 Reply Last reply
        0
        • C Christian Graus

          The sad fact is, the only way you can achieve this is to be anti social. You need to hide the data so that the user can't find it. I never use the registry, I would put a file in the system32 folder, and name it something starting with MS so it looks official, something like MSVWML.DLL. Then store your date in there, but not as plain text, you don't want anyone to be able to modify it in notepad.

          Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Christian Graus wrote:

          something like MSVWML.DLL

          my system32 is full of that crap. How did you get access to my machine? :mad:

          Luc Pattyn [Forum Guidelines] [My Articles]


          this months tips: - use PRE tags to preserve formatting when showing multi-line code snippets - before you ask a question here, search CodeProject, then Google


          H 1 Reply Last reply
          0
          • L Luc Pattyn

            Christian Graus wrote:

            something like MSVWML.DLL

            my system32 is full of that crap. How did you get access to my machine? :mad:

            Luc Pattyn [Forum Guidelines] [My Articles]


            this months tips: - use PRE tags to preserve formatting when showing multi-line code snippets - before you ask a question here, search CodeProject, then Google


            H Offline
            H Offline
            harleydk
            wrote on last edited by
            #5

            Thank you all. Best, Morten

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups