Hi, I have created an installer using wix and when the user installs our product, I set it to be installed for ALLUSERS by setting ALLUSERS property to '1' as follows. <Property Id="ALLUSERS" Value="1" />
However, on certain windows when I call MsiGetProductInfo(), it returns '1605' - This action is only valid for products that are currently installed. Yet, if I call MsiEnumProducts(), I can find the product installed. FYI, followings are how I call these two apis. err = MsiGetProductInfo( MY_PRODUCT_CODE, INSTALLPROPERTY_VERSIONSTRING, version, &len); err = MsiEnumProductsEx( MY_PRODUCT_CODE, "s-1-1-0", // All-users MSIINSTALLCONTEXT_ALL, idx++, buf, NULL, NULL, NULL); In some cases, MsiGetProductInfo returned error 1605 but MsiEnumProductsEx returns ERROR_SUCCESS. Can anyone tell me why this happens? I need to make sure that my intaller should install our product for SYSTEM account even though it is admin that runs the installer because we have the service application and this service application manages update procedure. But if this service application cannot find our product, the update fails. I assume that somehow even though I set ALLUSERS to '1', it did not install for everyone on the machine. Is there any way I can make sure that it is installed for all users. Is there any way I can make sure that it is installed for SYSTEM in wix? If anyone can give me some suggestion on this, I will really appreciate it. Thank you. YEH ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users