Assembly Version vs Publish version and doing a auto check for new version
-
Hi Im totally confused with Assembly Version vs Publish version. I have a windows application.I use a SetupProject --> rebuild it --> ,I get the MSI file and Install. I am trying to do a Auto Update on the application and would probably have to play with the version numbers in order to do this. My 1st problem is, when I change the applications assembly version and install the new msi - I get an error that there is already a application installed with the same version, but when I change the publish version it uninstalls the installed app and install the new one. My 2nd problem is I dont really know the best way to check if a new version is available. My idea is to take the running apps version and compare it with the version of the msi file on the server.If they are not the same, it will popup a message on the application saying "A new version is available, please click yes to install the new version" What I want to know: 1.How do I get the application to work on the assembly version and not the publish. 2.I would really appreciate tips what is the best way to write an auto update check. Thank you everyone
-
Hi Im totally confused with Assembly Version vs Publish version. I have a windows application.I use a SetupProject --> rebuild it --> ,I get the MSI file and Install. I am trying to do a Auto Update on the application and would probably have to play with the version numbers in order to do this. My 1st problem is, when I change the applications assembly version and install the new msi - I get an error that there is already a application installed with the same version, but when I change the publish version it uninstalls the installed app and install the new one. My 2nd problem is I dont really know the best way to check if a new version is available. My idea is to take the running apps version and compare it with the version of the msi file on the server.If they are not the same, it will popup a message on the application saying "A new version is available, please click yes to install the new version" What I want to know: 1.How do I get the application to work on the assembly version and not the publish. 2.I would really appreciate tips what is the best way to write an auto update check. Thank you everyone
We had the same problem, and finally decided to write a small AppVersion.exe that checks a local AppVersion.txt and compares it to the server's AppVersion.txt - if different, it shows a message informing the user that an update is being installed, installs the update from the server, and replaces the local AppVersion.txt from the one on the server. Whether an update was done or not, AppVersion.exe starts a process of the main application and then closes. The only implementation problem we had was changing all the desktop icons to point to AppVersion.exe instead of the main program.