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: How to force to run any setup/program/file without admin rights?

05 Nov 2016   #1
Win7 WINNN

Win 7 x64
 
 
How to force to run any setup/program/file without admin rights?

I have been looking for the answer to the question like forever and to this day I cannot find solution that would completely solve the problem.

Let me be straight from the beginning, I actually want to FORCE (!) any file to run without admin rights 100% of the time without any exceptions whats so ever! And I really don't care about any "It won't work properly", "It won't work at all" or any other similar tears. I just want that program at the very least would try to run without admin rights.

Right now most of the troubles I have with some installation files. Most setups don't even need admin rights to install correctly or they need admin right only for some small component that usually isn't necessary for me so I really don't mind if it wouldn't be installed in the first place and yet, they like literally demand (!) admin right for the whole installation process. You can clearly see the proof of that when you for example install some program on one system and then simply copy and paste installed files to the other system and the program works fine without admin rights despite the fact that it desperately required admin right to be installed onto the first system.

By far the best answer to my question that I managed to came myself is the use of "RunAsInvoker" command, but unfortunately it doesn't work all the time. Some setups are so damn stubborn, that they completely ignore "RunAsInvoker" thing and refuse to go one step further without admin rights. The alternative would be to install such program onto another system (e. g. virtual machine) and then copy and paste installed files onto primary machine, but that isn't really practical. Ideally I'm looking for something like "RunAsInvoker" that works 100% without any exceptions of absolutely (!) any kind.

Any ideas?

And also, could anyone tell me where the hell gone good old "customer is always right" principle? I (!) want to decide whether program needs elevated privileges or not, not the program...


My System SpecsSystem Spec
.
05 Nov 2016   #2
LMiller7

Windows 7 Pro 64 bit
 
 

Quote   Quote: Originally Posted by Win7 WINNN View Post
Let me be straight from the beginning, I actually want to FORCE (!) any file to run without admin rights 100% of the time without any exceptions whats so ever!
Not possible.

Applications have the ultimate control over what account they must be run under and there are a wide variety of ways this can be enforced if an application chooses to do so. Some applications can be coerced into other behavior but not all. In many cases they require an admin level account because what they do cannot be done with less. Forcing the application to run with a lower level account (if possible) would have unpredictable results.

If an application needs admin rights to do it's job it is appropriate that it refuses to run with a lower level account. Most programmers would agree. That is just good programming practice.
My System SpecsSystem Spec
05 Nov 2016   #3
Win7 WINNN

Win 7 x64
 
 

Quote   Quote: Originally Posted by LMiller7 View Post
<...> would have unpredictable results.
Like an error message? Very well, I would take that! And then I would work with that error and find out reasons of that error. Maybe setup can't install or program work only because it doesn't have access to the specific registry entry? I would feel more comfortable by giving access rights to that specific registry key instead of giving unlimited access for a program to do whatever program wants to do.


Quote   Quote: Originally Posted by LMiller7 View Post
Most programmers would agree. That is just good programming practice.
I'm not a programmer, but I'm pretty sure that you are right. However, I'm talking from the house owners point of view. I want that all my guest in my house behave according to my rules! It's my house after all!

I support the idea that such behavior would be enabled by default, because most people don't really know much about computers and in such cases it's actually smarter to let program makers decide whats best for customers, but to force such nonsense upon every single one of us at the very least is very disrespectful.
My System SpecsSystem Spec
.

05 Nov 2016   #4
Win7 WINNN

Win 7 x64
 
 

By the way, Windows XP don't have such nonsense and I never heard any bad stories related to it.
My System SpecsSystem Spec
05 Nov 2016   #5
LMiller7

Windows 7 Pro 64 bit
 
 

Unpredictable means just that.
Maybe there will be an error message. Maybe not.
Maybe the application will behave in an unusual way.
Maybe the application will crash.
Maybe the application will appear to work properly, but does not.
All of this and more is possible.

I stand by everything I have said 100%.
I am a programmer (amateur) and have some experience in these matters.
My System SpecsSystem Spec
4 Weeks Ago   #6
Win7 WINNN

Win 7 x64
 
 

You have right to have your opinion, but I didn't really come here to discuss which way is the best, I just came here to find the solution to the previously mentioned problem.

I don't really agree with your "Not possible", as I said before, you can install program on virtual machine and then copy and paste installed files onto primary machine thus eliminating the need to give program admin rights for installation onto primary machine. Although it's an indirect and quite impractical solution, but it kinda achieves the main goal. So, can't really say "Not possible". I just hope that someone here will have much brighter and maybe more "out of the box" ideas.

EDITED:
Anyone outside of this forum is welcome to register and post here your ideas, even if the registration would be just for that.
My System SpecsSystem Spec
4 Weeks Ago   #7
Megahertz07

Windows 7 HP
 
 

Do you have an administrator account?
I don't know if it is what you want, but if you want to get rid of the "are you real, real sure you want to..." kind of message, go to Control panel - Action center - Change user account control settings - Set it to never notify.
My System SpecsSystem Spec
4 Weeks Ago   #8
Barman58

Windows 10 Pro x64 x2 Windows 10 Enterprise x64, Ubuntu
 
 

Windows is designed to work in a specific way - you are licensed to use the windows software, you do not own it, the conditions for it's use are contained in the End User Licence Agreement that you agree to when installing, ( or use for the first time)

However, stating that ...

You can revert to the outdated and unsafe, (total lack of) security model used in the obsolete XP systems by enabling, and then using, the so called Hidden administrator, but you are then seriously at threat from modern threats that were not present during the XP period

Built-in Administrator Account - Enable or Disable

The current Dual token administrator account system used with current windows is a convenient version of the best practice used by IT professionals for many years including on XPired - Have two accounts, One low security for day to day use, and an administrator account for administrative activities.

Remember that any malware or nefarious access acts on your system with the rights of the user in place at the time of the attack so if you do go for XP level security in the modern world - please ensure you do regular full system images and data backups as you will likely need them sooner rather than later
My System SpecsSystem Spec
4 Weeks Ago   #9
Win7 WINNN

Win 7 x64
 
 

Quote   Quote: Originally Posted by Megahertz07 View Post
Do you have an administrator account?
I don't know if it is what you want, but if you want to get rid of the &quot;are you real, real sure you want to...&quot; kind of message, go to Control panel - Action center - Change user account control settings - Set it to never notify.
That doesn't really solve the problem, it just changes the response from providing UAC screen to providing a message that you need admin rights to install such program. Setup still doesn't even try to move forwards, it just sees that there is no admin rights available and stops immediately even so the road is usually wide open for installation. I mean that if you can normally launch and work with program that you didn't really install on primary system (just copied installed files from another system), then it's kinda obvious that the announcement "you need admin right to install me" isn't really very reasonable.
My System SpecsSystem Spec
4 Weeks Ago   #10
Win7 WINNN

Win 7 x64
 
 

Quote   Quote: Originally Posted by Barman58 View Post
You can revert to the outdated and unsafe ...
Correct me if I'm wrong, but you are basically talking about the easiest way to grant admin rights for programs and I'm trying to completely avoid that.
My System SpecsSystem Spec
Reply

 How to force to run any setup/program/file without admin rights?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Cant get admin rights to delete X86 program files
I have win 7 64 bit OS and the title says it all really,I have right clicked Computer and only found *Manage* which isn't any help? I'm trying to get rid of a Norton Antivirus trial program that came with the computer,I removed it with Revo Uninstaller and thought that was it because its supposed...
General Discussion
Power User or Admin rights needed to run program
I have a lab of computers on a domain that students use. They need to run an accounting program that is already installed on the machines. When a student tries to run the program they instantly get blocked with an error message saying they need Power User rights or administrative rights. There...
Software
auto run admin rights Core Temp program at startup Vista/Windows 7
i found this on the web wile looking how to get core temp to auto run - core temp is a program that need admin rights maybe sticky this i dont know FYI i used this to auto run Energy saver from gigabyte by starting st step #2 I noticed a lot of people are trying to make Core Temp...
Software
Have admin rights but can't create new file in Program Files (x86)
I'm trying to solve a problem with the Aspell spell-checker for Notepad++ by using the steps described at this link... SourceForge.net: Notepad++: Aspell files - en.pws , en.prepl However, when I right-click inside that folder to create a new text file, the only option in the "New" context menu...
General Discussion
Make a program not require admin rights?
Hi, i am a lil bit confused here. the program name is xfire, i want to start it when windows start. problem is, it needs admin rights to start, so if i put it on when windows start, the admin box comes in and stalls everything else from loading. is it possible to make it run without it...
Software
Unable to save host file even with admin rights/UAC off
Hi all I searched the net on how to overwrite or save over the host file in the C:\Windows\System32\drivers\etc folder but I cannot seem to make it work here. I tried opening Notepad and run as administrator then file>open the hosts file and then save but I keep getting access denied. When I try...
General Discussion


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 23:54.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App