Which per-user one ? There could be multiple per-user installations on a machine. You'd have to be an admin to detect the per-user installation of another user. The other users might not be too happy if someone came along and removed their installation if it had some user-specific configuration/customisations that weren't carried over to the new per-machine installation. It sounds like the kind of thing that ought to be sorted out manually, rather than automatically.
That said, if your environment means this kind of thing would be ok, then you can enumerate per-user installations with the MSI API call MsiEnumProductsEx() (or DTF equivalent, if there is one) and passing the appropriate context arguments. This would only detect that such products exist. MsiConfigureProductEx could then be used to remove them but I wouldn't do this in an installer... maybe as part of a chainer. -----Original Message----- From: Martin Kulov [mailto:mar...@kulov.net] Sent: 13 October 2011 10:47 To: wix-users Subject: Re: [WiX-users] major upgrade from per-client to per-machine install Hi everyone, Is there a way to detect per-user installation and so that per-machine install is prevented unless the per-user one is uninstalled first? Thank you, Martin Kulov > From: mar...@kulov.net > To: wix-users@lists.sourceforge.net > Date: Tue, 11 Oct 2011 21:01:23 +0000 > Subject: Re: [WiX-users] major upgrade from per-client to per-machine install > > > Thanks Rob, Is there a way to detect this situation and prevent the per machine installation in such case? Thanks,Martin > From: r...@robmensching.com > > Date: Tue, 11 Oct 2011 05:56:50 -0700 > > To: wix-users@lists.sourceforge.net > > Subject: Re: [WiX-users] major upgrade from per-client to per-machine install > > > > Sadly, Windows Installer doesn't support that. > > > > On Mon, Oct 10, 2011 at 9:23 AM, Martin Kulov <mar...@kulov.net> wrote: > > > > > > > > Hi, (moving this to a new thread) I have an existing MSI that needs to be > > > MajorUpgrade'd from per client to per machine installation.Right now > > > installing the latest bits results in two versions of the program being > > > installed side by side.This does not work for at all. How can I remove the > > > existing per-user installation during MajorUpgrade so that the new > > > per-machine installation can be installed instead? Thanks a lot!Martin > > > > > > > > > > > > ----------------------------------------------------------------------------- - > > > All the data continuously generated in your IT infrastructure contains a > > > definitive record of customers, application performance, security > > > threats, fraudulent activity and more. Splunk takes this data and makes > > > sense of it. Business sense. IT sense. Common sense. > > > http://p.sf.net/sfu/splunk-d2dcopy1 > > > _______________________________________________ > > > WiX-users mailing list > > > WiX-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > > > > > > -- > > virtually, Rob Mensching - http://RobMensching.com LLC > > ----------------------------------------------------------------------------- - > > All the data continuously generated in your IT infrastructure contains a > > definitive record of customers, application performance, security > > threats, fraudulent activity and more. Splunk takes this data and makes > > sense of it. Business sense. IT sense. Common sense. > > http://p.sf.net/sfu/splunk-d2d-oct > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > ----------------------------------------------------------------------------- - > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ----------------------------------------------------------------------------- - All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users