John Lalande wrote: > I am attempting to create a custom action that will detect the > previous version's ALLUSERS property, but I am having difficulty. I > can get a list of ProductCodes using MsiEnumRelatedProducts, but I > have found nothing in the registry that indicates whether a particular > product was installed per-user or per-machine.
Because it requires loading other users' registry hives, MSI doesn't support "cross-context" upgrades. So a per-machine install can't detect upgrade a per-user install. MsiEnumRelatedProducts likely uses the same logic. > I tried using MsiGetProductInfo and getting the "ALLUSERS" property > but apparently this isn't always set...at least it was not present for > our product. If it's not set, that means it's a per-user install. In fact, it's the only way of specifying a per-user install for a user with admin rights. Did you use INSTALLPROPERTY_ASSIGNMENTTYPE? That should ignore the tri-state ALLUSERS mess. > I know InstallShield uses a custom action called ISSetAllUsers that > does exactly this. I actually streamed the DLL out of an IS-authored > installer and successfully used it in my WiX-based installer. > However, I would rather ship a product that doesn't use any > InstallShield code... Imagine the fun of that mix of licenses...<g> -- sig://boB http://bobs.org ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users