Re: Problem with write-protected app folder on Vista



"Glenn Alcott" <galcott@xxxxxxxxxxxxxx> wrote in message
news:46827e74@xxxxxxxxxxxxxxxxxxxxxxxxx
I am using AutoUpgraderPro from http://www.appcontrols.com; however, you
don't need to be familiar with this component to answer my question. It is
a
component that allows automatic updating of an application from the web,
which I am using it in a commercial app. In general it works very well,
but
recently some users on Vista (but not all) have reported that the upgrade
does not work. The new version is downloaded, but it is unable to
overwrite
the previous version. I have emailed the vendor of this component and this
was his response:

"Unfortunately this is known problem of Vista, when the application's
folder
is write-protected. Vista tries to do virtualization and copies downloaded
files to virtual folder, but they unfortunately cannot be copied back to
application's folder to replace old files. To solve this you can do
either:
manually set write permission to the application's folder, or set write
permission when you create folder by setup program."

I responded to him to ask why the app folder would be write-protected in
some cases but not others but he has not responded (in general he has not
been great about responding to email). So I need to know the reason for
that, and any solutions to this problem.

I suspect that the update process needs to run as a non-restricted user if
UAC is enabled. Chances are, the app needs to be modifeid to work with UAC
on Vista.

Dan


.



Relevant Pages

  • Re: AppPath and Vista
    ... single user it's their personal App Data folder. ... EXE you can get Vista to require authorization ... Dim sBuffer As String, hToken As Long ...
    (comp.lang.basic.visual.misc)
  • Re: Read/Write permission (earn your quarter, Karl!)
    ... Assuming the OS is Vista and my apps folder in Program Files is read only. ... helper app updated both the exe and the helper app exe. ... Inno install package that just does an install over the existing ...
    (microsoft.public.vb.general.discussion)
  • Re: CreateProcess not work on Vista
    ... ya, i am sure that ffmpeg.exe is in my folder, coz my app run well on XP, ... you type that commandline in Vista ... ZeroMemory (&si, sizeof (si)); ...
    (microsoft.public.vc.mfc)
  • Re: OT: Vista
    ... Which would also explain why a guy next door 'lost' his Sage accounts ... The virtualisation of the "Program Files" folder is in Vista solely to ... of files - even though the app itself thinks it's looking at one file ...
    (uk.rec.motorcycles)
  • Re: Problem with write-protected app folder on Vista
    ... Vista will not allow any "writes" to the Program File area either, ... was his response: ... files to virtual folder, but they unfortunately cannot be copied back to ...
    (borland.public.delphi.thirdpartytools.general)