Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #297
| From | ralph <nt_consulting64@yahoo.net> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory |
| Date | 2011-06-23 20:41 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <bao707hh5j5flenvsjd2fg12sbefg25bi8@4ax.com> (permalink) |
| References | <610447e9-a269-4e34-990a-3c179bea1c22@y19g2000prd.googlegroups.com> <itu0ve$dsk$1@speranza.aioe.org> <9869b89b-9b9b-4194-9ef5-24e4dea24182@34g2000pru.googlegroups.com> |
On Thu, 23 Jun 2011 12:17:08 -0700 (PDT), Bill <bbuntain@gmail.com> wrote: >On Jun 22, 5:22 pm, "Nobody" <nob...@nobody.com> wrote: >> Bill wrote: >> > I have a software application written in VB6 (the VB 2010 version is >> > under development) that includes an embedded update feature that >> > allows users to download periodic updates via FTP. The problem I am >> > having is that under Vista and Windows 7 is that when the program >> > tries to update the files in the application directory which defaults >> > to the Program Files (x86) directory, it generates a "Run-time error >> > 75 - Path/File access error". I know this is a function of Vista/ >> > Windows 7 protection of the Program Files directories. My question is: >> > Is there a way around it? Right now the program downloads files to a >> > temporary location, but I cannot copy them into the Program Files >> > (x86) directory. Thanks for any help you can give. >> >> Besides what others suggested, including my clone, the way this is normally >> done is with a service running as SYSTEM, so it has the necessary >> permissions to do the update. Here are some 3rd party solutions: >> >> http://www.autoupdateplus.com/http://www.powerprogrammer.co.uk/http://www.btis.com/btproducts/updatelive/updatelive.htm > >One thing I failed to mention is that the update is not just a >straight file replacement. There is a database involved that we supply >quarterly updates to. The update process as written applies those >updates while preserving records that may have been added by users. >What I am thinking now is to build the updated files in a temporary >location and then use a routine that prompts the user for approval of >escalation or calls an external installer (such as the ones you have >mentioned) to handle the copying of the files into the restricted >areas. >Bill Since the dawn of Windows programming there has been one major directive - "Play well with others". *Others* includes the operating system as well as other applications and services. Rules and Taboos have annoyingly changed over the years, but nonetheless a Windows programmer needs to adapt to a current situation. You are correct - volatile data should not be stored in the "Program Files" folder/s, Period. Therefore, reengineer your application, Period. If it takes more than a few minor changes to conform to the new Taboo, then your application is in serious need of a "cleanup" anyway, as it is too dependent on physical, and possibly hard-coded, locations. Suitable folders for this data can be found by reviewing the 'special folders' Windows provides for this and other purposes: CSIDL http://msdn.microsoft.com/en-us/library/bb762494.aspx KNOWNFOLDERID http://msdn.microsoft.com/en-us/library/dd378457.aspx [There are other advantages to storing data in known locations as well - backups become easier, roaming profiles, multiple user or single user configurations, home or corporate environments, updates, maintenance, ... all go more smoothly.] If you need to fiddle with the Application itself - launch an installer. [Running an installer to update *data* strikes me as a needless abuse. <g>] -ralph
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Find similar
"Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Bill <bbuntain@gmail.com> - 2011-06-22 08:27 -0700
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Deanna Earley <dee.earley@icode.co.uk> - 2011-06-22 16:51 +0100
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Bill <bbuntain@gmail.com> - 2011-06-22 13:21 -0700
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory "Nobody" <trinity@nobody.com> - 2011-06-22 11:52 -0400
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Deanna Earley <dee.earley@icode.co.uk> - 2011-06-22 17:06 +0100
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Karl E. Peterson <karl@exmvps.org> - 2011-06-24 14:35 -0700
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory "Thorsten Albers" <gudea@gmx.de> - 2011-06-24 22:59 +0000
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Karl E. Peterson <karl@exmvps.org> - 2011-06-24 17:00 -0700
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Tony Toews <ttoews@telusplanet.net> - 2011-06-28 16:13 -0600
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Karl E. Peterson <karl@exmvps.org> - 2011-06-28 15:28 -0700
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Tony Toews <ttoews@telusplanet.net> - 2011-06-29 13:08 -0600
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Karl E. Peterson <karl@exmvps.org> - 2011-06-29 12:30 -0700
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory "Mayayana" <mayayana@invalid.nospam> - 2011-06-29 18:39 -0400
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Tony Toews <ttoews@telusplanet.net> - 2011-06-30 12:57 -0600
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory -mhd <not_real@invalid.com> - 2011-06-22 12:45 -0400
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory "Mayayana" <mayayana@invalid.nospam> - 2011-06-22 19:19 -0400
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Deanna Earley <dee.earley@icode.co.uk> - 2011-06-23 08:53 +0100
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory "Mayayana" <mayayana@invalid.nospam> - 2011-06-23 09:28 -0400
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Deanna Earley <dee.earley@icode.co.uk> - 2011-06-23 17:57 +0100
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory "Mayayana" <mayayana@invalid.nospam> - 2011-06-23 18:52 -0400
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Neila <david.marso@gmail.com> - 2011-06-24 05:47 -0700
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Bill <bbuntain@gmail.com> - 2011-06-23 12:23 -0700
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory "Nobody" <nobody@nobody.com> - 2011-06-22 20:22 -0400
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Bill <bbuntain@gmail.com> - 2011-06-23 12:17 -0700
Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory ralph <nt_consulting64@yahoo.net> - 2011-06-23 20:41 -0500
csiph-web