🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #364

Re: Delete File

#364
From: Ted Lyngmo
Date: Thu, 17 Apr 2008 20:14
35 lines
2350 bytes
Bob Gonder wrote:
 > bar wrote:
 > >
 > > DeleteFile("C:\\Program Files\\MyProgram\\a.jpg");
 > >
 > > The above works in XP. In Vista it doesn't work
 >
 > Fairly simple, really...
 > Don't place any files in the Program Files that you want to delete.
 >
 > Only viruses and malware try to delete files in there.

Yikes... One of my apps (totally free, but not viral or malicious in any 
way) uses the installation directory (C:\Program...) and its contents as 
a point of reference. The individual users gets their default files from 
there. On occasion, the default files names changes and some files are 
removed and some are added and some files even gets their contents 
changed... If *any* user of the app decides to click the "update" button 
(when presented to them), everything in the reference directory 
(C:\Program...) will get updated.

Updating has exactly the same effect as installing the app. clean, 
except it wont be noticed by old users of the app.

"First time user? Fine, you get the latest default settings! Old user? 
Ok, just enjoy the new features of the application. Your old settings 
are unchanged! Really!"

How should I split my application up to pass the viral test?

Is there some sort of posix placement for apps./files in Windows 
nowadays? That'd be great!

Cheers,
Ted
Technical Details
Message-ID: <4807af87$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <480642de@newsgroups.borland.com> <i7id04173bdvc106ehdghd6sg7f137ngkf@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,afa23fc7a34d3bb6
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 17 Apr 2008 22:14:06 +0200
From: Ted Lyngmo <tedREMOVETHIS@lyncon.se>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: sv, en, en-us
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Delete File
References: <480642de@newsgroups.borland.com> <i7id04173bdvc106ehdghd6sg7f137ngkf@4ax.com>
In-Reply-To: <i7id04173bdvc106ehdghd6sg7f137ngkf@4ax.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 85.195.27.81
Message-ID: <4807af87$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208463239 85.195.27.81 (17 Apr 2008 13:13:59 -0700)
Lines: 35
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mail