The problem appears to be that BinaryKey specification. As the docs say "the 
custom action will not be installed into a target directory". You're not 
running it from your install directory - you're running it streamed out of the 
MSI file's binary table into some temp folder. It's not a type 18. 

Phil Wilson 

-----Original Message-----
From: Leandro Lumerante [mailto:llumera...@yahoo.com.ar] 
Sent: Thursday, September 01, 2011 11:40 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem runinng custom action. Dll not found error

Hi Guys, I'm trying to add a custom action of type 18, following the steps 
described here
http://blogs.technet.com/b/alexshev/archive/2008/02/21/from-msi-to-wix-part-5-custom-actions.aspx

The problem is when executing my app, it doesn't find a dll required to run the 
program.
The dll is present in the directory installed, because if I dont close the 
installer dialog with the error, I can see the files, and execute my program 
from the command line.
It is a simple program, that uses lognet to log the directories and files in 
the installed folder.
I made this to test custom actions.
I paste the wix part involving the custom action
    <CustomAction Id="TestApp"
          BinaryKey="TestApp"
          ExeCommand="-switch"
          Execute="deferred"
          Return="check"
          HideTarget="no"
          Impersonate="no" />

    <InstallExecuteSequence>
      <Custom Action="TestApp"  Before="InstallFinalize" />
    </InstallExecuteSequence>

and where the files are included

      <Directory Id="TARGETDIR" Name="SourceDir">
                                <Directory Id="INSTALLLOCATION" 
Name="TestApplication1">
                                        <Component Id="ProductComponent" 
Guid="570929b6-b02d-4551-a785-f8a88b5fa5d1">
            <File Id="MainAppConf" 
Source="Resources\TestApplication.exe.config" Name="TestApplication.exe.config" 
/>
            <File Id="log4netdll" Source="Resources\log4net.dll" 
Name="log4net.dll" />
            <File Id="MainApp" Source="Resources\TestApplication.exe" 
Name="TestApplication.exe" />
                                        </Component>
                                </Directory>
                </Directory>
        


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).



------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to