http://www.joyofsetup.com/2007/07/01/semi-custom-actions/
I think what you are looking for is a Semi-custom action. If your bundle can pass the path to the MSI via a MsiProperty element, then you should be able to write a Semi-custom action in the MSI which would populate a few temporary entries into the MoveFiles table. On uninstall I would also consider adding a row into the RemoveFile table. -----Original Message----- From: Mike Burdick [mailto:mik...@microsoft.com] Sent: Thursday, September 11, 2014 2:45 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Dynamically adding files during Installation We have an Bundled Installer that contains a managed BootstrapperApplication and a single Wix MSI project. What I want to do is look in the Folder the Bundled installer is launched from and if any *.execpkg files are there then Copy those files to the INSTALLDIR folder. We give our users a Zip file with the Bundle installer .exe file along with a execpkg file that is different depending upon the user. Our managed Bootstrapper contains custom UI and is populating the INSTALLDIR value. >From some searching I think we have a couple different ways to accomplish this: * Create a CustomAction and populate the MoveFile table with these *.execpkg files if any exist. I like this approach because we intend to delete these files from the Application folder when the Application starts up. But my searching has failed to come up with a code samples for this approach. * Create a <DirectorySearch> element and set Path to a Property that we populate from our managed Bootstrapper or some otherplace. Because we have a bundled installer that contains the embedded MSI I'm not clear if we can determine folder the bundled installer was launched from other then doing it in our managed BootStrapper. I'm not clear what happens during Uninstall if the *.execpkg files no longer reside in the Application Folder. Could someone recommend the best approach along with some code samples? Thanks, Mike ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users