Forum: SuRun English speaking RSS
SuRun does not notice programs started by Start Menu Shortcuts .lnk with /OPTIONS?
libove #1
Mitglied seit 07/2016 · 3 Beiträge
Gruppenmitgliedschaften: Mitglieder
Profil anzeigen · Link auf diesen Beitrag
Betreff: 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
Kay (Administrator) #2
Benutzertitel: Weltverbesserer
Mitglied seit 11/2007 · 1464 Beiträge · Wohnort: Magdeburg
Gruppenmitgliedschaften: Administratoren, Mitglieder
Profil anzeigen · Link auf diesen Beitrag
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:
[Bild: /pic/HookTest.png]

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

Cheers,

Kay
libove #3
Mitglied seit 07/2016 · 3 Beiträge
Gruppenmitgliedschaften: Mitglieder
Profil anzeigen · Link auf diesen Beitrag
Betreff: Maybe it's not the /options, but something peculiar about the Ninite application itself?
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
Kay (Administrator) #4
Benutzertitel: Weltverbesserer
Mitglied seit 11/2007 · 1464 Beiträge · Wohnort: Magdeburg
Gruppenmitgliedschaften: Administratoren, Mitglieder
Profil anzeigen · Link auf diesen Beitrag
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
libove #5
Mitglied seit 07/2016 · 3 Beiträge
Gruppenmitgliedschaften: Mitglieder
Profil anzeigen · Link auf diesen Beitrag
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?)
Schließen Kleiner – Größer + Auf diesen Beitrag antworten:
Prüfcode: VeriCode Gib bitte das Wort aus dem Bild ins folgende Textfeld ein. (Nur die Buchstaben eingeben, Kleinschreibung ist in Ordnung.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Weitere Zeichen:
Gehe zu Forum
Nicht angemeldet. · Kennwort vergessen · Registrieren
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Seite erstellt in 87,9 ms (47,6 ms) · 65 Datenbankabfragen in 13,8 ms
Aktuelle Zeit: 27.06.2017, 07:18:23 (UTC +02:00)