Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Issues with running applications with Admin Privilege


01 Oct 2010   #1

Windows 7 Enterprise x64
 
 
Issues with running applications with Admin Privilege

I am having issues with running certain apps with admin privilege.
I have installed Notepad++ which i use for my .js files.
Now here's what's happening:
When im editing a file which is located in the programfiles folder, it wouldn't allow me to save it. I can only save it if i close the app, give it admin privilege(right click->compatibility->check run as admin).
This is fine with me. But if i do that, another issue pops up. I am then not able to open files in notepad++ via the context menu. neither can i drag drop the file onto notepad++. ( i get an error: Error in CreateProcess (740) )

I also have a similar issue with chrome(7.0.517.24).
If i set it to run as admin, i can't drag and drop files onto chrome!
If i uncheck the 'run as admin' option, it works. I am able to drop files onto chrome as usual.


I dont' know what could be causing this. I know it's UAC related, but i can't understand why would apps have problem opening files when they are running in 'admin mode'!

My System SpecsSystem Spec
.

01 Oct 2010   #2

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

See if you are a standard or administrator user.

I doubt it's UAC related. Most likely due to permission rights of user, or file or folder. By running the program as admin and saving the file, it probably affects the file rights.
My System SpecsSystem Spec
01 Oct 2010   #3

Windows 7 Enterprise x64
 
 

I am the Administrator. It's the a/c that i created when installing 7.

However, here's what i did, which got it working for me.
I took ownership of the files that i wanted to modify in programfiles folder.
(right click - properties - security - advanced - owner - edit).
Now notepad++ is able to save the file.
My System SpecsSystem Spec
.


01 Oct 2010   #4

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
 
 

Excellent. Glad you got it resolved. So it was a rights issue.
My System SpecsSystem Spec
02 Oct 2010   #5

Windows 7 Enterprise x64
 
 

Yea, a part of it is solved.

But i still don't understand why cant apps open files when they are run with admin privileges.
I even tried the same with Opera. Once given admin privileges, it can't open files when drag n dropped onto it!
My System SpecsSystem Spec
02 Oct 2010   #6

Windows 8.1 Pro (x64)
 
 

You cannot drag files onto applications running as Admin because Explorer is not running as Admin. An application with a lower integrity (Standard user) level cannot talk to an application with a higher integrity level (Admin user). You either have to open the files though the applications "Open" menu, or do not edit the file when it is in a protected directory (Program Files).
My System SpecsSystem Spec
02 Oct 2010   #7

Windows 7 Enterprise x64
 
 

So any solution to this other than using the 'Open' menu of the particular app?
Would giving explorer admin previleges do any good? Even if it does, is it advisable?
Infact, is it advisable to give ANY app admin previleges?
My System SpecsSystem Spec
02 Oct 2010   #8

Windows 8.1 Pro (x64)
 
 

Quote   Quote: Originally Posted by 1nfected View Post
Would giving explorer admin previleges do any good? Even if it does, is it advisable?
Not advisable.

Quote:
Infact, is it advisable to give ANY app admin previleges?
Only when its required. Giving an application Admin privileges gives it power over your whole computer, this should be avoided especially for anything that is connected to the internet.

But for me the best solution is to never work in system locations like "Program Files" either move them to your desktop for quick edits or create a repository in a user owned location (Your User folder, for example) for your work. Then if need be using junctions or symlink the files in Program Files from your repository.
My System SpecsSystem Spec
02 Oct 2010   #9

Windows 7 Enterprise x64
 
 

Thanks for the explanation logicearth.
I tried givin explorer.exe admin right in the mean while, but didn't succeed.

Anyways, i've moved the files to a diff location, so no worries.
My System SpecsSystem Spec
Reply

 Issues with running applications with Admin Privilege




Thread Tools



Similar help and support threads for2: Issues with running applications with Admin Privilege
Thread Forum
DL'ed programs (ie Firefox) won't install/update w/out admin privilege Software
Solved Visual BCD Editor wont run with the Admin Privilege it asks for. Software
Windows 7 x64 stops running x86 applications BSOD Help and Support
External HDD Security Privilege Issues Hardware & Devices
No applications running - 800mb ram usage? General Discussion
Windows 7 Not Running Applications General Discussion
applications running problem Software

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:19 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33