My setup.exe file is not deploying the new version of my exe RRS feed

  • Question

  • Hi

    I've recently started using VS 2010 after using VS2005 for some time, and now I am having problems with the setup files created by 2010.

    In the setup project I always have the 'Detect newer installed version' and 'remove previous version' set and increase the version number as I go. Under vs2005 this meant I could just run the setup.exe and it would replace my previous version.

    Under 2010 the new setup.exe and .msi files are created, but after they run the main .exe file is still the old version, but the version number has increased (displayed in the main program). Now the version number is stored in the app settings, so it would appear that some of the install works, but the exe is still the old one, any new features or behaviour changes are not there.

    If I right click the MSI and uninstall it, then re-install I get the correct version, so I know the code is compiling correctly.

    Interestingly, if I update the version number of the setup and re-compile, and then try to use a right click uninstall on the msi file, it tells me that the product is not installed, I'm guessing that perhaps the automatic uninstall is also failing (quietly) and causing the new install to fail too. It would appear that the new version can't detect the old.

    I'm a bit out of my depth here, any ideas?

    • Moved by Liliane Teng Thursday, June 16, 2011 2:26 AM have reposted on appropriate forum (From:Visual Basic General)
    Wednesday, June 15, 2011 9:11 AM

All replies

  • I would recommend posting your question to the ClickOnce and Setup & Deployment Projects forum, or perhaps a moderator can move your question there:



    Paul ~~~~ Microsoft MVP (Visual Basic)
    Wednesday, June 15, 2011 12:55 PM
  • Take a look what your setting are in Build -> configuration manager.

    With that you manage what files are build.



    Wednesday, June 15, 2011 12:59 PM
  • Hi Cor

    Both projects are set to build, and as I said, the msi contains the correct version, it just isn't deploying it.

    I have reposted this question in ClickOnce and Setup & Deployment Projects.

    Mods, if you want to close this thread down then feel free.

    Wednesday, June 15, 2011 1:17 PM
  • Hi rmb3011,

    I found you have reposted on ClickOnce and Setup & Deployment Projects forum and have resolved this problem. Now I will move this thread to Off-Topic forum. Thanks for your understanding.

    Have a nice day.

    Best regards


    Liliane Teng [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, June 16, 2011 2:25 AM