The problem is the install is in 32 bit and the function I need to call can only be called from a 64bit process (if 64 bit OS). I need the 64bit helper exe in my msi to be extracted to run it. (my app has a dll that may be loaded in another process at time of upgrade. this "unlocker" exe removes it)
1. is there a way to run the copy files twice? once to copy all that can be copied, run the unlocker and then copy again? 2. or Johns suggestion of streaming the exe out...how would I go about that? 3. or could a separate <copyfile> element work at all? On Thu, Apr 17, 2014 at 3:11 PM, Bryan Wolf <brw...@jackhenry.com> wrote: > Files are copied as part of an atomic step. Technically they are staged > somewhere during the copy but it's nothing you could meaningfully interact > with. There is no "OnFileCopy" type functionality, either. > > Is there a reason you couldn't run the unlock CA before InstallFiles and > just attempt to unlock it and gracefully exit if it's unnecessary? > > -----Original Message----- > From: Jack Sojourn [mailto:jack.sojo...@gmail.com] > Sent: Thursday, April 17, 2014 2:02 PM > To: WiX-users@lists.sourceforge.net > Subject: [WiX-users] Tough scenario copying files > > I have a situation where on install a file in my msi may be in use on > upgrades. I have a custom action that will get rid of any lock on the > file. however this custom action has to be run as a 64bit process which it > does now. > > so I need to run the custom 64bit exe file during install before copying > the files to the destination directory.... > > 1. extract files > 2. run custom action > 3. copy files to dest dir > > is it possible to run the custom action exe before all the files are > copied to the dest dir? (i.e. does the msi extract somewhere first where I > could run it?) > > or I could have the msi copy files (even if one fails because in use), > then run CA, the copy them again. > > any suggestions on how I could do this? > > Thanks. > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is > the definitive new guide to graph databases and their applications. Written > by three acclaimed leaders in the field, this first edition is now > available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > NOTICE: This electronic mail message and any files transmitted with it are > intended > exclusively for the individual or entity to which it is addressed. The > message, > together with any attachment, may contain confidential and/or privileged > information. > Any unauthorized review, use, printing, saving, copying, disclosure or > distribution > is strictly prohibited. If you have received this message in error, please > immediately advise the sender by reply email and delete all copies. > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users