Jump to content

ontheteam

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by ontheteam

  1. I have used various versions of Kel's UberPack for several years.  One of its features I have enjoyed most is "Run with Arguments" in the context menu.

     

    There are several registry entries for RunARG. One example is:

    Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\batfile\shell\Run With Arguments][HKEY_CLASSES_ROOT\batfile\shell\Run With Arguments\command]@="\"C:\\Windows\\system32\\RunArg.exe\" %1" 

    What I'd like to do is create a shell extension to "Run with Arguments (as Admin or Elevated)"

     

    I found the following command-line.

    runas /user:REQUIREDUSERNAME /savecred C:\Windows\System32\RunARG.exe

    I guess /savecred is supposed to make it ask for admin password on the first run only.

    1. Does anyone know how this might be used to edit the context menu item so it can be run with elevated privileges?
    2. Does anyone know if that command-line will work using the %USERNAME% variable?

    I considered checking the Run as Administrator box in the executable's Compatibility properties, but then I'd be nagged by UAC every time I use RunARG.  Using runas with /savecred would be most unobtrusive, if it can be made to work in the context menu. 

     

    (I don't currently have any virtual machines to try this out on, so I just figured I'd put the question to the group.)

  2. ***EDIT***

    I just read a post where I can make the inf installer into a silent exe. I will try that first.

    I found this post http://www.wincert.net/forum/index.php?showtopic=3759

    In it Rick points out that we can just use WinRAR SFX with following options

    Setup=Firefox.inf
    TempMode
    Silent=1
    Overwrite=1

    Firefox.cab must be in folder i386, so content of SFX is

    firefox.inf
    i386\firefox.cab

    I successfully tested this with the files from the 2.0.0.15 vanilla version. The install is not silent, but it IS unattended.

    Thanks again for a great tool.

  3. If its winrar you dont have to do that, just use this (it will lanuch the DefaultInstall section if any)

    Setup=NameOfINF.inf
    TempMode
    Silent=1
    Overwrite=1

    Rick,

    Using this method, do I still need to place my .cab file in the folder i386?

    ***Nevermind. I figured it out. The answer is YES.***

    Aaron

  4. Jonny, I may have missed something when I ran 0.442, but 0.38 made a switchless installer in SVCPACK that I could re-locate for use in WPI. This latest build uses the .cab with .inf; is there an option to have the switchless again?

    I'll probably find it before u reply, but if I don't ask I'll never find it. :rolleyes:

    BTW - Thanks for putting this together. It's a beautiful thing.

×
×
  • Create New...