View Full Version : Best way to put down a file for migration?

07-15-2008, 02:39 PM
Hi all...

So, we are supporting in-place major upgrades in our install, but we have to migrate a user DB that's on disk. The plan is to export the data from the old DB, uninstall the old product, install the new product, then import it into the new DB. However, to do the export, I need to put a new file on disk before we do the uninstall and product install.

What's the best way to go about this? Is there a way I can grab a single file out of our component and put it on disk?


07-16-2008, 01:01 PM
...Anyone? Bueller?

What I'm looking to do here is put a single file on disk before RemoveExistingProducts and InstallFiles. This means, I think, that I can't use InstallFiles to do it, either.

The best thought I've got right now is to write a custom installscript action that reads the file out of the file set (how?) and writes it to disk (using WriteBytes?). Any thoughts on how I might do this?

Any help is appreciated,

07-16-2008, 03:34 PM
OK, it looks like I've solved the problem... By storing the file in the support files, I can copy them into place before I run our export code.

So, that solves that...