|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Read/Write permission (earn your quarter, Karl!)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! Kevin Provance <ca***@tpasoft.com> wrote:
> The question is...if my program folder is read only under Vista, just where I'm guessing(!) the app will need to <music of doom>"run with elevated > 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? privs"</music> to do this. > Is the Common Files folder a read only folder as well? Dunno. More than likely?> ps - Bite Karl! Ooooh, unauth!On Thu, 1 Mar 2007 14:13:34 -0500, "Kevin Provance" <ca***@tpasoft.com> in <egI#0WDXHHA.4***@TK2MSFTNGP06.phx.gbl> wrote: Show quoteHide quote >Okay...seeing no one seemed to have any idea about the common folder issue, I didn't use a component but I had code in my app that along with a>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! > 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.
Data Type String
VB6 App Deployment in Vista Problems after installing Visual Basic 6 on XP Professional SP2 OT - MS: $4,000 for Daylight Saving Fix Looking for a way to call LogOff and Shutdown. Autologon on Vista VB6 User Control next problem Centering a datagrid's column headers Sin, Cos Error '50003' Unspecified error in VB6 Program |
|||||||||||||||||||||||