cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tklancer
Level 4

Best way to put down a file for migration?

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?

Thanks,
-Tom
Labels (1)
0 Kudos

(2) Replies
tklancer
Level 4

...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,
-Tom
0 Kudos
tklancer
Level 4

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...

-Tom
0 Kudos