Solved

Best Method to deploy and update application

Posted on 2010-11-23
4
523 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.Net - CSV to Oracle table 4 52
VB.Net - ReportViewer Windows Form many reports 2 24
fso.FolderExists("\\server\HiddenFolder$") 4 49
Vb. Net application freezes 9 30
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 …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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.

911 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