Please expose some CreateProcess options.. like Priority, Window (Hide, max, min) etc. So that we can launch hidden process workers.
I'm confused... How do we generate the context menu? Manually through registry? What are needed entries?
I captured and compared the registry changes the command line option made with RegShot. Here is a .reg file of the relevant changes. When I tested it on my LTSB 2016 x64 VM it worked fine.
I've tried nsudo version 6.0.1802.2 with the gui version and it always opens a cmd prompt instead of the process you want to elevate: for example if you choose "regedit", the program runs cmd prompt instead. Previous version 5.0.1707.31 works greate instead. Anyone else? UPDATE: Sorry, didn't see the v2 version. My fault.
NSudo context menu on the Desktop, Drive and Directory right click Trusted Installer with all privileges, save as reg file Code: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\DesktopBackground\Shell\NSudo] "MUIVerb"="NSudo TI all privileges" "Icon"="C:\\Windows\\NSudo.exe" "Position"="Middle" [HKEY_CLASSES_ROOT\DesktopBackground\Shell\NSudo\command] @="NSudo -U:T -P:E cmd" [HKEY_CLASSES_ROOT\Directory\background\shell\NSudo] "MUIVerb"="NSudo TI all privileges" "Icon"="C:\\Windows\\NSudo.exe" "Position"="Middle" [HKEY_CLASSES_ROOT\Directory\background\shell\NSudo\command] @="NSudo -U:T -P:E cmd" [HKEY_CLASSES_ROOT\Directory\shell\NSudo] "MUIVerb"="NSudo TI all privileges" "Icon"="C:\\Windows\\NSudo.exe" "Position"="Middle" [HKEY_CLASSES_ROOT\Directory\shell\NSudo\command] @="NSudo -U:T -P:E cmd"
The new features draft of NSudo 6.1 In the command line, NSudo 6.1 will provide these optional arguments: -CurrentDirectory:[CurrentDirectoryPath] Set the current directory for the process. (Suggested by testtest322.) -Priority:[Idle | BelowNormal | Normal | AboveNormal | High | RealTime] Set the priority for the process. (Suggested by testtest322.) -ShowWindowMode:[Show | Hide | Maximize | Minimize] Set the window mode for the process. (Suggested by testtest322.) -Wait Start application and wait for it to terminate. (Suggested by testtest322 and wzzw.) (Is it necessary to add the timeout setting?) In the ShortCut List feature, NSudo 6.1 will provide these optional settings: You can customize the NSudo.json path by setting the %NSUDO_JSON_PATH% environment variable. (According to the suggestion of the 秋刀鱼.) Provide more options in the NSudo.json like that (According to the suggestion of the 秋刀鱼.). Code: { "ShortCutList_V3": [ { "Description": "Process Explorer", "Actions": [ { "Applicable": { "CPUArch": "x86" }, "Command": "E:\\Tools\\SysinternalsSuite\\procexp.exe" }, { "Applicable": { "CPUArch": "AMD64" }, "Command": "E:\\Tools\\SysinternalsSuite\\procexp64.exe" } ] } ] } I hope more and more people can share their suggestions. Mouri
I hope the first release of NSudo 6.1 can be published in May. I chose to publish it in May because I also want to try to implement a Win32 ShortCut List Editor for people don't want to edit NSudo.json directly. (Support GUI and CUI.) I hope you can forgive my wayward. Mouri