Hi, I wrote small vbsccript function for my purpose and here it is.
Public installer, state Const msiInstallStateDefault = 5 ' Connect to Windows Installer object set installer = CreateObject("WindowsInstaller.Installer") state = installer.productstate ("{9AA7902B-84BE-4C15-93D1-D6C30322ABBF}") if state <> msiInstallStateDefault then ' the product isn't installed so the feature can't be end if state = installer.featurestate ("{9AA7902B-84BE-4C15-93D1-D6C30322AFCC}","Complete") MsgBox(state) if(state = 1) then Session.Property("Installed") = "1" end if and here is my wxs code <CustomAction Id="ShowReadMe" BinaryKey="QueryState" Execute="deferred" Return="check" VBScriptCall="Main" Impersonate="no" /> <Binary Id='QueryState' SourceFile='QueryState.vbs'/> But i am getting the following error: A script reuired for this install to complete could not be run. contact your personnel support or package vendor. How to make my vbscript work? Thanks in advance, Subramanyeswari -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/make-my-vbscriot-to-run-tp5069321p5069321.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users