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. prevent reinstallation - setup project visual studio

prevent reinstallation - setup project visual studio

Scheduled Pinned Locked Moved C#
2 Posts 2 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.
  • B Offline
    B Offline
    bhavik1st
    wrote on last edited by
    #1

    Hello experts. Want to create an installer from binaries. But want to disallow any re-installation of the software. How to achieve this? Thanks in advance. Regards,

    // By Bhavik Shah

    L 1 Reply Last reply
    0
    • B bhavik1st

      Hello experts. Want to create an installer from binaries. But want to disallow any re-installation of the software. How to achieve this? Thanks in advance. Regards,

      // By Bhavik Shah

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

      That's not supported by most installers, so you're probably going to have to build this yourself. That may be hard or easy, depending on the software that you're using to create the installation routine. First you'd have to check for any sign whether your software has been installed previously. You can leave a marker in the registry, but there is no guarantee that the user doesn't wipe your marker and reinstalls anyway. On install, you'd have to check whether the marker is present on the system. If it is, abort the installation and give a nice message detailing what happened, and why you're refusing the reinstall. Out of curiousity, why don't you want them to reinstall your product?

      I are troll :)

      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