<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=415010404-07052009><FONT face=Arial
color=#0000ff size=2>Thanks for the pdf link Rob, that's very
useful.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=415010404-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=415010404-07052009><FONT face=Arial
color=#0000ff size=2>The main issue I'm trying to work out is our "registration
of users authorised to use our software". This writes some registration
keys into HKLM. Currently, on Vista, due to the registry virtualisation
that happens for unelevated apps, each user only succeeds in registering our
software for themselves, rather than for anyone using the
PC.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=415010404-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=415010404-07052009><FONT face=Arial
color=#0000ff size=2>I don't think I've got my Google search terms quite right,
because I've been struggling to find the details on the COM
option.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=415010404-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=415010404-07052009><FONT face=Arial
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=415010404-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=415010404-07052009><FONT face=Arial
color=#0000ff size=2>C.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> delphi-bounces@delphi.org.nz
[mailto:delphi-bounces@delphi.org.nz] <B>On Behalf Of </B>Jeremy
Coulter<BR><B>Sent:</B> Thursday, 7 May 2009 3:52 p.m.<BR><B>To:</B> NZ Borland
Developers Group - Delphi List<BR><B>Subject:</B> Re: [DUG] Elevating Delphi
code in Vista<BR></FONT><BR></DIV>
<DIV></DIV>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.<BR><BR>On that
not, anyone tried Windows 7 yet? I am liking it so far.<BR><BR>Jeremy<BR><BR>
<DIV class=gmail_quote>On Thu, May 7, 2009 at 3:34 PM, Robert martin <SPAN
dir=ltr><<A href="mailto:rob@chreos.co.nz">rob@chreos.co.nz</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV text="#000000" bgcolor="#ffffff">Hi<BR><BR>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.<BR><BR><A
href="http://pascalfonteneau.developpez.com/articles/delphi/vista/uac/VistaUACandDelphi.pdf"
target=_blank>http://pascalfonteneau.developpez.com/articles/delphi/vista/uac/VistaUACandDelphi.pdf</A><BR><BR><BR>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 :)<BR><BR>Cheers<BR>Rob<BR><SPAN lang=EN-NZ></SPAN>
<DIV>
<DIV>
<P><SPAN lang=EN-NZ></SPAN> </P></DIV></DIV><BR><BR>Conor Boyd wrote:
<BLOCKQUOTE type="cite">
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Hi
all,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2><A
href="http://developersoven.blogspot.com/2007/02/leveraging-vistas-uac-with-delphi-part.html"
target=_blank>http://developersoven.blogspot.com/2007/02/leveraging-vistas-uac-with-delphi-part.html</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>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?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>(The
functionality in question is simply writing value(s) to "our" key in HKLM in
the registry).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Conor</FONT></SPAN></DIV></DIV></DIV><PRE><HR width="90%" SIZE=4>
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <A href="mailto:delphi@delphi.org.nz" target=_blank>delphi@delphi.org.nz</A>
Admin: <A href="http://delphi.org.nz/mailman/listinfo/delphi" target=_blank>http://delphi.org.nz/mailman/listinfo/delphi</A>
Unsubscribe: send an email to <A href="mailto:delphi-request@delphi.org.nz" target=_blank>delphi-request@delphi.org.nz</A> with Subject: unsubscribe</PRE></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>NZ
Borland Developers Group - Delphi mailing list<BR>Post: <A
href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</A><BR>Admin: <A
href="http://delphi.org.nz/mailman/listinfo/delphi"
target=_blank>http://delphi.org.nz/mailman/listinfo/delphi</A><BR>Unsubscribe:
send an email to <A
href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</A>
with Subject: unsubscribe<BR></BLOCKQUOTE></DIV><BR></BODY></HTML>