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 / C++ / MFC
  4. RemovePreviousVersions VS 2008 leaves previous version untouched

RemovePreviousVersions VS 2008 leaves previous version untouched

Scheduled Pinned Locked Moved C / C++ / MFC
questionvisual-studioannouncement
2 Posts 1 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
    ravenspoint
    wrote on last edited by
    #1

    I am accustomed to RemovePreviousVersions uninstalling the previous version and installing the new one. I just need to increment the version number, accept a new product code and leave the upgrade code untouched. But the vs2008 msi leaves the old versions of the files in the installation folder. I have read that this is because vs2008 checks the version of the individual files, and if they have not changed, refuses to install the new file. OK. So how do I increment the version number of the individual files? I do not want to have to change each file manually! Thanks, James

    R 1 Reply Last reply
    0
    • R ravenspoint

      I am accustomed to RemovePreviousVersions uninstalling the previous version and installing the new one. I just need to increment the version number, accept a new product code and leave the upgrade code untouched. But the vs2008 msi leaves the old versions of the files in the installation folder. I have read that this is because vs2008 checks the version of the individual files, and if they have not changed, refuses to install the new file. OK. So how do I increment the version number of the individual files? I do not want to have to change each file manually! Thanks, James

      R Offline
      R Offline
      ravenspoint
      wrote on last edited by
      #2

      I have discovered a simple, almost crude, solution for this problem. Remove the VERSIONINFO resource. Now the installer will delete the old installed file and replace it with the one in the installation package. To remove the VERSIONINFO resource: - Open the resource view - Open .rc - Open Version - Right click on VERSIONINFO - Delete

      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