[delphizip] Re: ZipBuilder with Windows 7

  • From: RPeters <rpeters@xxxxxxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Tue, 08 Dec 2009 09:43:56 +1100

On 8/12/2009 9:31 AM, Don wrote:
> The app was installed with my login name.  And the backup is also
> started with the same login name.  Don't understand why windows won't
> allow me to write to my own directory.
> Don
>
> RPeters wrote:
>    
>> On 8/12/2009 8:25 AM, Don wrote:
>>
>>      
>>> I have a backup program that I wrote using ZipBuilder 1.79.10.24.  With
>>> XP&   Vista it will extract the files to the same directory as the zip
>>> file.  But with Windows 7, it writes the files to the virtualstore
>>> directory.  Any ideas on how to fix this problem?
>>> Don
>>> -----------
>>> To unsubscribe from this list, send an empty e-mail
>>> message to:
>>>     delphizip-request@xxxxxxxxxxxxx
>>> and put the word unsubscribe in the subject.
>>>
>>>
>>>        
>> If it is saving into the virtual store it means you are trying to save
>> it in a protected location without correct permission - this is not a
>> good idea and, as you have noticed, is actively discouraged.
>> To be able to save where you (mistakenly) desire you will need to run
>> your application as administrator.
>>
>> This is similar to Vista but Windows 7 applies the rules more rigidly
>> which keeps things safer.
>> Russell Peters
>> -----------
>> To unsubscribe from this list, send an empty e-mail
>> message to:
>>    delphizip-request@xxxxxxxxxxxxx
>> and put the word unsubscribe in the subject.
>>
>>
>>
>>      
> -----------
> To unsubscribe from this list, send an empty e-mail
> message to:
>    delphizip-request@xxxxxxxxxxxxx
> and put the word unsubscribe in the subject.
>    
Even though it was installed with your login as administrator it is 
running at the default 'user' level.
You must run your application elevated at administrator level to be able 
write in those places.

Basically being logged in administrator only changes the hurdles you 
must jump to do something requiring administrator access.
Look up 'UAC' (User Access Control).

You may be able convince your application to run at administrator level 
by crafting (and attaching) a proper manifest or right click on your 
application select 'properties' and on the properties tab check 'Run 
this program as an administrator'.
Russell Peters
-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: