Reputation: 45
During installation, user has selected 'Current User' option instead of 'All Users' in Installation UI. I want to remove that installation forcefully by another user and install upgraded MSI with 'All Users' option. I found that, removing certain registry keys will achieve my objective.
Now, I want to find which user has installed that specific MSI so that I can identify the right registry path. Is there any option available?
Regards, Madhan
Upvotes: 0
Views: 2122
Reputation: 2706
I don't know an easy way to do this (e.g. query some regkey) but there is a function in the windows installer API called MsiEnumProductsEx
It requires you to specify a User SID, if you use the SID "s-1-1-0" it querys all installed products for all users.
Im not sure how this behaves with roaming profiles though.
If this doesn't work for you the suggested solutions in the comments (walk through all users or trigger something on logon) are IMHO the right way
Upvotes: 3