Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I think this question suits better superuser than stackoverflow.

I need to write an installer for some executables. The user might copy them wherever he wants but usually this is performed in C:\Program Files\MyProgram

If there's visual studio installed I also need to copy something to system32 (and that requires admin rights I suppose).

Does that make sense to support normal users and admin users? I mean: if I need to install something I always need admin rights, is this correct?

share|improve this question
    
You don't always need Administrator permissions to install a program, it entirely depends, on what the group policy is. – Ramhound Sep 19 '13 at 11:43
    
Group policy for what? For what the program does? – Marco A. Sep 19 '13 at 11:45
    
There is a group policy that handles if if an Administrator permission escalation is required. If that is not turned on, additionally, a program can or cannot require Administrator permissions to be installed. Adding a file to System32 is trivial with the installer of your choice, it requires escalation in nearly all solutions, but every single solution I have tried provide a simople and straight forward way of moving a file into the System32 folder ( although thats actually incorrect behavior ). – Ramhound Sep 19 '13 at 11:49
up vote 0 down vote accepted

Since this appears to be a question about NSIS, take a look at RequestExectutionLevel and the UAC plug-in. Program Files/Program Files (x86) and the Windows folders both require admin rights.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .