Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Deanna Earley Newsgroups: comp.lang.basic.visual.misc Subject: Re: "Run-time error 75" updating program in Vista/Windows 7 Program Files (x86) directory Date: Wed, 22 Jun 2011 16:51:11 +0100 Organization: Aioe.org NNTP Server Lines: 30 Message-ID: References: <610447e9-a269-4e34-990a-3c179bea1c22@y19g2000prd.googlegroups.com> NNTP-Posting-Host: rjApkXnSOjrT83QpZ8fKqg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:284 On 22/06/2011 16:27, 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. You need to make your update process ask for elevation (either for the whole process when it starts, note that this must NOT be the main process) or use COM elevation. http://hashvb.earlsoft.co.uk/Windows_UAC_and_Elevation Alternatively, just download a full setup (like Inno) and run that. -- Dee Earley (dee.earley@icode.co.uk) i-Catcher Development Team http://www.icode.co.uk/icatcher/ iCode Systems (Replies direct to my email address will be ignored. Please reply to the group.)