Hi,
I have a couple of problems relating to clickonce deployment that I was hoping someone could spread some light on.
Problem1:
I upload version 1.0.0.1 to my server and userA downloads via clickonce link, this version includes the DB (MS Access) in the data directory. I then discover a bug (not likely I know :-)) and fix this in version 1.0.0.1. I publish this new version but this time have to exclude the DB as I do not want to overwrite user A's data. User A opens the application is presented with the new version, they download and everything is ok, the database file is copied from the previous deployment to the new deployment. However user B comes along and downloads the application version 1.0.0.1, but this does not include the DB!
Question - How can I get it so that any user downloading also gets all the files from the previous versions?
Problem 2:
I now want to add an additional field to my DB to support some new functionality. I add the column, complete the CRUD code and upload version 1.0.0.2, The problem is that I need to upload the DB changes but doing this overwrites any previous versions (I know that older version of content files are copied and stored in .pre).
Question: How do I make DB changes and push these to my clients wihtout overwriting their data? If I have to do this programatically could anyone provide me with some samples?
I assumed that downloading he latest version would also install all the previous version, this does not seem to be the case and also the DB changes not integrated but merely copied over the top (well the newer version uses a different DB) rather that incorporate the changes made. I am now questioning whether ClickOnce deployment is right for me but it seems such a shame as I like the idea of all clients having the latest versions whether this be because they are updating older version or downloading the newest from the server.
Please help...
Ian Hannaford