I have not used this API, but as a diversion from what I should be working on, I put a snippet of your code into my BAFunctions.dll project and stepped through it.
>>the Bootstrapper blows up when it is calling the MsiLocateComponent method in WixStandardBootstrapperApplication.cpp I think you need to call MsiLocateComponentW when passing LPWSTR in the second param. MsiLocateComponent get compiled as the ANSI function on my Win 7 x64 dev system. I think there may be other issues with respect to parsing possible return codes from MsiLocateComponent before moving on to call FileExistsEx, but I did not step through that far yet. I have not tried to modify the WixStdBA except through the use of a BAFunctions.dll, which is very convenient to implement and debug. Thanks Neil! -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Trying-to-use-MsiLocatecomponent-in-Bootstrapper-to-check-for-a-Word-PIA-tp7594186p7594261.html Sent from the wix-devs mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform _______________________________________________ WiX-devs mailing list WiX-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-devs