I'm experiencing a very strange issue on a Windows 7 x64 machine. I'll try to explain the best I can, so it can't be short. Lots of thanks in advance for your patience.

So Win 7 x64. I'm working under an administrator rights account, and I have UAC enabled. What happens is that when a program needs elevation to do a task -and it knows how to ask for it, no ancient executables -, if it's running from -user- temp folder, it simply doesn't ask for it, and then fails.

I suppose it's not clear, so let's take a step-by-step look at what happens when I execute a program that needs elevation from any directory. If I try to launch, f.ex., TrueCrypt, I execute it, it automatically detects that it needs elevation, and it doesn't have it, so it asks for it (UAC prompt, click yes, the program runs normally).

Now let's take a look at a program that runs from temp. I'll choose an NSIS installer like Firefox one. I execute it, it automatically decompresses to temp, and then setup.exe is launched from temp. This setup.exe executable should ask for elevation, but it doesn't, just tries to run in the current context and then the process dies. It's like if, in the moment of checking elevation, decided it already has when this is not true.

But if I launch the NSIS installer directly with administrative rights, it decompresses to the same temp folder, then setup.exe inherits elevation and runs ok.

Another strange note I must add is that automated update services, like the Mozilla one, or for example the Google Chrome one, also fail to install the updates. And this is even stranger because these services run with administrative privileges and afaik they download the updates then launch the installers with administrative rights. But what happens is the same that in the first case, the service launches the setup.exe and automatically the process die.

The OS has been installed for a year and working ok until today; of course I don't mind to reinstall my workstation, but I'd love to understand what's happening here. The issue began to happen a normal day, I haven't installed nothing strange recently.

  • well, I forgot to add that I've surfed the web for hours looking for a similar case, no success Jan 3, 2013 at 15:25
  • This sounds like a user permission problem. When you mention the Temp folder what directory are you speaking of exactly? If its the user specific file you don't need to elevate the privilages.
    – Ramhound
    Jan 3, 2013 at 15:39
  • 1
    Hi @Ramhound. In my case it's C:\Users\myusername\AppData\Local\Temp. I can't understand what you mean with "don't need to elevate privileges". An executable requires elevation todo things like installing a program (registry and %programfiles% dir writing). Am I misusing any term? Jan 3, 2013 at 15:42

1 Answer 1


Well, I finally found out what was happening, some permissions had been (uncomprensibly) lost under my temp dir, for the "Users" group. The read and write permissions were still untouched, but the "traverse directory" and "execute" ones were disabled. This was causing the processes trying to elevate another executable to crash.

Now I'm trying to find out what is changing my permissions (maybe malwre), but this is another story.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.