khopdi
khopdi

Reputation: 3

Auto update Windows C++ application from non privileged (standard) user account

I am having a main application in C++ which will be installed in Program Files folder and under UAC control i.e. non-privileged user cannot write or change the data inside the main application folder.

I also have an auto update C++ application which will be used to auto update the main application without standard user intervention.

With standard user being the regular user of the application and system being far away from physical access from Administrator, I would like to know the ways through which I can auto update my application with standard user logged in the system.

One approach I am aware of is create and install a service from Admin account which can update the application from standard user account.

Is there any other way/tools which can help me in this if I don't want to use creating service as an option for auto updating my application?

Upvotes: 0

Views: 273

Answers (1)

ivan.ukr
ivan.ukr

Reputation: 3551

If this is your application, and you are producing the installer, you can implement so called "user install", i.e. application is installed not to C:\Program Files, but to C:\Users\<user folder>\AppData\Local\<Application Folder>. Drawback: application will be available for that specific user, another user should install application for himself separately, but you will be able to update it w/o need for admin privileges. Maybe you also need to check that your application can work if it is installed in a some other location than "Program Files". That's it.

Upvotes: 0

Related Questions