/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

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.
Answered 09/24/2010 by: VBScab
Red Belt

Please log in to comment
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...!!! :(
Answered 09/24/2010 by: milindsm
Blue Belt

Please log in to comment
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.
Answered 09/24/2010 by: VBScab
Red Belt

Please log in to comment