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

Page 1 of 2 12 LastLast

  1. Posts : 16
    Win 7 x64
       #1

    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 Computer


  2. Posts : 2,497
    Windows 7 Pro 64 bit
       #2

    Win7 WINNN said:
    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 Computer


  3. Posts : 16
    Win 7 x64
    Thread Starter
       #3

    LMiller7 said:
    <...> 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.


    LMiller7 said:
    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 Computer


  4. Posts : 16
    Win 7 x64
    Thread Starter
       #4

    By the way, Windows XP don't have such nonsense and I never heard any bad stories related to it.
      My Computer


  5. Posts : 2,497
    Windows 7 Pro 64 bit
       #5

    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 Computer


  6. Posts : 16
    Win 7 x64
    Thread Starter
       #6

    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 Computer


  7. Posts : 7,351
    Windows 7 HP 64
       #7

    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 Computers


  8. Posts : 31,249
    Windows 11 Pro x64 [Latest Release and Release Preview]
       #8

    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 Computers


  9. Posts : 16
    Win 7 x64
    Thread Starter
       #9

    Megahertz07 said:
    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 Computer


  10. Posts : 16
    Win 7 x64
    Thread Starter
       #10

    Barman58 said:
    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 Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 12:54.
Find Us