Hi, Some time ago I had a very similar problem - I needed to install an extension to OpenOffice.org. Extensions are packaged in zip files and installed using unopkg.exe. I didn't want to copy zip files to the user machine, so I decided to implement a pair of custom actions that play with a custom table which holds foreign keys to Binary table where the packages were stored. The .wxs looks like this:
<?xml version="1.0" encoding="utf-8" ?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <Binary Id="ExtractBinaryCa" SourceFile="deploy/underlay/Release/ExtractBinaryCa.dll"/> <CustomAction Id="ExtractBinary" BinaryKey="ExtractBinaryCa" DllEntry="ExtractBinary" Execute="immediate"/> <CustomAction Id="ExtractBinaryCleanup" BinaryKey="ExtractBinaryCa" DllEntry="ExtractBinaryCleanup" Execute="immediate" /> <InstallExecuteSequence> <Custom Action="ExtractBinary" After="InstallInitialize"/> <Custom Action="ExtractBinaryCleanup" After="InstallFinalize"/> </InstallExecuteSequence> <CustomTable Id="ExtractBinary"> <Column Id="FileName" PrimaryKey="yes" Type="string" Category="Formatted" Description="Name of the extracted file." /> <Column Id="Name" Type="string" Width="72" KeyTable="Binary" KeyColumn="1" Category="Text" Description="Key in Binary Table." /> <Column Id="Condition" Type="string" Width="255" Category="Condition" Description="Extraction condition." Nullable="yes"/> </CustomTable> </Fragment> There have to be two actions: ExtractBinary runs through the custom table and extracts Data field from Binary table to the specified path (I use [TempFolder]file_name). It runs in InstallExecuteSequence after InstallInitalize. ExtractBinaryCleanup deletes extracted files after InstallFinalize. There is also an other action (CAQuietExec in WixCA) which runs unopkg.exe on the extracted files. Kjartan Þór Kjartansson pisze: > Unfortunatly no, I don't want to leave the binary on the users machine after > install. > > -----Upphaflegt skeyti----- > From: Bob Arnson [mailto:[EMAIL PROTECTED] > Sent: 26. nóvember 2008 19:55 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Using Red Gate Packager with Wix V3 > > Kjartan Þór Kjartansson wrote: >> I´m creating an installer where we are using Red Gate´s SQL Packager to >> create a database, I don´t want the Packager to be left behind on the >> machine after install, but the only way I can find to run it is to have it >> installed along with the product and run it with a quiet custom action after >> install. That would create a need to delete the Packager from the >> install-location after being run. > > If you install it, MSI will remove it when it removes the product. > Doesn't that get the functionality you want? > > -- > sig://boB > http://joyofsetup.com/ > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > . > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users