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 / C++ / MFC
  4. Need Your valuable suggestion

Need Your valuable suggestion

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialdatabasequestion
4 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.
  • G Offline
    G Offline
    Game point
    wrote on last edited by
    #1

    Hi All I need your suggestion for my following questions. Recently i have buillt one standalone desktop software application and my question is , 1. Application should be installed only one pc. 2. Once installed single PC it wont work/install otherPC/same PC next time. 3. We cannot used database for that application, also internet connection. Please guide me how to proceed ! Thanks N Advance

    :~ Failure is Success If we learn from it!!:~

    L O M 3 Replies Last reply
    0
    • G Game point

      Hi All I need your suggestion for my following questions. Recently i have buillt one standalone desktop software application and my question is , 1. Application should be installed only one pc. 2. Once installed single PC it wont work/install otherPC/same PC next time. 3. We cannot used database for that application, also internet connection. Please guide me how to proceed ! Thanks N Advance

      :~ Failure is Success If we learn from it!!:~

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This does not look like a C++ question, you may like to try a more appropriate forum. You may also like to explain in more detail what actual problem you are facing.

      One of these days I'm going to think of a really clever signature.

      1 Reply Last reply
      0
      • G Game point

        Hi All I need your suggestion for my following questions. Recently i have buillt one standalone desktop software application and my question is , 1. Application should be installed only one pc. 2. Once installed single PC it wont work/install otherPC/same PC next time. 3. We cannot used database for that application, also internet connection. Please guide me how to proceed ! Thanks N Advance

        :~ Failure is Success If we learn from it!!:~

        O Offline
        O Offline
        Orjan Westin
        wrote on last edited by
        #3

        Not a C++ question, and you haven't provided enough information to answer the question without making a lot of assumptions. So, assuming the platform is Windows, and that the PC is not connected to the internet: 1. Make a pre-install application that reports a unique ID for the PC. If you don't fancy rolling your own algorithm (not recommended), consider using the value found in the Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductId which is probably unique and tied to an installation of Windows (see this StackOverflow discussion). 2. Once the user has run this application and reported the unique number, use it, with a secret key and a suitable hashing algorithm, to generate a unique hash tied to this ID. Deliver this hash to the user (in a letter, or email to other PC, or in a text message, or however you like). 3. In the installer, get the unique ID (by reading the Registry above), apply the hashing algorithm, ask the user for his or her hash, and compare the two. If they correspond, this is the correct PC, if not, abort the installation. 4. After installation is complete, Windows Installer will make a that this application has been installed. You can check this at the start of the installer to make sure it's not re-installed. Basically, if you want to limit an application to be installed on only one PC, you need some way of identifying this single PC. If internet access isn't available, it can't be done during installation, so will need to be done in a two-step process.

        1 Reply Last reply
        0
        • G Game point

          Hi All I need your suggestion for my following questions. Recently i have buillt one standalone desktop software application and my question is , 1. Application should be installed only one pc. 2. Once installed single PC it wont work/install otherPC/same PC next time. 3. We cannot used database for that application, also internet connection. Please guide me how to proceed ! Thanks N Advance

          :~ Failure is Success If we learn from it!!:~

          M Offline
          M Offline
          molesworth
          wrote on last edited by
          #4

          Orjan Westin's suggestion of a unique key is probably the way to go, but you could also consider a hardware "dongle", e.g HASP, KeyLok, SecuTech etc. The key can be shipped to the customer with the product media, or delivered separately when they request a license, and will ensure only one copy of the software is running per key supplied. Some dongle systems allow for upgrading, enabling additional features, and time-limited trial versions as well.

          Days spent at sea are not deducted from one's alloted span - Phoenician proverb

          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