[DUG] D2007 under Vista

Alister Christie alister at salespartner.co.nz
Thu Aug 28 10:37:13 NZST 2008


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.
>
> -----Original Message-----
> From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
> On Behalf Of John Bird
> Sent: Wednesday, 27 August 2008 3:37 p.m.
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] D2007 under VIsta
>
> No its not copying files into "Program Files" folder.  Its copying them
> from 
> a folder (called eg C:\FredUpdates) to a working folder
> (C:\Fred\Programs). 
> I have changed the permissions on both folders to allow full access - (I
>
> understand you cannot do that on the Program Files folder).  And I am 
> already running as an Administrator user - namely me.
>
> ----- Original Message ----- 
> From: "Myles Penlington" <myles at ams.co.nz>
> To: "NZ Borland Developers Group - Delphi List" <delphi at delphi.org.nz>
> Sent: Wednesday, August 27, 2008 3:08 PM
> Subject: Re: [DUG] D2007 under VIsta
>
>
>   
>> The short answer is no - to checking program contents.
>>
>> However if you are not running as administrator and attempt to copy a
>> file into program files then that triggers a UAC prompt.
>>
>> Myles.
>>
>> -----Original Message-----
>> From: delphi-bounces at delphi.org.nz
>>     
> [mailto:delphi-bounces at delphi.org.nz]
>   
>> On Behalf Of John Bird
>> Sent: Wednesday, 27 August 2008 3:00 p.m.
>> To: NZ Borland Developers Group - Delphi List
>> Subject: Re: [DUG] D2007 under VIsta
>>
>> Yes I tried that too - I renamed it to JBCL1.exe and it still
>>     
> triggered
>   
>> the
>> UAC prompt.
>>
>> If Vista is being smart it may be actually checking what the program
>> does -
>> as it copies .exe files from one folder to another that could trigger
>> UAC?
>> (That is all it does - its a program to make sure latest versions are
>>     
> in
>   
>> a
>> working folder).   But - does Vista actually examine a programs
>>     
> contents
>   
>> or
>> functionality?
>>
>> ----- Original Message ----- 
>> From: "Robert martin" <rob at chreos.co.nz>
>> To: "NZ Borland Developers Group - Delphi List" <delphi at delphi.org.nz>
>> Sent: Wednesday, August 27, 2008 2:36 PM
>> Subject: Re: [DUG] D2007 under VIsta
>>
>>
>> Hi
>>
>> Have you tried renaming the exe with the problem (i.e. to something
>> without startup in its name)?
>>
>> The other thing might be that the app is doing something that requires
>> UAC? I think there is a xml resource you can build into an app to
>>     
> force
>   
>> the UAC stuff to trigger (although I doubt you would have done this :)
>>     
> )
>   
>> Rob
>>
>> John Bird wrote:
>>     
>>> No there is no blanks in the execute path, and the 3 programs I
>>>       
> talked
>   
>>> about all run from the same folder. Thats why I am so puzzled why
>>>       
> they
>   
>>> behave so differently.
>>>
>>>     ----- Original Message -----
>>>     *From:* Myles Penlington <mailto:myles at ams.co.nz>
>>>     *To:* NZ Borland Developers Group - Delphi List
>>>     <mailto:delphi at delphi.org.nz>
>>>     *Sent:* Wednesday, August 27, 2008 11:48 AM
>>>     *Subject:* Re: [DUG] D2007 under VIsta
>>>
>>>     There is a menu option "Check for updates" under you program
>>>       
> files
>   
>>>     menu entry.
>>>
>>>     Run this and it will download the updates.
>>>
>>>     Where did you install D2007?
>>>
>>>     My Vista install is not under "Program Files", but under C:\BDS
>>>     instead, I wonder if it makes a difference?
>>>
>>>     Where is your exe output folder? Perhaps try a path/folder
>>>       
> without
>   
>>>     blanks etc.
>>>
>>>     Myles.
>>>
>>>     *From:* delphi-bounces at delphi.org.nz
>>>     [mailto:delphi-bounces at delphi.org.nz] *On Behalf Of *John Bird
>>>     *Sent:* Wednesday, 27 August 2008 11:38 a.m.
>>>     *To:* NZ Borland Developers Group - Delphi List
>>>     *Subject:* Re: [DUG] D2007 under VIsta
>>>
>>>     I am quite foxed by this!
>>>
>>>     I have 3 programs I have written on the desktop as shortcuts.
>>>
>>>     1 runs perfectly, no UAC, debugger also works fine.
>>>
>>>     1 runs fine with UAC prompt (name of program is JBCStart.exe -
>>>     which I suspect is the problem). The UAC also stops the debugger
>>>     running. This sort of makes sense. The IDE somes up with an
>>>     obscure message "Cannot create process" but other than that the
>>>     "blue dots" and breakpoints remain visible in the background IDE
>>>     window as expected.
>>>
>>>     1 program runs fine - no UAC - but I cannot get the debugger to
>>>     run. The "blue dots" and the breakpoints disappear in the IDE
>>>     window as the program runs.
>>>
>>>     Apart from the debugging problem all these I am pretty sure are
>>>     all Vista issues and not D2007 issues...
>>>
>>>     I have noticed that in Vista as compared to XP there is quite a
>>>     bit of new slicker appearance etc for D2007.
>>>
>>>     One point - I installed D2007 on Vista from a disk dated Jul/Aug
>>>     2007 - where can I read up or get later updates? Was there
>>>     anything significant?
>>>
>>>     ----- Original Message -----
>>>
>>>         *From:* Myles Penlington <mailto:myles at ams.co.nz>
>>>
>>>         *To:* NZ Borland Developers Group - Delphi List
>>>         <mailto:delphi at delphi.org.nz>
>>>
>>>         *Sent:* Wednesday, August 27, 2008 11:00 AM
>>>
>>>         *Subject:* Re: [DUG] D2007 under VIsta
>>>
>>>         Perhaps if you install it under program files the issue may
>>>       
> go
>   
>>>         away.
>>>
>>>         You can perhaps also check the properties on the file to see
>>>         if vista has put a block etc on it, which you may be able to
>>>         remove.
>>>
>>>         Failing that, get a code signing certificate. Or at least
>>>         create your own self signed certificate and install it as a
>>>         trusted certificate (not sure how to achieve that last part
>>>         yet). The best deal on these at the moment is via the tucows
>>>         website (need to search the site to find the entry). US $99
>>>         for 1 year.
>>>
>>>         Myles.
>>>
>>>         *From:* delphi-bounces at delphi.org.nz
>>>         [mailto:delphi-bounces at delphi.org.nz] *On Behalf Of *John
>>>       
> Bird
>   
>>>         *Sent:* Wednesday, 27 August 2008 10:45 a.m.
>>>         *To:* rohit at cfl.co.nz; NZ Borland Developers Group - Delphi
>>>       
>> List
>>     
>>>         *Subject:* Re: [DUG] D2007 under VIsta
>>>
>>>         No that doesn't work either - it just opens the same UAC
>>>         dialog asking if I want to run it. The dialog offers the
>>>         choice "I have run this program before and I trust it" but it
>>>         obviously does not remember any past answers to this.
>>>
>>>         I suspect its because the program has the word "Start" as
>>>       
> part
>   
>>>         of the name - its just a program to check versions and start
>>>       
> a
>   
>>>         menu though. Is this the Vista apprach to security? if a
>>>         program is suspicious (I understand anything with the words
>>>         Setup Install and other words in the name count as this)
>>>         automically get a UAC prompt....
>>>
>>>         I don't mind changing the name of the program if thats
>>>       
> easier!
>   
>>>         Anyone got information on what program names Vista cares
>>>       
>> about?
>>     
>>>             ----- Original Message -----
>>>
>>>             *From:* Rohit Gupta <mailto:rohit at cfl.co.nz>
>>>
>>>             *To:* NZ Borland Developers Group - Delphi List
>>>             <mailto:delphi at delphi.org.nz>
>>>
>>>             *Sent:* Monday, August 25, 2008 3:24 PM
>>>
>>>             *Subject:* Re: [DUG] D2007 under VIsta
>>>
>>>             John,
>>>
>>>             right click, properties - run as admin or some such
>>>       
> thing,
>   
>>>             it was a while ago that I fixed that on someones pc.
>>>
>>>             John Bird wrote:
>>>
>>>             -also my main menu program, which I have a shortcut to on
>>>       
>> the
>>     
>>> desktop,
>>>
>>>             always gets a UAC prompt when I run it.  How do I set
>>>       
> this
>   
>>> program to be
>>>
>>>             acceptable short of turning off UAC?
>>>
>>>
>>>
>>>
>>>
>>>             John
>>>
>>>
>>>
>>>
>>>
>>>             -- 
>>>
>>>             *Rohit Gupta*
>>>
>>>             *B.E. Elec. M.E. Mem IEEE Associate IEE*
>>>
>>>             *Technical Manager*
>>>
>>>             *Computer Fanatics Limited*
>>>
>>>             *Tel* +64 9 4892280
>>>
>>>             *Fax* +64 9 4892290
>>>
>>>             *Email *rohit at cfl.co.nz <mailto:rohit at cfl.co.nz>
>>>
>>>             *Web *www.cfl.co.nz <http://www.cfl.co.nz/>
>>>
>>>
>>>       
> ------------------------------------------------------------------------
>   
>>>             This email and any attachments contain information, which
>>>             is confidential and may be subject to legal privilege and
>>>             copyright. If you are not the intended recipient, you
>>>       
> must
>   
>>>             not use, distribute or copy this email or attachments. If
>>>             you have received this in error, please notify us
>>>             immediately by return email and then delete this email
>>>       
> and
>   
>>>             any attachments.
>>>
>>>
>>>       
> ------------------------------------------------------------------------
>   
>>>             _______________________________________________
>>>             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
>>>
>>>         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
>>>
>>>     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
>>>
>>>
>>>       
> ------------------------------------------------------------------------
>   
>>> _______________________________________________
>>> 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
>>>       
>> _______________________________________________
>> 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
>>
>> _______________________________________________
>> 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
>>
>> 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 
>>     
>
> _______________________________________________
> 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
>
> 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