NSudo | Series of System Administration Tools | General Thread

Discussion in 'MDL Projects and Applications' started by Mouri_Naruto, Feb 6, 2015.

?

These things you maybe see in the future version of NSudo. What do you think about?

Poll closed Sep 13, 2019.
  1. Publish to Chocolatey? (Suggested by wwtex.)

    8 vote(s)
    66.7%
  2. Publish to scoop? (Suggested by wwtex.)

    1 vote(s)
    8.3%
  3. Publish to Windows Store? (Desktop Bridge.)

    3 vote(s)
    25.0%
  4. Add NSudo Configuration Editor?

    9 vote(s)
    75.0%
  5. Using Qt to implement the UI? (It may increase the binary size of NSudo.)

    3 vote(s)
    25.0%
  6. Compile NSudo with CMake?

    3 vote(s)
    25.0%
  7. Yes

    0 vote(s)
    0.0%
  8. No

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
  2. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
  3. v72dd

    v72dd MDL Senior Member

    Nov 20, 2016
    445
    77
    10
    This is so excellent for AutoIt/AHK compiled exe scripts :)))
    For deployment automation.
     
  4. adric

    adric MDL Expert

    Jul 30, 2009
    1,250
    1,324
    60
    #304 adric, Nov 7, 2018
    Last edited: Nov 7, 2018
    I just wanted to try the sample in the readme from the command line on Win7x64 and got an error.
    Code:
    C:\>X:\SwApps\Tools4Maint\CmdElevation\NSudo6\x64\nsudo.exe -U:T cmd /c "dir "C:
    \Program Files" & pause"
    Error: Failed to create a process. I tried this with nsudoC.exe and got the same error.
    What did I do wrong (v6.0.1804.5)?

    TrustedInstaller service is set to manual. I started it but that did not help. Run as System also not working. Works fine on Win8.1 and Win10 LTSB

    Edit: Rebooted and it seems to be okay now. :confused:
     
  5. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    6.1.1811.7b CI Build 162 is the WORST build of NSudo ever released. I keep getting errors all the time and it is not even possible to launch NSudo from some directories... Is there a STABLE release that works?
     
  6. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    CI Builds in NSudo is similar to the nightly builds in some open source projects.
    It is not stable, even for the standard of preview builds.
    All preview and stable builds are compiled by myself on my laptop or my desktop if I think it is suitable.

    I said "To be continued..." in #303. So you need to wait for the preview build. (NSudo 6.1 has several preview builds.) I also hope you can give me more information of the bug.

    I am really sorry to hear that.

    Mouri
     
  7. PointZero

    PointZero MDL Member

    Oct 5, 2011
    1,415
    3,775
    60
    I wish this site had a dislike/thumbs down feature for posts. Your post is rude and unhelpful.
     
  8. Thomas Dubreuil

    Thomas Dubreuil MDL Senior Member

    Aug 29, 2017
    363
    620
    10
    #308 Thomas Dubreuil, Nov 8, 2018
    Last edited: Nov 8, 2018
    +1, complain on a build grabbed through appveyor...
    @Mouri_Naruto 'Hosts' does not work on that last build: file not found
    test.JPG

    ps: %windir% replaced by C:\\Windows work
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    I see. I need to expand environment varible before calling CreateProcessAsUser().
     
  10. Thomas Dubreuil

    Thomas Dubreuil MDL Senior Member

    Aug 29, 2017
    363
    620
    10
    That's it! none of the variables I use in Nsudo are working: hosts, taskschd, comexp...
    can't wait for next release!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    #311 Mouri_Naruto, Nov 12, 2018
    Last edited: Nov 12, 2018
    (OP)
    How about moving the context menu installer and uninstaller into a batch script?

    It can streamline the NSudo's implementation and give you an official sample that how to customize the NSudo's context menu items.

    Or into NSudo Configuration Editor?

    Mouri
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,752
    340
    If it will reduce the binaries size, then yes it's better :biggrin:
     
  13. Thomas Dubreuil

    Thomas Dubreuil MDL Senior Member

    Aug 29, 2017
    363
    620
    10
    #313 Thomas Dubreuil, Nov 13, 2018
    Last edited: Nov 15, 2018
    Agree totally, for size and also because I install Nsudo in custom directory and run .reg for that, so I could edit the batch instead. Context menu is easy to customize.

    @Mouri_Naruto in latest GUI artifacts from apveyor (167 and 168) json file does not work at all o_O
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    #315 Mouri_Naruto, Nov 17, 2018
    Last edited: Nov 19, 2018
    (OP)
    Today, I am proud to announce the NSudo 6.1.

    Code:
    **NSudo 6.1.1811.18**
    - Merge NSudoC and NSudoG projects to NSudo project.
    - Add VC-LTL 4.0 or later support for NSudo release configuration for ARM and
      ARM64 and drop the earlier version of VC-LTL support. (Huge thanks to
      mingkuang.)
    - Add the following options in the command line usage.
      - CurrentDirectory (Suggested by testtest322.)
      - Help
      - H
      - Priority (Suggested by testtest322.)
      - ShowWindowMode (Suggested by testtest322.)
      - UseCurrentConsole
      - Version
      - Wait (Suggested by testtest322, wzzw and Domagoj Smolčić)
    - Remove some undocumented command line usage.
    - Improve several implementations.
      - Refactoring the command line parser.
      - Introduce the new frontend of process creation.
      - Using ATL to implement the main window.
      - Fix the context menu bug. (Thanks to Thomas Dubreuil.)
    - Update copyright of license.
    - Remove donation link in the documents.

    Mouri_Naruto
     

    Attached Files:

  15. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    7,897
    10,733
    240
    yep bro, thanks for your hard work again :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Mouri_Naruto

    Mouri_Naruto MDL Developer

    Jul 10, 2014
    525
    1,791
    30
    #1 of this post has been updated.
     
  17. Thomas Dubreuil

    Thomas Dubreuil MDL Senior Member

    Aug 29, 2017
    363
    620
    10
    Just now realized I can finally use space in paths inside Nsudo.json...Great!!
    DOS names with ~1 was a pain !

    However I think you didn't expand well all environment variables? for example comexp (component services), taskschd not working...it was used to work
    Here is my json example
    Code:
    {
       "ShortCutList_V2": {
           "Xyplorer":  "C:\\PROGRA~1\\SYSTEM~1\\SYSTEM~1\\Xyplorer\\XYplorer.exe",
           "Task Scheduler": "taskschd",
           "Registry Workshop": "C:\\PROGRA~1\\REGIST~1\\RegWorkshopX64.exe",
           "PowerShell": "powershell",
           "Hosts": "notepad C:\\Windows\\System32\\Drivers\\etc\\hosts",
           "Component Services": "comexp",
           "CMD": "cmd"
           }
    }
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. slayer9450

    slayer9450 MDL Member

    Aug 3, 2015
    211
    87
    10
    You should probably publish it on the GitHub page as well. It still says the latest version is 6.0 R3.