Unfortunately this behavior is by design in Whidbey ClickOnce. Data is not migrated when a change in url happens.
To get around this you can do following:
- Have your app version 1.0 in CD.
- Do not mark the file(s) as data in CD (although you ultimately want them to be in data directory).
- Have an update version 1.1 in web, which is exactly same as version 1.0 bitwise (target file hashes must be same), except deployment and application manifest version is incremented to 1.1.
- In 1.1 mark your target files as data (writable type)(same fileswere non-data in 1.0). May be 1.1 is a required update.
- In that case when your user runs the application it will detect an update (1.1) and install it, but due to file level patching that ClickOnce have, no real download will happen (since you kept the file hashes same), and it should be quick.
- But this step will move your files to data directory andattach your update url with the data.
- Later when you release real update 2.0, you will see data being migrated (originally from CD).