Hi have created an installer which installs the application at user level. When i extract setup.exe from the cab file and run locally it does not prompt me for UAC and installs normally and installs in user context.
The application and cab are digitally signed.
But when i install the same using one click installer it prompts me for UAC and installs it in admin context.
Can any throw some light why same setup.exe behaving differently?
What can i do to avoid this?
I want my application to be installed at user level without admin access?
My guess is that
setup.exe
is triggering the UAC setup compatibility heuristic. From MSDN:Windows tries to detect certain applications that are installers (e.g. those containing setup, install, update in their filenames) and will try to elevate them automatically. Microsoft does this as a compatibility hack:
You can inform Windows that your application should not be run as an administrator. You do this by adding the
asInvoker
option to your executable's assembly manifest: