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. How to protect my project from multiple installations?

How to protect my project from multiple installations?

Scheduled Pinned Locked Moved C#
sysadmintutorialquestion
8 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.
  • R Offline
    R Offline
    Roney
    wrote on last edited by
    #1

    I've developed one small school project(windows project) now I've to deliver my project to my client.If my cient was trying to install it more than once in some of system it should ask some serial code or it should raise not more than once.Simply my project has to install only once.Again trying to install in other systems it should ask serial keys or watever so how to do these settings to my project(is there any chance to set in click once deployment). It's too urgent for me.........thank u for ur quick response.

    P S 2 Replies Last reply
    0
    • R Roney

      I've developed one small school project(windows project) now I've to deliver my project to my client.If my cient was trying to install it more than once in some of system it should ask some serial code or it should raise not more than once.Simply my project has to install only once.Again trying to install in other systems it should ask serial keys or watever so how to do these settings to my project(is there any chance to set in click once deployment). It's too urgent for me.........thank u for ur quick response.

      P Offline
      P Offline
      PH MAT
      wrote on last edited by
      #2

      Roney wrote:

      Simply my project has to install only once.

      Set an machine registry key on install and check it before install.

      Roney wrote:

      is there any chance to set in click once deployment

      ClickOnce only simplifies the deployment from a single point, it does not solve single installation completely.

      R 1 Reply Last reply
      0
      • R Roney

        I've developed one small school project(windows project) now I've to deliver my project to my client.If my cient was trying to install it more than once in some of system it should ask some serial code or it should raise not more than once.Simply my project has to install only once.Again trying to install in other systems it should ask serial keys or watever so how to do these settings to my project(is there any chance to set in click once deployment). It's too urgent for me.........thank u for ur quick response.

        S Offline
        S Offline
        Samer Aburabie
        wrote on last edited by
        #3

        Hi ... You can do so using the properties of the setup project ... there is a property called DetectNewerInstalledVersion which will check if a newer version is already installed on the machine and aborts the installation if there is one, and this also includes the same version as well, the default value for it is false so set it to true, but you have to make sure that the version of the product is set to 1.0.0 and above ... this property will not work on lower versions as i think (e.g 0.0.5 ) Give it a shot ... and you might wanna take a look at another property in the setup project which is RemovePreviousVersions I hope this helps ... :)

        Sincerely Samer Abu Rabie Note: Please remember to rate this post to help others whom reading it.

        R 1 Reply Last reply
        0
        • P PH MAT

          Roney wrote:

          Simply my project has to install only once.

          Set an machine registry key on install and check it before install.

          Roney wrote:

          is there any chance to set in click once deployment

          ClickOnce only simplifies the deployment from a single point, it does not solve single installation completely.

          R Offline
          R Offline
          Roney
          wrote on last edited by
          #4

          Yes i thought like this whatever u have told.........but how to set registry key and where it is to be set......plz help me it is very urgent.

          1 Reply Last reply
          0
          • S Samer Aburabie

            Hi ... You can do so using the properties of the setup project ... there is a property called DetectNewerInstalledVersion which will check if a newer version is already installed on the machine and aborts the installation if there is one, and this also includes the same version as well, the default value for it is false so set it to true, but you have to make sure that the version of the product is set to 1.0.0 and above ... this property will not work on lower versions as i think (e.g 0.0.5 ) Give it a shot ... and you might wanna take a look at another property in the setup project which is RemovePreviousVersions I hope this helps ... :)

            Sincerely Samer Abu Rabie Note: Please remember to rate this post to help others whom reading it.

            R Offline
            R Offline
            Roney
            wrote on last edited by
            #5

            I think you are not get correctly to my question--I want to install my project only once at client location..if the client make copy to my exe files and try to install in other systems(means if the client will want to make duplicate copies of my project and try to cash my project) it should say 'this application is not permitted to install more than once and even it has to be give like alreday it was installed by some client ".

            S 1 Reply Last reply
            0
            • R Roney

              I think you are not get correctly to my question--I want to install my project only once at client location..if the client make copy to my exe files and try to install in other systems(means if the client will want to make duplicate copies of my project and try to cash my project) it should say 'this application is not permitted to install more than once and even it has to be give like alreday it was installed by some client ".

              S Offline
              S Offline
              Samer Aburabie
              wrote on last edited by
              #6

              I hope I got you correctly this time, You want you application to only be installed once on one machine, and whatever the client do to install it on another machine he shall fail ! Well ... I could think of two ways to help you out: - Generate some kind of license and whenever the application is installed he should communicate a server for that license to validate it, if its good then complete it or run the application, other wise it will fail. - You can build your application to that specific client machine, by checking the partition serial number or some hard disk info or even reading a unique registry key, where its only unique to that machine.

              Sincerely Samer Abu Rabie Note: Please remember to rate this post to help others whom reading it.

              R 1 Reply Last reply
              0
              • S Samer Aburabie

                I hope I got you correctly this time, You want you application to only be installed once on one machine, and whatever the client do to install it on another machine he shall fail ! Well ... I could think of two ways to help you out: - Generate some kind of license and whenever the application is installed he should communicate a server for that license to validate it, if its good then complete it or run the application, other wise it will fail. - You can build your application to that specific client machine, by checking the partition serial number or some hard disk info or even reading a unique registry key, where its only unique to that machine.

                Sincerely Samer Abu Rabie Note: Please remember to rate this post to help others whom reading it.

                R Offline
                R Offline
                Roney
                wrote on last edited by
                #7

                Yes now you got it...but how to set registry keys and i don't know plz help me how to crack this problem i.e very important to my project...... can u plz give settings or solution for that...........

                D 1 Reply Last reply
                0
                • R Roney

                  Yes now you got it...but how to set registry keys and i don't know plz help me how to crack this problem i.e very important to my project...... can u plz give settings or solution for that...........

                  D Offline
                  D Offline
                  Data_Dragon
                  wrote on last edited by
                  #8

                  A registry would only work on one machine, the original, installing a registry would not prevent them from installing it on another machine because it would not be present on that machine, a better solution would be to make a custom serial key as was said earlier, for that comp and it only, mabe with its IP address if the computer is never moved or other computer info, talk with the client first, and get the info, or hard code it into the code for custom perchases. Thats just one idea, if you can get the server varification of a one-time-use serial number that would be best, if you MUST stick with registry keys this: http://www.codeproject.com/KB/system/modifyregistry.aspx[^] might help... best of luck!

                  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