Run as admin issue + path does not exist

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Run as admin issue + path does not exist

Post by ztalk112 »

Hi all,

I have Everything installed on a laptop and it runs great . . . I love it! However, I have two problems when running it on a desktop on the same network.

Both machines are almost identical setup:

Windows 10 update 1607.
1 x admin user, 1 x standard user
Both access data on a NAS via a mapped network drive.

Issue #1: Can't run Everything as a standard user (when logged in as such):

Tools > Options > General > 'run as administrator' is unchecked

I've also checked the setting in %APPDATA%\Everything\Everything.ini

run_as_admin=0

[EDIT] I have Everything Service checked in Options > General

I have tried the following Windows properties setting both checked and unchecked:

Properties > Compatibility > run this program as an administrator

Issue #2: Specified path does not exist

I'm getting the path does not exist error discussed at http://www.voidtools.com/forum/viewtopi ... 84&p=12098 when trying to access folders and files on the mapped network. (Again, this works fine on the laptop I have mapped to the NAS in the same way).

I reinstalled Everything and as described by the poster in that thread, everything was initially ok. However, every time I reboot the machine, this error reappears.

Thanks in anticipation for any help you can offer.

Gary
Last edited by ztalk112 on Thu Nov 03, 2016 10:46 pm, edited 1 time in total.
keithg1964
Posts: 24
Joined: Thu Mar 26, 2009 3:55 pm

Re: Run as admin issue + path does not exist

Post by keithg1964 »

I was confused about this for a while, and I believe that if you run the everything service, there is no need to run the app as admin
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Re: Run as admin issue + path does not exist

Post by ztalk112 »

Sorry,

I forgot to mention that I have Everything Service checked in Options > General.
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Run as admin issue + path does not exist

Post by therube »

Issue #1: Can't run Everything as a standard user
Are you using the Everything Service?
If not, you would have to "Run As Administrator".

(Better, IMO, to use the Service.)

Issue #2: Specified path does not exist
Is it a UNC path?
If you're (you as in your User level) running as Administrator, you won't be able to see UNC shares (or something along those lines).

Try mapping the share to a drive letter.
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Re: Run as admin issue + path does not exist

Post by ztalk112 »

Thx for your reply.

Issue#1: I am using the Everything Service

Issue#2: The path is a mapped drive, not a UNC path.

It's the same mapped drive that works for me on my laptop running Everything.
Rene
Posts: 58
Joined: Fri Nov 04, 2016 6:16 am

Re: Run as admin issue + path does not exist

Post by Rene »

ztalk112 wrote:Thx for your reply.

Issue#1: I am using the Everything Service

Issue#2: The path is a mapped drive, not a UNC path.

It's the same mapped drive that works for me on my laptop running Everything.
do you perhaps map your shares with a batch file like when windows starts ?

if the batch file is not started as admin, the shares won't be present for admin started programs.

so i suggest either mapping them with an admin shortcut or starting Everything as normal way instead of as admin.

i've had this problem with other apps that i start as admin, they don't see my mapped drives (non admin shortcut), i assure you it's a windows "feature".
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: Run as admin issue + path does not exist

Post by void »

Issue #1: Can't run Everything as a standard user (when logged in as such):
Please check your Everything.ini in the same location as your Everything.exe, please make sure:
run_as_admin=0
I'm getting the path does not exist error discussed at viewtopic.php?f=5&t=4784&p=12098 when trying to access folders and files on the mapped network. (Again, this works fine on the laptop I have mapped to the NAS in the same way).
This is caused by issue #1. Programs run as admin will not see mapped network drives created by a standard user.
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Re: Run as admin issue + path does not exist

Post by ztalk112 »

Rene wrote:do you perhaps map your shares with a batch file like when windows starts ?
Thx Rene, but no. It is mapped via Windows regular mapping feature using a UNC address and set to reconnect at logon.

The mapped address is the same on both my machines. As described in my original post, one works with Everything flawlessly but the 2nd one doesn't.
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Re: Run as admin issue + path does not exist

Post by ztalk112 »

void wrote:Please check your Everything.ini in the same location as your Everything.exe, please make sure:
run_as_admin=0
As described in my original post above, run_as_admin=0 in the .ini file.

(I even tried using the .ini file from the laptop where Everything works well, but no good).
void wrote:Programs run as admin will not see mapped network drives created by a standard user.
I'm not sure I follow. As described above, I have 2 users, 1 x admin and 1 x standard user.

The network share was set up when logged in as the admin user, but works as intended for every other app when logged in as the standard user.

When logged in as the admin user, neither of the two issues being discussed occur . . . only when logged in as the standard user.

And again, I have exactly the same setup on another machine and it works fine in that instance.
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: Run as admin issue + path does not exist

Post by void »

As described in my original post above, run_as_admin=0 in the .ini file.

(I even tried using the .ini file from the laptop where Everything works well, but no good).
There's two Everything.ini files, one in the same location as your Everything.exe and another in %APPDATA%\Everything.

Could you please send some debug output about your Everything setup:
  • In Everything, press Ctrl + `
  • What is displayed at the top of the debug console?
Should look something like:

Code: Select all

Everything
Version 1.4.1.794b (x86) DEBUG
Windows NT 6.1
Processors 8
IsAdmin 1
AppData 0
Service 2
cmdline "c:\dev\everything\debug\Everything.exe"
When logged in as the admin user, neither of the two issues being discussed occur . . . only when logged in as the standard user.
From a standard user command prompt, is the mapped network drive accessible?
From a admin command prompt, is the mapped network drive accessible?
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Re: Run as admin issue + path does not exist

Post by ztalk112 »

Ok, so I uninstalled the app (for the 3rd or 4th time), reinstalled and for some reason it now allows me to access the mapped drive when logged in either as a standard or admin user (ie issue #2 above is evidently resolved).

However, issue #1 remains - I still get a UAC prompt when logged in as a standard user, even though I am running the Everything Service and Run as Admin is unchecked in Options.

run_as_admin=0

in both .ini files (install directory and %APPDATA%\Everything)

Here's the first few lines of the debug console

Code: Select all

Everything
Version 1.3.4.686 (x64)
Windows NT 6.2
Processors 4
IsAdmin 0
AppData 1
Service 1
I note that Everything is installed at C:\Program Files\Everything, even though I'm running 64 bit version of Win 10. Is that correct?
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: Run as admin issue + path does not exist

Post by void »

Thanks for the debug output.

Was there a cmdline line in the debug console after Service 1 part?
I note that Everything is installed at C:\Program Files\Everything, even though I'm running 64 bit version of Win 10. Is that correct?
The x64 version of Everything will install to C:\Program Files\Everything by default.
The x86 version will install to C:\Program Files (x86)\Everything
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Re: Run as admin issue + path does not exist

Post by ztalk112 »

Was there a cmdline line in the debug console after Service 1 part?
See screenshot attached.

I see that (unlike my previous post), IsAdmin is now equal to 1 in the debug console.

Cheers.
Attachments
screenshot 1.png
screenshot 1.png (33.64 KiB) Viewed 15300 times
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Re: Run as admin issue + path does not exist

Post by ztalk112 »

And here's the rest of interest . . .
Attachments
screenshot 2.png
screenshot 2.png (29.92 KiB) Viewed 15300 times
screenshot 3.png
screenshot 3.png (45.44 KiB) Viewed 15300 times
screenshot 4.png
screenshot 4.png (44.48 KiB) Viewed 15300 times
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: Run as admin issue + path does not exist

Post by void »

Thanks for the screenshots, ah Everything 1.3.4 doesn't have the cmdline in the debug output.

Could you please run task manager to find the command line:
  • Press Ctrl + Shift + ESC to launch the Task manager.
  • Select the Processes tab (Details on Windows 10)
  • From the View menu, click Select Columns.
  • Check Command line and click OK.
  • What is the full command line for the two Everything.exe processes?
If Everything is launching itself as admin you'll see a -isrunas command line option.
If not, Windows is launching Everything as admin, you'll have to double check your shortcuts and the Everything.exe are not set to run as Administrator.
Are you using a scheduled task to run Everything on startup?
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Re: Run as admin issue + path does not exist

Post by ztalk112 »

Thanks for your help.

I'm only running Everything from a desktop shorcut (screenshots below), it's not set to run at startup.

No command lines in the task manager screenshot.
Attachments
task manager.png
task manager.png (226.19 KiB) Viewed 15298 times
shortcut.png
shortcut.png (22.08 KiB) Viewed 15298 times
compatibility.png
compatibility.png (26.32 KiB) Viewed 15298 times
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: Run as admin issue + path does not exist

Post by void »

Thanks for the screenshots.
  • On Windows 10, in the Task Manager, Click the Details tab.
  • Right click the Column header and click Select Columns.
  • Check Command line and click OK.
  • What is displayed for the command line for the Everything.exe processes?
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Re: Run as admin issue + path does not exist

Post by ztalk112 »

Running as admin, but no command line.
Attachments
task manager 2.png
task manager 2.png (28.83 KiB) Viewed 15297 times
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: Run as admin issue + path does not exist

Post by void »

Please try replacing your Everything.exe with the latest 1.4.1 beta.

What is displayed in the debug console for Everything 1.4.1?
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Re: Run as admin issue + path does not exist

Post by ztalk112 »

1.4.1 runs with same behaviour as 1.3.4.

Allows access to NAS via mapped drive, but still prompts for UAC password at start up.
Attachments
debug 1.png
debug 1.png (30.67 KiB) Viewed 15291 times
task man 1.png
task man 1.png (35.12 KiB) Viewed 15291 times
options 1.png
options 1.png (27.65 KiB) Viewed 15291 times
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: Run as admin issue + path does not exist

Post by void »

cmdline "C:\Program Files\Everything\Everything.exe"
Thanks for the screenshots.
It looks like Everything is not relaunching itself as admin from the command line.
It must be the system running Everything as admin, please try removing any compatibility mode settings for Everything from the registry:
  • From the Start menu, click Run.
  • Type in regedit and click OK.
  • 1). Navigate to:
    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
  • Delete any entries with the name: C:\Program Files\Everything\Everything.exe
  • 2). Navigate to:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
  • Delete any entries with the name: C:\Program Files\Everything\Everything.exe
  • 3). Navigate to:
    HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
  • Delete any entries with the name: C:\Program Files\Everything\Everything.exe
  • Close the registry editor.
ztalk112
Posts: 13
Joined: Thu Jul 14, 2016 12:23 am

Re: Run as admin issue + path does not exist

Post by ztalk112 »

Ok, first I uninstalled the beta version because it wouldn't retain settings for Indexes > Folders and Indexes > Exclude after a reboot.

I reinstalled 1.3.4 and looked at the registry per your instructions (thank you) and here's what I found:
void wrote: [*]1). Navigate to:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
[*]Delete any entries with the name: C:\Program Files\Everything\Everything.exe

There were no entries (just a default with no value set)

[*]2). Navigate to:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
[*]Delete any entries with the name: C:\Program Files\Everything\Everything.exe

The layers folder was not present

[*]3). Navigate to:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
[*]Delete any entries with the name: C:\Program Files\Everything\Everything.exe
[*]Close the registry editor.[/list]

The layers folder was not present

Beyond that, I now find that version 1.3.4 is also not retaining settings for mapped folders and exclusions (c: drive).
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: Run as admin issue + path does not exist

Post by void »

Thanks for the registry info.

Is Tools -> Options -> General -> Store settings and data in %APPDATA%\Everything enabled?

Please try changing the compatibility mode to Windows 7 for Everything:
  • Right click your Everything.exe and click Properties.
  • Select the Compatibility tab.
  • Check Run this program in compatibility mode for:
  • Select Windows 7.
  • Click OK.
Post Reply