[DUG] Elevating Delphi code in Vista

Alister Christie alister at salespartner.co.nz
Thu May 7 16:30:13 NZST 2009


I've tried Windows 7 (beta not RC1) in as far that I've installed in 
VMWare and checked that my product starts in it.

Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington 



Jeremy Coulter wrote:
> I have never really moved from INI files to be honest so our app. 
> running on Vista was pretty straight forward EXCEPT that it didnt like 
> running under the "c:\program files\" folder for some reason. I didnt 
> ever try to find out I must admit, but other than that the conversion 
> was fine.
>
> On that not, anyone tried Windows 7 yet? I am liking it so far.
>
> Jeremy
>
> On Thu, May 7, 2009 at 3:34 PM, Robert martin <rob at chreos.co.nz 
> <mailto:rob at chreos.co.nz>> wrote:
>
>     Hi
>
>     I cant find the resource I last used but there are heaps of web
>     pages about this.  See link below for the codegear one hat has
>     some information that may be of use.
>
>     http://pascalfonteneau.developpez.com/articles/delphi/vista/uac/VistaUACandDelphi.pdf
>
>
>     Some time (before Vista) we made the jump out of the registry and
>     back to ini files and have never regretted it !  Certainly made
>     Vista enabling our app pretty easy :)
>
>     Cheers
>     Rob
>
>      
>
>
>
>     Conor Boyd wrote:
>>     Hi all,
>>      
>>     I'm about to pull a chunk of code out of my Delphi app and bundle
>>     it into another binary so that I can elevate that chunk of
>>     functionality on Vista, while leaving the main app running
>>     unelevated.
>>      
>>     I've seen a number of references to the blog posting linked below
>>     which I can't get access to (when I visit it, it says I haven't
>>     been invited to read that blog).  I believe this article to be
>>     describing how to package this code up into a COM DLL and elevate
>>     my administrative functionality that way.
>>      
>>     http://developersoven.blogspot.com/2007/02/leveraging-vistas-uac-with-delphi-part.html
>>      
>>     Can anybody here provide more information on this process?  I
>>     know how to write COM DLLs no problem, but I'm unsure about
>>     whether there are other issues involved here?
>>      
>>     Or does anybody have an alternative suggestion for functionality
>>     requiring elevation on Vista?  The other alternative I've got is
>>     just to bundle my code into a simple executable with an elevated
>>     manifest resource compiled into it, and simply ShellExec that.
>>      
>>     (The functionality in question is simply writing value(s) to
>>     "our" key in HKLM in the registry).
>>      
>>     Thanks,
>>      
>>     Conor
>>     ------------------------------------------------------------------------
>>
>>     _______________________________________________
>>     NZ Borland Developers Group - Delphi mailing list
>>     Post: delphi at delphi.org.nz <mailto:delphi at delphi.org.nz>
>>     Admin: http://delphi.org.nz/mailman/listinfo/delphi
>>     Unsubscribe: send an email to delphi-request at delphi.org.nz <mailto:delphi-request at delphi.org.nz> with Subject: unsubscribe
>
>     _______________________________________________
>     NZ Borland Developers Group - Delphi mailing list
>     Post: delphi at delphi.org.nz <mailto:delphi at delphi.org.nz>
>     Admin: http://delphi.org.nz/mailman/listinfo/delphi
>     Unsubscribe: send an email to delphi-request at delphi.org.nz
>     <mailto:delphi-request at delphi.org.nz> with Subject: unsubscribe
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe


More information about the Delphi mailing list