![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi Steve, First of all, I would like to confirm my understanding of your issue. From your description, I understand that the previous version of your application is still on the machine even you have set RemovePreviousVersion property to True. If there is any misunderstanding, please feel free to let me know. Based on my research, when RemovePreviousVersion property has been set to true. We have also to ensure the value of UpgradeCode in both versions. The installer checks UpgradeCode and ProductCode properties to determine whether the earlier version should be removed. The UpgradeCode must be the same for both versions; the ProductCode must be different. HTH. Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights." |
#4
| |||
| |||
|
|
Your understanding of my issue is correct. The upgrade code is the same for both versions. The product codes are different. Thanks. Steve |
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Hi Steve, Thanks for the files. I think I have figured out what is going wrong. This is an overlooked scenario. Usually we use product versions greater than 1.0.0. In the MSI generated by VS.Net, the logic for "RemovePreviousVersions" is to look for all the products with the same upgrade code with version between 1.0.0 and the version of the current product. To be more specific, the VersionMin of the product we search to remove is 1.0.0 and the VersionMax is the current product version. In your packages, you are using a version less than 1.0.0 here. So in the second package the VersionMin we search for is 1.0.0 and the VersionMax is 0.5.219. As a result, no existing product will be qualified with such an impossible condition. Consequently, the existing version of the product 0.5.218 is not considered a valid previous version and is ignored. I would suggest that we try a version greater than 1.0.0. Does it help? Regards, Felix Wang Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights. |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Hi Steve, First of all, I would like to check whether modifying the version to more than 1.0 helps or not. To workaround this, we can use a Windows Installer Platform SDK Tool named "Orca" to modify the generated MSI. We can modify the "VersionMin" in its "Upgrade" table. I hope this helps. http://www.microsoft.com/msdownload/platformsdk/sdkupdate/ Regards, Felix Wang Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights. |
#10
| |||
| |||
|
|
I have a setup project for my VB.Net application with the RemovePreviousVersion property set to True. When I want to publish a new version of the application, I change the version and say Yes to changing the product and package codes. I do a "Just for me" install for the new version and it installs just fine. However, the old version is not removed. It is still in the Add/Remove Programs list. Can anyone tell me what am I doing wrong? Thanks Steve |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |