Automatic Update Control - Administrative Privilege

Hi,

We are using Wybuild and Wyupdate for 4 months already.

Currently we are struck with a issue. Most of our users dont have admin privileges. That means the automatic updater control will not be able to update the application. For overcoming that, we used a batch file to start our application as a administrative privileged user. So the update works fine. The issue is, since we are running our application as different user, the application slows down a lot, at least by -50%.

We are using 2 types of update.

1. Update the application while application starts. In the main form load, we call the wybuild.exe to execute with -justcheck and -onlycheck switches and then if updates available, run wybuild.exe with -fromservice switch. Solution - We call a batch file and this batch file will run the wyupdate.exe as <admin privilege user>. This works fine since we are running only the wyupdate.exe with different user(admin privilege).

2. With Automatic update control In our main for we have automatic update control, which will be attached to a toolstrip menu. How can we use this automatic update control to access the wyupdate.exe using administrative privilege?

We desperately need the manual update option with automatic update control for our application.

Please suggest a solution. Thanks

Why aren't you just using the default behavior of the AutomaticUpdater & wyUpdate? When wyUpdate needs admin permission it will ask for it.

But the user will not have administrative privilege and they will not know the administrator user's password..

There are a couple of solutions:

Easiest solution:

Install your app to the %AppData% folder -- then the user won't need permission to update your app.

Harder solution:

Kepp your app where it is, but use a simple dummy Windows Service (either in C# using the AutomaticUpdaterBackend or in another language like C/C++ using wyUpdate). This dummy service can then update anywhere without prompting.

Of course, things get pretty complex from there.

We're solving this problem in wyBuild 2.7.

We will not be able to change the application directory as its fixed long back.

In the 2nd solution case we will not be able to check for updates from the application? Hence we will not be able to use automatic updater control?

In the 2nd solution case we will not be able to check for updates from the application? Hence we will not be able to use automatic updater control?

You can check from your application -- however you need to use IPC (inter-process communication) to talk to the service to tell it to update.

We know this is a bit of a hassle, which is why we're spending time solving this problem for wyBuild 2.7 for cases like yours. That is, cases where the end-user doesn't have admin permission but you want to give them permission to update your app anyway.

The short answer: there's no magic solution. This is a very hard problem to solve. But we're working on it.