How to upgrade per-user or all-users?
Posted 05 December 2006 - 04:37
I understand that Windows Installer will not find products installed in a different context so I need a custom action to locate the previous install and remove it. Can anyone point me at a sample or some advice?
Posted 06 December 2006 - 11:16
Posted 08 December 2006 - 01:50
The installer I'm using does uninstall previous versions (via upgrade code I believe) but if the previous install was per-user then the new "per machine" installer won't find it and there will be two copies of the product installed.
I have seen a rather complex article on overriding the function that searches for previous installations to make it find previous installs regardless of context but this was for Windows Installer 2 and involved editing the MSI tables etc, I was hoping there might be an easier way.. it seems like a pretty silly "bug" in windows installer..
In a perfect world I would still be using InstallShield which apparently handles this situation but our current product is a large and complex .NET 2 application and IS12 is very broken in this environment (ie dependency scans don't work, it crashes with more than one project per solution etc etc).
Edited by barees63, 08 December 2006 - 01:54.