Hi I am trying to run a custom action to extract a binary file from my WIX
installer, so far I have got this but I know it is not complete but I am not
sure where I am going wrong. I am using a C++ Custom Action and the file is
an exe. Any help would greatly be appreciated.

 

 

MsiGetActiveDatabase(hDatabase);

    MsiDatabaseOpenView(hDatabase, "SELECT 'Data' FROM 'Binary' WHERE 'Name'
= 'Hasp'", phView);

    MsiRecordReadStream(*phView, 1, szBuffer, &cbBuf);

    CreateFile(szBuffer, GENERIC_WRITE,FILE_SHARE_WRITE, NULL,
CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);

 

 

 

Kind Regards,

 

Natalie Carr

 

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to