POV-Ray : Newsgroups : povray.beta-test : Install location : Re: Install location Server Time
4 Jul 2024 13:00:50 EDT (-0400)
  Re: Install location  
From: Fredrik Eriksson
Date: 23 Jan 2010 14:29:02
Message: <op.u6z22sgr7bxctx@bigfrog.bredbandsbolaget.se>
On Sat, 23 Jan 2010 19:44:15 +0100, Thorsten Froehlich <tho### [at] trfde>  
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.