You may not have the necessary permissions" when installing Firefox

Problem
When installing Firefox you get a dialog box stating:
“You may not have the necessary permissions to use all the features of the program you are about to run. You may run this program as a different user or continue to run the program as the current user.”

You are given the option to run as the current user or to run as a different user.

Cause
This can be caused if UAC is disabled on Vista or by faulty UAC settings in Windows 7.

Solution
Right click on the Firefox install file and click Run as administrator.

If that does not work then select the correct tab below for further instructions:
  1. Click the Start button.
  2. In the Start Search box, type UAC.
  3. Click on ‘Change User Account Control Settings’.
  4. If it is currently set to Default, try setting it to Never Notify (drag the slider to the bottom) and click OK.
  5. If it is currently set to Never Notify, try setting it to Default.
  6. You can also try setting it to Never Notify, clicking OK then going back into it and changing it back to Default.
  7. Once done, try installing Firefox again.