Re: Read/Write permission (earn your quarter, Karl!)
- From: Stefan Berglund <sorry.no.koolaid@xxxxxx>
- Date: Thu, 01 Mar 2007 17:47:47 -0800
On Thu, 1 Mar 2007 14:13:34 -0500, "Kevin Provance" <casey@xxxxxxxxxxx>
wrote:
in <egI#0WDXHHA.4240@xxxxxxxxxxxxxxxxxxxx>
Okay...seeing no one seemed to have any idea about the common folder issue,
lets try it from a different perspective.
Assuming the OS is Vista and my apps folder in Program Files is read only.
I have had in my code for some time now a component (I just love ActX DLLs,
can ya tell?) that checks for a new version of my program via my website and
if it finds one downloads the new version, of course after asking the user
if they want to do so.
Currently, the component downloads the file with a different extension,
shuts down the program, renames the new file and restarts the updated
version (well, with the help of another exe, but that's not the question).
The question is...if my program folder is read only under Vista, just where
exactly am I supposed to download the updated file to? The Temp folder? If
so, am I going to be able to move it back to my program folder, even using
the Shell API for file moving? Is the Common Files folder a read only
folder as well?
MSDN does not seem to spell these things out very clearly, especially where
VB6 is involved. So if anyone has any idea, any guidance would really be
appreciated.
Thanks!
- Kevin
ps - Bite Karl!
I didn't use a component but I had code in my app that along with a
helper app updated both the exe and the helper app exe. To deal with
Vista I just modified it slightly by changing the update package to an
Inno install package that just does an install over the existing
installation which is also an Inno setup. I threw out all the self
updating code and it's actually much cleaner. The app just downloads
the update package, starts it and then exits and the user clicks Next
and Install and voila. As an added touch the installer restarts the app
when its done.
.
- References:
- Read/Write permission (earn your quarter, Karl!)
- From: Kevin Provance
- Read/Write permission (earn your quarter, Karl!)
- Prev by Date: Re: OT - MS: $4,000 for Daylight Saving Fix
- Next by Date: Re: Convert decimal to fraction string
- Previous by thread: Re: Read/Write permission (earn your quarter, Karl!)
- Next by thread: Build an Icon
- Index(es):
Relevant Pages
|