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. Application allowed on a single PC

Application allowed on a single PC

Scheduled Pinned Locked Moved C#
questioncsharploungeworkspace
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.
  • D Offline
    D Offline
    DPaul1994
    wrote on last edited by
    #1

    I hope this is the right category where should I post this, if not, I'm sorry but I really need a solution to this cause I don't know how should I suppose to do it. So, I have a setup file for a C# application. I want to write it on a cd and to run automatically the executable when disk is inserted in pc. So far, so good. But, I want that the cd to be able to run it only on one pc. How can I do that? This is a general question cause I don't have any idea about from where to start for achieving this goal. Any answer is welcomed, thanks!

    S D OriginalGriffO 3 Replies Last reply
    0
    • D DPaul1994

      I hope this is the right category where should I post this, if not, I'm sorry but I really need a solution to this cause I don't know how should I suppose to do it. So, I have a setup file for a C# application. I want to write it on a cd and to run automatically the executable when disk is inserted in pc. So far, so good. But, I want that the cd to be able to run it only on one pc. How can I do that? This is a general question cause I don't have any idea about from where to start for achieving this goal. Any answer is welcomed, thanks!

      S Offline
      S Offline
      Sascha Lefevre
      wrote on last edited by
      #2

      DPaul1994 wrote:

      I want that the cd to be able to run it only on one pc.

      Do you mean by that you want it to run only on one specific PC or it shouldn't be able to run on another PC if it has already run on any PC?

      If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

      1 Reply Last reply
      0
      • D DPaul1994

        I hope this is the right category where should I post this, if not, I'm sorry but I really need a solution to this cause I don't know how should I suppose to do it. So, I have a setup file for a C# application. I want to write it on a cd and to run automatically the executable when disk is inserted in pc. So far, so good. But, I want that the cd to be able to run it only on one pc. How can I do that? This is a general question cause I don't have any idea about from where to start for achieving this goal. Any answer is welcomed, thanks!

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You cannot prevent the setup from being run on multiple PC's. There's simply no reliable way your code can know if it was installed on anther machine already.

        A guide to posting questions on CodeProject

        Click this: Asking questions is a skill. Seriously, do it.
        Dave Kreskowiak

        1 Reply Last reply
        0
        • D DPaul1994

          I hope this is the right category where should I post this, if not, I'm sorry but I really need a solution to this cause I don't know how should I suppose to do it. So, I have a setup file for a C# application. I want to write it on a cd and to run automatically the executable when disk is inserted in pc. So far, so good. But, I want that the cd to be able to run it only on one pc. How can I do that? This is a general question cause I don't have any idea about from where to start for achieving this goal. Any answer is welcomed, thanks!

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          If you really want to limit it to a single installation, you will need to produce a different CD for each PC, which contains a identification code which is part of the resulting app. With an internet connection, you can check if the installation from the CD has already been done and reject it, and check the app is "still allowed" every time it runs as well. But...it's a PITA, both from a logistical POV to produce the disks and from a user POV since these things tend to go wrong at the worst moments. Generally speaking, unless this is a mass market application you will probably spend more protecting your app than you would have lost in actual piracy. And even for the big boys it doesn't always work - look at how fast "cracked" versions of Photoshop appear on torrent site after a new release. Same day sometimes: and Adobe spend a lot of money of copy protection...

          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          D 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            If you really want to limit it to a single installation, you will need to produce a different CD for each PC, which contains a identification code which is part of the resulting app. With an internet connection, you can check if the installation from the CD has already been done and reject it, and check the app is "still allowed" every time it runs as well. But...it's a PITA, both from a logistical POV to produce the disks and from a user POV since these things tend to go wrong at the worst moments. Generally speaking, unless this is a mass market application you will probably spend more protecting your app than you would have lost in actual piracy. And even for the big boys it doesn't always work - look at how fast "cracked" versions of Photoshop appear on torrent site after a new release. Same day sometimes: and Adobe spend a lot of money of copy protection...

            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

            D Offline
            D Offline
            DPaul1994
            wrote on last edited by
            #5

            I see. Thank you for your answer, it helps!

            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