Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to remove msi info without uninstall?


1 reply to this topic

zeevt

zeevt
  • Full Members
  • 2 posts

Posted 01 November 2007 - 16:37

Hi all,

We want to install new version of our product (big and very complex) to our enterprise customers. Previous installations was developed in Installshield 9 and 11.5, new one we develop in IS 2008. We can't use MSI upgrade feature, since the product architecture was cardinally changed.
Before installing the new version, we need to remove all old MSI info from the system, without make uninstall, since it removes some configuration and data files, that we don't want to lose.
When the new setup tries to remove not needed files and registry keys "windows files protection" restores them successfully.

Is somebody know how to overcome this?

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 02 November 2007 - 01:31

You've got to face the fact that the previous Setup has a bug and you've got to fix that first. The bug is that this Setup ignores the UPGRADINGPRODUCTCODE property: when this is set, the configuration and data files should not be removed. (The property is set when a product is uninstalled due to a major upgrade, look up the docs).

After that you can use the major upgrade functionality of Windows Installer. But first you distribute the fix as a patch.

One alternative is a utility called Msizap.exe. This program removes MSI info and leaves everything else. Prepare yourself for target computers getting corrupted, esp. if the 'removed' MSI was using merge modules. In that case you have no other option but reinstalling the OS of the target computer.