it is possible to add option to force program to run as administrator
Code: Select all
LeftMouseUpAction=[!RunasAdmin "path to program" "additional parameters"]
Code: Select all
LeftMouseUpAction=[!RunasAdmin "path to program" "additional parameters"]
Code: Select all
SHELLEXECUTEINFO sh;
sh.lpVerb = _T("runas");
sh.lpFile = _T("path to program")
sh.lpParameters = "additional parameters";
ShellExecuteEx(&sh);
We are just never going to encourage "authors" to distribute skins that can elevate themselves to administrator, even with a User Account Control prompt from the OS, which any given user may have turned off. This is entirely up to the skin "user", who must specifically set the attribute on Rainmeter.exe. If any skin EVER prompted me for Administrator access to my system, I would say "no", unload it and delete it immediately. I wouldn't even look at the code, because I don't care, it has stepped way over the line.oZone wrote:I am not proficient in c++
but couldn't you use thisto elevate children processCode: Select all
SHELLEXECUTEINFO sh; sh.lpVerb = _T("runas"); sh.lpFile = _T("path to program") sh.lpParameters = "additional parameters"; ShellExecuteEx(&sh);
I'm certainly not angry about it... Just wanted to be clear and firm about where we stand.oZone wrote:I only asked, you don't have to be angry.
Running rainmeter as administrator is not option, as I want to run program as administrator only when I need.