Embedded binaries are only for items that you aren't installing, such as custom action DLLs and graphics used in the UI. Everything else should go in the (possibly embedded) CAB or as a loose file.
 
If trying to invoke a custom action from a DLL you're installing, you should use the FileKey attribute rather than BinaryKey. You will obviously have to schedule the CA after the file has been installed in the execute sequence - so (at least) after InstallFiles.
 
If you need to invoke the CA before the file has been installed, you'll either need to embed it using <Binary> and as a separate <File>, or separate the two concerns into different DLLs.
 
--
Mike Dimmick


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anirban Basu
Sent: 20 September 2006 10:14
To: [EMAIL PROTECTED]
Subject: [WiX-users] how to refer embedded file in the File element?

Hi All,

I have a file that is embedded in the msi.

 

I want to copy the file in my install location. What should be the syntax in the File element to specify that it is a embedded binary. E.g. I have a file sbc.dll embedded in the msi.

<Binary Id="abc.dll" SourceFile="Binary\abc.dll"/>

 

Now I want to copy this dll in my install location. The file element I am using was

<File Id='EmbeddedDll' Name='abc.dll' LongName='abc.dll' Source='abc.dll' DiskId='1' Vital='yes' />

 

But it is not picking up the way I wanted?

What shpuld be the syntax here?

 

Thanks in advance,

         

 

Microsoft India R&D Pvt. Ltd.

God is good.

 

Anirban Basu
[EMAIL PROTECTED]

 

Add me to your address book...

Want a signature like this?

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to