Two items in Control Panel
Posted 26 July 2010 - 15:05
I have only been working with MSI’s a short time and have a problem I could use some help with. We have 40+ installs that install our suite. 39 work correctly and I am having a problem with 1. We are performing a major upgrade to the installations. I changed the Package Code, Version and Product Code and left the Upgrade Code alone. One the test machine we have “Version 1”. When we upgrade to “Version 2” the upgrade silently removes the existing installation and installs the new application. The only problem is that there are now two entries in Add/Remove programs. I used these exact same steps for the other 39 installs and they all remove the previous versions from Add/Remove program. The correct information is entered in the UpgradeTable. I have traced the install but I am not sure what I am looking for. Any help on how to get the previous version out of Control Panel would be appreciated.
Thanks in advance,
Posted 26 July 2010 - 20:05
When I run the install for “Version 1” it does work correctly. When I run “Version 2” and expect it to auto-upgrade it does not remove the Version 1 entry from control panel. Again, any help would be appreciated.
Posted 27 July 2010 - 11:37
Posted 27 July 2010 - 14:43
Posted 28 July 2010 - 02:21
I have used both Wise and Installshield. Different strenghts and weaknesses. In my opinion Wise is significantly better for reliability - much less bugs, but much poorer in features and flexibility.
Apart from regular update problems I somtimes experienced that Wise would fail to properly upgrade. For products that were not live I solved it by recompiling both setups with new product, package and upgrade guids (upgrade guid should normally match between versions - though other designs are possible).
There are many ways to debug upgrade problems. Apart from log files (which is the right solution in most cases), I sometimes quickly spread messageboxes across the installsequence that show property values as the setup progresses. This tends to narrow down the options.
Some upgrade problems off the top of my head (it's late):
* Errors in package, product or upgrade code. Product code or package code could be identical (latter is worse). Upgrade codes may not match (they normally should)
* Version numbers are the same, or only incremented in the 4th digit. Windows Installer only checks the first 3 digits: 1.0.0
* The property used in the Upgrade table has not been added to the SecureCustomProperties delimited list in the Property table.
* Sequenceing is messed up - uninstall attempt run before detection, standard actions could be missing.
* The setup to uninstall could fail silently and your setup could be configured to ignore and continue.
* Errors in conditions assigned to actions so they never run (rare)
That's all I can cough up at 3.21 at night :-).
Posted 28 July 2010 - 08:10
FWIW, the WI log analyser can be obtained here. The WI SDK is no longer available as a separate item but the Platform SDK is packed full of useful tools and information anyway.
Edited by VBScab, 28 July 2010 - 08:12.
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.
Posted 28 July 2010 - 13:48
Posted 29 July 2010 - 21:33