/build/static/layout/Breadcrumb_cap_w.png

MSIEXEC Unregistered

Hello,

My application launches product's MSI using InstallProduct. This application needs to perform some validations before installing MSI. MSI Service state is one of those validations I need to know about. If the user does something like this from command prompt --- "msiexec /unreg", application fails to install. How can I validate whether the service is unregistered or not.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 13 years ago
Red Belt
0
If your users have rights to register and unregister COM containers, then you deserve everything you get!

Anyway, even a passing knowledge of how registrations work would surely lead you to check the WindowsInstaller.Installer entry in the registry, HKEY_CLASSES_ROOT\WindowsInstaller.Installer\CLSID.
Posted by: milindsm 13 years ago
Blue Belt
0
Hi,

I kept a watch on this registry key while doing "msiexec /unreg", but didn't see any change..!! I really didn't get you...!!! :(
Posted by: anonymous_9363 13 years ago
Red Belt
0
D'oh! [red-faced]The header I put at the top of ALL my WI scripts is now proved wrong. I've had it for so long, I took its content as read, but I had things the wrong way round.

WindowsInstaller.Installer "belongs to" MSI.DLL
MSI.Package "belongs to" MSIExec.EXE.

Sorry about that.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ