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. Installer won't overwrite previous version?

Installer won't overwrite previous version?

Scheduled Pinned Locked Moved C#
announcementcsharpwinformscomtools
7 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.
  • J Offline
    J Offline
    Jasmine2501
    wrote on last edited by
    #1

    I created an installer project for my C# windows forms app, but it won't overwrite previous versions of the program. The users have to go to their Add/Remove Programs, and uninstall it there, then the new installer will run. I can't find anything about this on Google or in the MSDN. I found reference to a property of OverwritePreviousVersion, but I can't find it in my project anywhere? I've looked through all the properties windows of the application, and of the installer project... Where do I set this option? I just need it to overwrite the EXE file really... the rest of the stuff can stay... well I'd need to update the shortcuts in the programs menu too I think...

    "Quality Software since 1983!"
    http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

    I 1 Reply Last reply
    0
    • J Jasmine2501

      I created an installer project for my C# windows forms app, but it won't overwrite previous versions of the program. The users have to go to their Add/Remove Programs, and uninstall it there, then the new installer will run. I can't find anything about this on Google or in the MSDN. I found reference to a property of OverwritePreviousVersion, but I can't find it in my project anywhere? I've looked through all the properties windows of the application, and of the installer project... Where do I set this option? I just need it to overwrite the EXE file really... the rest of the stuff can stay... well I'd need to update the shortcuts in the programs menu too I think...

      "Quality Software since 1983!"
      http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

      I Offline
      I Offline
      Iftekhar Naim
      wrote on last edited by
      #2

      So you just need to overwrite the previous installed versions while installing ? In that case, just check the properties of the installer project. In the property window, you will find an attribute - 'RemovePreviousVersions'. Set it to "true"(sorry for previous mistake, just set it to true) and i hope it will work. btw, thanks for your reply to my post.

      Chayan

      J 1 Reply Last reply
      0
      • I Iftekhar Naim

        So you just need to overwrite the previous installed versions while installing ? In that case, just check the properties of the installer project. In the property window, you will find an attribute - 'RemovePreviousVersions'. Set it to "true"(sorry for previous mistake, just set it to true) and i hope it will work. btw, thanks for your reply to my post.

        Chayan

        J Offline
        J Offline
        Jasmine2501
        wrote on last edited by
        #3

        There is no such thing on my project. That is what I'm saying... I could send screen shots... I have no idea what I'm looking at. I've read the articles that talk about that property, but I can't find it on any of the screens in my Visual Studio. I know it sounds stupid, but it's just not there?!

        "Quality Software since 1983!"
        http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

        I 1 Reply Last reply
        0
        • J Jasmine2501

          There is no such thing on my project. That is what I'm saying... I could send screen shots... I have no idea what I'm looking at. I've read the articles that talk about that property, but I can't find it on any of the screens in my Visual Studio. I know it sounds stupid, but it's just not there?!

          "Quality Software since 1983!"
          http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

          I Offline
          I Offline
          Iftekhar Naim
          wrote on last edited by
          #4

          So you are in a strange situation. This option may vary from version to version. I am not sure. I use visual studio 2005. I don't know about other versions.. One more thing, i know you have already checked everywhere for this option. So it's silly to say it again. But still, just to make sure, there are 2 property pages. One if you right click on the SetUp project and click on property. Then you'll see a property page but you can't find it there. But if you just select the setup project, then in the property tab, you should find it. But i know, you must have checked it and can't find it. So I don't know what can be the solution. Hope that, someone else can help you. Regards

          Chayan

          J 1 Reply Last reply
          0
          • I Iftekhar Naim

            So you are in a strange situation. This option may vary from version to version. I am not sure. I use visual studio 2005. I don't know about other versions.. One more thing, i know you have already checked everywhere for this option. So it's silly to say it again. But still, just to make sure, there are 2 property pages. One if you right click on the SetUp project and click on property. Then you'll see a property page but you can't find it there. But if you just select the setup project, then in the property tab, you should find it. But i know, you must have checked it and can't find it. So I don't know what can be the solution. Hope that, someone else can help you. Regards

            Chayan

            J Offline
            J Offline
            Jasmine2501
            wrote on last edited by
            #5

            Iftekhar Naim wrote:

            just select the setup project, then in the property tab, you should find it

            OMG! Thank you! I will sooo buy you coffee if I ever see you :)

            "Quality Software since 1983!"
            http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

            I 1 Reply Last reply
            0
            • J Jasmine2501

              Iftekhar Naim wrote:

              just select the setup project, then in the property tab, you should find it

              OMG! Thank you! I will sooo buy you coffee if I ever see you :)

              "Quality Software since 1983!"
              http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

              I Offline
              I Offline
              Iftekhar Naim
              wrote on last edited by
              #6

              You are welcome. and thanks for your offer of coffee:). let me be optimistic..

              Chayan

              J 1 Reply Last reply
              0
              • I Iftekhar Naim

                You are welcome. and thanks for your offer of coffee:). let me be optimistic..

                Chayan

                J Offline
                J Offline
                Jasmine2501
                wrote on last edited by
                #7

                Hehe... that's just me. I'm a real bitch online sometimes but I'm actually a friendly and generous person - I'll buy coffee for anyone, maybe even dinner. In my world, I don't meet people in person too often, so it's a nice treat when I get to do that.

                "Quality Software since 1983!"
                http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.

                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