views:

137

answers:

1

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?

+2  A: 

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.

sean e
Adding a manifest to a file with a requestedExecutionLevel inhibits the auto elevation logic Vista and Windows 7 apply to applications they "guess" are legacy setup programs.
Chris Becke