Deployment project not updating .exe

Posted by Stuart Dunkeld on Stack Overflow See other posts from Stack Overflow or by Stuart Dunkeld
Published on 2009-04-30T11:40:51Z Indexed on 2010/03/11 19:24 UTC
Read the original article Hit count: 326

Filed under:
|
|

I have a Winforms project with a single .exe file as the primary output. I'm using a deployment project to distribute it, but the .exe file is not being updated when the new version is installed, meaning I have to ask the users to manually uninstall and then install the new version.

Here's what I'm doing:

  • I increment the assembly version on the output project (which is the primary output of the deployment project)
  • I increment the deployment project version (and update the product code when prompted)
  • The deployment project is set to remove previous versions
  • the 'Permanent' property on the .exe is set to False

I'm sure I've done this before successfully, but I can't seem to do it now. What am I doing wrong?

Edit: I got it to work by changing the file version in the project properties, as in this answer

© Stack Overflow or respective owner

Related posts about winforms

Related posts about c#