• English speaking
  • SuRun does not notice programs started by Start Menu Shortcuts .lnk with /OPTIONS?

I'm sure I'm just doing something wrong, and I apologise in advance for my stupidity...

I had used SuRun sometime ago in version 1.2.0.9beta but just recently took it up again with 1.2.1.2, on a Windows 7 Enterprise 64-bit system, a Domain member.

A program which, in the Start Menu, includes /options after the "C:\Program Files (x86)\Author\Program\Executable.exe", does not seem to be noticed by SuRun; the usual Windows UAC prompt still comes up. Programs which do not have /options in the Start Menu shortcuts/.lnk files, are recognised by SuRun and launch automatically with administrator rights correctly.

Specific example, Ninite Updater, the Start Menu .lnk shortcut is:
"C:\Program Files (x86)\Ninite Updater\NiniteUpdater.exe" /updaterclient /stub:trayapp

If that exact path is in my user's StartUp folder (to start automatically when the user logs in), SuRun notices it and starts it automatically as administrator.
But if I tap the Windows/Start key, type "Ninite" and click on the Start Menu item which Windows Search finds on the computer (which is that exact same path), then Windows UAC pops up, not SuRun.

What am I doing wrong? / What is the correct way to teach SuRun about a program which is started from a Start Menu Shortcut/.lnk which has /options at the end?

thanks,
-Jay
Hello Jay,

You're not doing anything wrong.
I'm trying to reproduce your scenario.

In a quick test on my Windows 10 pro x64 laptop it just seems to work:


I'll try on a Windows 7 x64 Domain computer, tomorrow.

Cheers,

Kay
Hi Kay,
Thanks so much for looking in to this.

Maybe it's not the /options which are creating the challenge, but something peculiar about the Ninite Updater application itself?

Unfortunately, Ninite Updater https://ninite.com/updater/ is not available in a free trial.
My current Ninite Updater license will expire in about a month; I could give you a copy of that for testing, or I'll happily buy you a one-seat license to Ninite Updater (USD$9.99) if you'd like.

regards,
Jay
Hi Jay,

I tried in a "Windows 7 x64 ultimate" VM joined to a "Windows server 2012" domain with the same results.
When opening the start menu, typing the name of a "needs to run elevated" link (I tried a link to "TCMADM64.EXE"{part of Total Commander} with command line options) and clicking on it, SuRun pops up before the UAC prompt. I also tried the x86 version "TCMADMIN", same result.

But that's only on my machine.

If UAC pops up on your machine before SuRun, then SuRun's Hooks are out of the game, as UAC will not daisy chain process startup.

In such case you can always use a direct SuRun link:
"C:\Windows\SuRun.exe" "C:\Program Files (x86)\Ninite Updater\NiniteUpdater.exe" /updaterclient /stub:trayapp

This bypasses UAC.

BTW:
In your first post you wrote "StartUp folder".
If you want to auto elevate NiniteUpdater when a user logs on, this always will fail with SuRun's Hooks.
Programs in the StartUp folder are directly started by a Windows Service that is not hooked by SuRun.
In that case you can only use a direct link to SuRun.exe.

Cheers

Kay
Hi Kay,
I'm confused, about Programs in the StartUp folder being started by a Windows service which is not hooked by SuRun, because I do have success with SuRun elevating a program (Secunia PSI) started from:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\ as a .lnk file (on a Windows 10 system).
Or, did you mean, instead of Startup (run as user upon user login) that it is start at System boot time programs which do not benefit from SuRun (which is as I'd expect)?


(Aside from all the above, before I forget, I notice that both WebRoot SecureAnywhere and AVG Antivirus are rather aggressive about not liking SuRun during installation; it's necessary to temporarily disable those two in order to successfully install SuRun. I don't recall it having been a problem in years past. I could see why they'd false-positive on SuRun. Perhaps you could reach out to them and get them to back off a bit?)
Eine Antwort schreiben…
Impressum, Datenschutz