[DUG] D2007 under Vista
Myles Penlington
myles at ams.co.nz
Thu Aug 28 11:13:28 NZST 2008
John was actually right, Vista does look inside your program using
heuristics to determine if it is a installer type program, in which case
it will ask for UAC/Admin privileges etc.
It checks some bytes of the file, RC_DATA, resources, version info etc.
Have you added a XP/Vista manifest to the program?
Why are you not just using a batch file to do the copy?
Or you could install the power shell and do almost anything.
Myles.
-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Alister Christie
Sent: Thursday, 28 August 2008 10:37 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] D2007 under Vista
Another thing that keeps getting me unstuck is the virtual store.
Depending if you are running as administrator or a user you could be
looking at different files (even though you might be using an explicit
path). For example you could be looking at C:\FredUpdates\update.ini as
administrator, but c:\users\Fred\appdata\....\update.ini as Fred (if
Fred has tried to change the ini file but does not have permission).
This only applies to applications that don't "support Vista". It
doesn't sound like this is your problem however.
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
Myles Penlington wrote:
> I should clarify that, you are not actually running as a real
> "Administrator" until after you have been through the UAC prompt.
>
> Prior to the UAC prompt appearing you are actually running as a
standard
> user (you have no administrator rights/privileges), no different to
> anybody else, once you have been through the UAC, you then have
> administrator rights and privileges(for that process only).
>
> One way of testing if it is all a result of UAC would be to switch it
> off (or right click on BDs2007 and select run as administrator -
should
> have the same effect), run your tests/programs and see if they
function
> as expected, without issues.
>
> Myles.
>
Attention:
This communication is confidential and may be legally privileged. If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.
More information about the Delphi
mailing list