Closed Xelentra1 closed 4 years ago
Actually, it is not a stupid question. And a good idea to add a menu to run with PIN as an Administrator.
I made an update, check it out.
You need to delete the old menus first by delete_menu.reg
, and then add them again.
Also make sure that your Administrator account is enabled in the group policy, otherwise it will not run.
In Group Policy Editor:
Computer Configuration
-> Windows Settings
-> Security Settings
-> Local Policies
-> Security Options
->Accounts: Administrator account status
:Enabled
Nice feature, thank you!
PIN is trying to run the app: "C:\Users\user\Desktop\putty.exe" 64bit selected Target module: "C:\Users\user\Desktop\putty.exe" Tag file: "C:\Users\user\Desktop\putty.exe.tag" Attempting to start C:\pin\pin.exe -t C:\pin\source\tools\tiny_tracer\install32_64\TinyTracer64.dll -m C:\Users\user\Desktop\putty.exe -o C:\Users\user\Desktop\putty.exe.tag -f 1 -s 1 -- C:\Users\user\Desktop\putty.exe as user "WIN-XXXX\Administrator" ... Enter the password for Administrator: Attempting to start C:\pin\pin.exe -t C:\pin\source\tools\tiny_tracer\install32_64\TinyTracer64.dll -m C:\Users\user\Desktop\putty.exe -o C:\Users\user\Desktop\putty.exe.tag -f 1 -s 1 -- C:\Users\user\Desktop\putty.exe as user "WIN-XXXX\Administrator" ... RUNAS ERROR: Unable to run - C:\pin\pin.exe -t C:\pin\source\tools\tiny_tracer\install32_64\TinyTracer64.dll -m C:\Users\user\Desktop\putty.exe -o C:\Users\user\Desktop\putty.exe.tag -f 1 -s 1 -- C:\Users\user\Desktop\putty.exe -2147467259: Unspecified error Press any key to continue . . .
Getting this error when trying to run as administrator. Normal run works fine
I changed the way to elevate the process: https://github.com/hasherezade/tiny_tracer/commit/4d5b9f013b1ec9fdbb64f768afadfb3706a778b5 - please update and let me know if it helps
I changed the way to elevate the process: 4d5b9f0 - please update and let me know if it helps
Looks like it's working now. Thanks!
@zin1x - cool, so I will make an updated release.
Hey!
Sorry if it is stupid question but how to run an executable file with PIN as Administrator?