Search code examples
windowswindows-vistainstallation

Run a setup without admin privilages


I have a setup program that I want to install to a local folder. I also do not need it to write any settings to the registry. On Vista, and maybe on Windows 7, executables named similar to setup or install require admin privileges, I would like to be able to run it without admin privileges, to make sure that it does not write to the registry. Is there a way to force this type of mode, sort of in a sandbox?


Solution

  • If you are producing the installer and using MSI, set bit 3 of PID_WORDCOUNT in the MSI package (per this question).

    The answer to this question is relevant if you are producing the installer but aren't using MSI - see create a manifest that prevents elevation.