[DUG] D2007 under Vista

John Bird johnkbird at paradise.net..nz
Thu Aug 28 16:04:01 NZST 2008


(Hey I am a batch file expert, but there is a reason I don't use one....

Its a splash screen program that actually does something while it shows a
nice picture....it checks versions of programs.  I don't use batch files as
it is a smart updater checking file dates and times, allowing for the
granularity of file dates and times between file systems (did you know if
you compare the file date and time between NTFS and FAT32 you never get them
equal - but within a fraction of a second).  It also checks that the copies
actually copied afterwards, as some networks are stubborn and warns if some
were not updated for any reason.  Batch files would have to use utilities
like XXCOPY to cater for times granularity (see xxcopy.com  for info about
the fuzzy time switch - which is free only for private use, and its harder
to get  a CMD prompt with administrator rights).

I tried renaming the program and indeed it made no difference. Thanks for
the info about heuristics - I guessed that any program that copies exe files
is likely to get noticed by Vista if it has any vague smarts to it.)

Overall Vista is pretty good so far.   There are a lot of subtle refinements
like this we are going to have to get used to!

Now the next question is why the colours of all the forms are slightly
different.  clBtnFace (the default form colour) is now rather different,
more grey.  Now what do we do about tweaking all the Vista colour
palletes????  And nowhere in the control panel is there are settings that
changes these colours (the themes are only to do with window borders etc).
I did manage to change the default colour for dialogs from black to Navy - I
noticed it changes about half of the standard text on Vista, but not all
consistently.  And I can't remember where it was so I can change it back!

Another surprise was..........on Vista the D2007 installer says the .Net
v2.0 framework is NOT present and goes ahead and installs it.    I thought
this was standard on Vista?

(Vista home premium here....its what came on the PC.  So far the only
limitation of that is the warning from MS Virtual PC that it is not apporved
for this version, but goes ahead and runs anyway).



----- Original Message ----- 
From: "Myles Penlington" <myles at ams.co.nz>
To: "NZ Borland Developers Group - Delphi List" <delphi at delphi.org.nz>
Sent: Thursday, August 28, 2008 11:13 AM
Subject: Re: [DUG] D2007 under Vista


> 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.
>
> _______________________________________________
> 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