Deployment


Author
Message
Terry Bottorff
Terry Bottorff
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 448, Visits: 12K
I don't need anything fancy but would like to use VS Setup and Deployment. I can not find out how that is done. Does anyone know of a resource that lists the steps of how to set up this sort of deployment? Of course I want to use the strataframe merge modules.

TIA

Replies
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
If you decide to go down the ClickOnce path, I help out as much as possible. There are also a number of posts in the forum related to specific issues.
Terry Bottorff
Terry Bottorff
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 448, Visits: 12K
I decided to explore ClickOnce further. Loaded my project. Right clicked on project and selected Properties and then Options.

The four sections seem to be pretty straight forward except the Section called Manifests. Of the 5 choices Block Appli.., Allow URL..., User Applicati..., Exclude deploy... and Create Desktop Shortcut I only have access to the first 2. The one I want is the last one (Create Shortcut). Any idea why I don't have access to this?

Also, how will my database get involved in the ClickOnce? I mean so that it is installed on the users computer.

Thanks in advance.....



Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Those options are only available with .NET 3.5. If you change the target framework to 3.5 they'll be available.



Deploying data files can be tricky with ClickOnce. There is an option in the publish area, Application Files, to define which files are Data Files. The file must be included in the VS project and marked as Content and set to either Copy Always or Copy when newer. You can then set the file as a data file. When you do this ClickOnce will copy the file to a special DataDirectory related to the application. It will also handle updates differently. Some things you will need to consider:



- The location of the data file will be different depending on if the application is run via ClickOnce. I.e. the data directory is in a different location when run under ClickOnce vs when you run it standalone (like when debugging). This means you have to have code to detect this state. You use the ApplicationDeployment.IsNetworkDeployed property to determine this.

- You will need to dynamically configure connection strings based on how it is opened. Also, the data file moves every time there is an update, so you always have to dynamically set the connection strings for normal ClickOnce deployments.

- Updates are handled differently. There are two scenarios to consider:

  1. You do an update, the data file doesn't change (the schema).

  2. You do an update and the data file does change (the schema).



In case 1, ClickOnce will figure this out and copy the data file the user has been using the new data directory (every update of an application gets installed in its own folder, with an associated data folder). This is the easy case and you have to do nothing.



In case 2, ClickOnce will determine there is a new data file and it will download the new data file. It will also copy the one the users have changed for the old version to a /.pre folder under the data directory. In this case you must include some migration code to handle moving the existing data into the new file.



- The trust level that ClickOnce runs under can affect this as well.

- You need to figure out how to deploy the underlying database software. You can use the Bootstrapper or in some cases you can embedd the engine in you app.



ClickOnce can get pretty complex in this situation. I highly recommend the book by Brian Noyes (included link in a previous post). Here are some more links that might help.



Here's link talking about where data files can be put:



http://msdn.microsoft.com/en-us/library/d8saf4wy.aspx



Link talking about how to add data files:



http://www.codeproject.com/KB/install/ClickOnce-Configuration.aspx
Terry Bottorff
Terry Bottorff
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 448, Visits: 12K
Thank you. I will plow ahead. I also ordered the book you recommended and that should help me. Thanks.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Terry Bottorff - 15 Years Ago
Ivan George Borges - 15 Years Ago
Terry Bottorff - 15 Years Ago
Greg McGuffey - 15 Years Ago
Terry Bottorff - 15 Years Ago
                         Well, ClickOnce(more) isn't for every situation. It really depends on...
Greg McGuffey - 15 Years Ago
                             I use sqlexpress, devexpress grid and of course strataframe. Otherwise...
Terry Bottorff - 15 Years Ago
                                 If you decide to go down the ClickOnce path, I help out as much as...
Greg McGuffey - 15 Years Ago
                                     I decided to explore ClickOnce further. Loaded my project. Right...
Terry Bottorff - 15 Years Ago
                                         Those options are only available with .NET 3.5. If you change the...
Greg McGuffey - 15 Years Ago
                                             Thank you. I will plow ahead. I also ordered the book you recommended...
Terry Bottorff - 15 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search