The <Binary> element is for incorporating some binary data within your package where the Windows Installer engine can find it. The @SourceFile attribute is processed by WiX when you build the MSI, to include the file in the package.
 
I think you're saying you want to - presumably - run a custom action from the copy of InstallUtilLib.dll already on the end user's system. DLL-based custom actions seem to have been designed to work only with DLLs included in the package, either installed by the package (type 17 actions) or in the Binary table (type 1).
 
You might have more luck with an EXE custom action, type 50, targetting InstallUtil.exe. See http://msdn.microsoft.com/library/default.asp?url=""> for information on the type 50 custom action, and http://wix.sourceforge.net/manual-wix2/wix_xsd_customaction.htm for how to author this with WiX. I think you want to do a <FileSearch> to locate InstallUtil.exe and set a property's value to its location, then a <CustomAction> specifying the @ExeCommand and @Property attributes to run it.
 
--
Mike Dimmick


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 07 September 2006 07:44
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Use of WindowsFolder property

This is probably very straightforward but could someone help me on the following.
 
When using the 'WindowsFolder' installer property as part of a directory search it works fine.
 
<Property Id="NET20">
    <DirectorySearch Id='NET20Dir' Path="[WindowsFolder]Microsoft.NET\Framework\v2.0.50727" />
</Property>
 
However when using in the source file attribute of a binary element it does not, I get the error "File of type 'Binary' with name '[WindowsFolder]Microsoft.Net\Framework\v2.0.50757\InstallUtilLib.dll' could not be found" from Light.exe
 
<Binary Id="InstallUtil" SourceFile="[WindowsFolder]Microsoft.NET\Framework\v2.0.50727\InstallUtilLib.dll" />
 
Am I missing something obvious here? I am trying to use the binary element to identify a dll that already exists on the target machine.
 
Any assistance would be greatly appreciated.
 
 

.
----------------------------------------------------------------------------------------------------------------------

HBOS plc, Registered in Scotland No. SC218813. Registered Office: The Mound, Edinburgh EH1 1YZ. HBOS plc is a holding company, subsidiaries of which are authorised and regulated by the Financial Services Authority.
==============================================================================

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to