I'm looking back through as much of this entire thread as I can find and I have an observation and a question I can't seem to find the answers for:
Observation: You start with a deferred, non-impersonated custom action (that happens to be in VBScript, which many A/V systems will break) that both shows a message box and sets a session variable (property) value that happens to be reserved ("Installed"). Then you try replacing it with DLL code with a signature that doesn't match the required signature for DLL custom actions and that ignores whatever it was trying to do in order to always return a value that will always be interpreted by Windows Installer as an error. Question: Could you please describe what you intent is with this code? It appears you are trying to see if some feature is installed from some known (to you) installation package (which I assume is not the package being installed). There isn't enough context here to guide you towards a working solution (such as how you intend to consume the information you obtain about the feature being installed). -Blair -----Original Message----- From: subramanyeswari [mailto:sravi...@yahoo.com] Sent: Tuesday, May 18, 2010 10:57 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] make my vbscript to run -- this is my dll code #include <windows.h> #include <msi.h> extern "C" { __declspec(dllexport) bool GalaxyInstalltion() { TCHAR szVersion[20]; DWORD cchVersion = 20; bool nGalaxy = false; INSTALLSTATE nFeatureState = MsiQueryFeatureState("{9AA7902B-84BE-4C15-93D1-D6C30322ABBF}", "Galaxy_Repository"); if (nFeatureState = INSTALLSTATE_LOCAL) { nGalaxy = true; } return true; } } what's wrong with this dll code? Regards, Subramanyeswari -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/make-my-vbscri ot-to-run-tp5069321p5073501.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 ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users