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.

My intent is not for a per-machine install to upgrade a per-user install.  By default, my installer is per-user.  I simply want to set ALLUSERS to "1" if the previous installation was per-machine.

> 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 understand and that is why I tried to get the ALLUSERS property.  However, the previous install *is* per-machine.  In testing, I installed it, selected "All Users" in the wizard, then confirmed that the shortcuts were written to the All Users Desktop and Start Menu.

I tried using MsiGetProductInfo with INSTALLPROPERTY_ASSIGNMENTTYPE, however the function returned the error "Unknown Property".  Was I supposed to use this value with MsiGetProductInfo or is there another function I should be using?

Thanks for your time

John

-------------------------------------------------------------------------
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

Reply via email to