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. when i delete my program (in C#) the database still exists - how to delete him ?

when i delete my program (in C#) the database still exists - how to delete him ?

Scheduled Pinned Locked Moved C#
csharpdatabasetutorialquestion
6 Posts 5 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
    goldsoft
    wrote on last edited by
    #1

    hi when i delete my program (in C#) through add/remove programs the database still exists - how to delete him ? thanks in advance

    Richard Andrew x64R P 2 Replies Last reply
    0
    • G goldsoft

      hi when i delete my program (in C#) through add/remove programs the database still exists - how to delete him ? thanks in advance

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      You can create a custom action in your installer that runs when the product is uninstalled. The custom action would call a function in one of your DLL's that removes any files created by the program after it was installed.

      The difficult we do right away... ...the impossible takes slightly longer.

      G 1 Reply Last reply
      0
      • G goldsoft

        hi when i delete my program (in C#) through add/remove programs the database still exists - how to delete him ? thanks in advance

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        "All your database is belong to us." -- Microsoft

        P 1 Reply Last reply
        0
        • Richard Andrew x64R Richard Andrew x64

          You can create a custom action in your installer that runs when the product is uninstalled. The custom action would call a function in one of your DLL's that removes any files created by the program after it was installed.

          The difficult we do right away... ...the impossible takes slightly longer.

          G Offline
          G Offline
          Gali1978
          wrote on last edited by
          #4

          thanks for the help ! how to make custom action to my installer ?

          Richard Andrew x64R 1 Reply Last reply
          0
          • G Gali1978

            thanks for the help ! how to make custom action to my installer ?

            Richard Andrew x64R Offline
            Richard Andrew x64R Offline
            Richard Andrew x64
            wrote on last edited by
            #5

            What are you using to create the install package?

            The difficult we do right away... ...the impossible takes slightly longer.

            1 Reply Last reply
            0
            • P PIEBALDconsult

              "All your database is belong to us." -- Microsoft

              P Offline
              P Offline
              Paladin2000
              wrote on last edited by
              #6

              What you say?!

              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