My first obvious question is: why would you want to do this? ... now to the how ...
I think you should start here: http://msdn.microsoft.com/en-us/library/aa369279(VS.85).aspx. An MSI is a database. You need to add a row for each file in the File table. Notice the Component_ column and stuff like that. Then it gets trickier. There's the embedded media in the MSI, with a cabinet file. Assuming you always know that your MSI has an embedded cabinet media file, I think you need to extract that one, embed the file into it and repackage the whole thing. I think DTF has a lot of existing code that deals with the MSI database itself, you might want to look into that. cheers dB. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Mumford Sent: Tuesday, June 10, 2008 12:13 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Adding files to msi bump. On Sat, Jun 7, 2008 at 6:26 PM, Chris Mumford <[EMAIL PROTECTED]> wrote: > I have a requirement for the end user to be able to add files to my MSI > before they deploy it to their machines. > > At present I wrote a program to use msi.dll to allow them to customize some > properties - it writes out a modified *.msi file as well as a *.mst > transform file. > > I see some discussion on the web about using Orca to add files, but I can't > see any API to do this. Is it possible via the API? > > This needs to be very simple for the end user or I have to come up with a > different solution. > ------------------------------------------------------------------------ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ 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