Solved

Best Method to deploy and update application

Posted on 2010-11-23
4
521 Views
Last Modified: 2012-05-10
I have an application that will require it to "Run As Administrator". And yes, before you ask, it has to have the elevated permissions.
I have deployed many programs with the ClickOnce built into visual studio. I love it. However, due to the restrictions of only being able to run "AsInvoker" this method is obviously not the right choice to deploy this application.
Does anyone have any suggestions on what would be the best way to not only deploy but also update the application?  I really like the automatic update functionality of the ClickOnce so if you have any ideas that get close to that it would be appreciated.
Right now, I am thinking of creating a "wrapper" type app that will shell call my app with the required permission level and letting the "wrapper" type app handle the updates. It seems kludgey to me though. Any ideas?
0
Comment
Question by:Coralie Crumrine
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
deer22 earned 250 total points
ID: 34201330
Well it can be kind of tricky to write your own, so you might want to use a third party installer/updater.  It is a fun challenge (especially with windows vista/7) though and if you like challenges write your own :)

After I tried several third party installer/updaters they didn't quite do it the way I wanted so in the end I ended up using visual studios setup and deployment and wrote my own updater...

I don't use patches for the msi which is probably the way you should do it.  

I have a manifest file that gets checked whenever the program runs and if any files don't match the latest manifest they are downloaded and replaced/added once all the needed files are downloaded.   The downside is that the msi remains the same so any files that are added after the initial install remain in the directory if the program is uninstalled, but hey it works...

GL
0
 
LVL 7

Author Comment

by:Coralie Crumrine
ID: 34201925
I don't mind the challenge of the UAC. I have written modified the manifests that ask for the permission to elevate and did all the signing etc, so that is not a worry.

I have never used patches or updates other than ClickOnce, and doing a search brings up a LOT of ClickOnce pages, thus my confusion.

Do you update by replacing the actual exe file? Thanks for the heads up about the files added afterwards. That is a good point.
0
 
LVL 3

Expert Comment

by:deer22
ID: 34202145
Yes, I update any files that need updated including the main exe and the updater if needed.  I use the all users application data folder to download the needed files.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 250 total points
ID: 34204022
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now