cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using MsiQueryFeatureaState & vbscript

Has any one had any luck using:

Set installer = CreateObject("WindowsInstaller.Installer")
Set retval = installer.QueryFeatureState(ProductCode,Feature)

I am tryying to check if a certain feature exists in the installed applciations. If found I will run:

Installer.ReinstallFeature ProductCode,Feature, msiReinstallModeUserData

Any help would be fantastic!
(1) Reply
Installer.FeatureState might be the property you want; and since the return value isn't an object, you might not need Set before the retval assignment...