make the updater skip the UAC question like CCleaner does (W7 and up).
Piriform did this to their CCleaner. Once installed under admin account, it always allows ccleaner to run with admin rights.
background: i've installed miranda under c:\ and M$ only allows admins to write on the systempartition.
and remember: its only a suggestion, don't blame me with: choose an other drive or similar
When installing CCleaner (with admin privileges) it creates a scheduled task named “CCleanerSkipUAC” and this way it bypases that later UAC question. Looks like it starts it with admin privileges every time.
As Wishmaster said in comments, Miranda requires admin privileges only for updating so it doesn’t make sense to force it to run always as administrator.
Also Miranda tries to be “portable” – doesn’t write (almost) anything into registry, installing is (almost) only unpacking.
So this won’t be done in Miranda. But you should be able to do similar trick like CCleaner manually. You’ll surely find solution on Google.
-
Vadim Dashevskiy commented
Inno setup does not believe in elevating user rights when necessary, only at installer start-up if they detect enabled UAC, So there is nothing I can do except creating separate installer that installs to AppData and does not need admin rights in any case. I won't do it cause I'm totally against this practice. So - if user doesn't have admin rights on one computer - he should install on another and bring the installed portable version to the first PC.
-
Maybe something like this could be added to "Autorun" plugin. New checkbox to allow starting Miranda with admin privileges automatically without UAC prompt.
But it's different issue (not directly related to updater) so eventually create a new request.
-
Wishmaster commented
I think CCleaner needs Administrator priviledges anyways. Miranda doesn't need it in general, only for the updates.
-
Or make Miranda running as administrator everytime.
I guess that's what makes CCleaner does that. (But haven't tried.)Anyway, it's not problem of Miranda. It's how Windows works.
-
Wishmaster commented
Vadim Dashevskiy, I wouldn't recommend that. It's part of Windows security guidelines, but I'm not aware on how to supress the necessary prompts.
-
Vadim Dashevskiy commented
Install Miranda to non-system directoty with profile inside the program - updater will not ask for user rights elevation.
-
Wishmaster commented
Okay, Miranda mit Administratorkonto müsste ich nun testen. Was macht denn nun CCCleaner? Vermutlich braucht der sowiso Adminrechte, außerdem kann man die glaube ich für die pu_stub als Nutzer auch selbst setzen, zumindest für die pu_stub.exe. Miranda NG würde ich nicht mit Administratorenrechten ausführen.
PS: Sorry everyone for german, I will translate later.
-
Gothico commented
i am logged in as admin. the UAC is a superadmin and its on with default settings, so there is a uac-prompt for miranda updater "pu_stub.exe" because writing on systemdisk is only allowed with permission.
ich muss euch doch nu wirklich nicht erzählen, wie w7 funktioniert...>:/
-
Wishmaster commented
Well, if you are logged in as an admin, there won't be an UAC prompt. Although I don't recommand working as admin all the time. Miranda doesn't need admin priviledges in general.
And I would not recommend to use another drive.