This is my first dabble into Setup Projects. I have Solution in VS2013. Within the solution is a C# Winform project, and a Setup Project.
On first build, I can use the setup.exe to install my application on my laptop; no issues. However, when I make changes to my Winforms, these are not reflected by any subsequent re-install. Quite simply, the build does not pass winform changes to the setup package.
To explain: I make changes to a form, for example I add a label or button. In my setup project I increase the version number. VS automatically generates a new Product Code. Build all. Copy the setup.exe + msi from the setup project's debug folder. Paste to desktop. Execute setup.exe Install completes successfully. Control Panel > Programs, confirms the new version number. Yet running the app, none of my form changes are there !?
Hope someone might be able to explain what's going on, what I am missing !? Many Thanks
A Visual Studio Installer project will automatically pick up the right version of the application if you add the Primary Output of your application. So that's that.
It could be that Visual Studio does package the new version of the executable, but it does not get installed, because you forgot to increase the executable's version number, too (not just the installer's version number!). AFAIK, Windows Installer replaces files only if the version number differs.
What happens when you uninstall the old version before installing the new version? Do you then see your changes? If that's the case, try increasing the version number before the next update.