|
![](/i/fill.gif) |
On Sat, 23 Jan 2010 19:44:15 +0100, Thorsten Froehlich <tho### [at] trf de>
wrote:
> On 23.01.10 19:25, Fredrik Eriksson wrote:
>> In some cases, Windows itself will deduce that it is needed and
>> automatically prompt for it.
>
> Indeed, this feature seems to exist if the installer is built with an
> older version of Visual Studio, for example. I guess the assumption M$
> makes is that if the system detects an older installer it cannot know
> about Vista's odd manual privilege requirements and does things
> automatically.
http://msdn.microsoft.com/en-us/library/bb384154.aspx
"Windows Vista built-in installer detection prompts for consent when you
run under UAC. A bootstrapper (Setup.exe) built with Visual Studio 2005
always prompts for consent, regardless of what it is installing."
"In Visual Studio 2008, the behavior of Setup.exe changes; it does not
prompt for elevation when it is started. To prevent the elevation prompt,
the embedded manifest of the bootstrapper specifies that Setup.exe run
with a requested execution level of asInvoker."
The proper way of triggering a privilege escalation prompt with Windows
Installer is to set the RequiresElevation property appropriately. Relying
on the installer detection heuristics is a bad idea, not the least because
it is not available for 64-bit installers.
--
FE
Post a reply to this message
|
![](/i/fill.gif) |