Re: Read/Write permission (earn your quarter, Karl!)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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



Relevant Pages

  • Re: Installing data files with application?
    ... Have Setup install the files into your APP FOLDER. ... Create a Setting in your app called FirstRun and scoped to USER. ... I dont see where the zip thing totally solves the problem. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: folder "Access Denied" in Vista
    ... Actually, those are defaults for a clean install of Vista, not just an upgrade. ... "My" anything in Vista is a junction point that redirects software requests to the real folder under the user profile. ... I'll bet the manufacturer of the laptop upgraded an XP operating system to Vista without starting fresh. ...
    (microsoft.public.windows.vista.general)
  • Labels & Envelopes by Chronos
    ... There's a feature in the app called a Graphics Drawer. ... one to install the app ... The first disk has an uninstaller and I used ... found a Chronos folder in my Applications Support ...
    (comp.sys.mac.apps)
  • My Findings - VB6 Apps on Vista
    ... The vb6 apps themselves will work on Vista. ... Enable a standard user to INSTALL our software ... Installers typically WRITE FILES to the c:\program files\ folder, ... will need to run the installer as admin. ...
    (microsoft.public.vb.general.discussion)
  • Re: Error 2356 in AccessRT.msi
    ... In this folder there is a sub folder called files and in there is the AccessRT.msi and the AccessRT.cab. ... I can not trust that changing the the registry values on installation will never change (what if down the road the user or another app changes the security level back to Medium). ... In respect to shortcuts, make sure you have the most recent script examples...I recently made a change for shortcut creation and included a PostInstall example. ... However, if you go the IExpress route, you'll have to use a fixed install path for your app. ...
    (microsoft.public.access.developers.toolkitode)