What would be require to create an exe file to delete a couple files?

Jeff7181

Lifer
Aug 21, 2002
18,368
11
81
Just wondering what would be required to do this. A friend of mine wants to have a single file he can give people who he builds computers for to delete certain files that he puts on there that they might not want. For example... he puts SETI@Home on every computer he builds, and would like to include an exe file that someone could run to simply remove the files from the program files folder, and remove the shortcut from the startup folder with just one click of the mouse.
 
 

igowerf

Diamond Member
Jun 27, 2000
7,697
1
76
It'd be pretty easy. In fact, you could use the Nullsoft Installer to do it. You can make the installer list all of the items that your friend installs on the computers and the user can check or uncheck which ones to delete.

http://nsis.sourceforge.net/home/

There's a couple script/dialog editors for the installer to so it should be pretty easy to make something.
 

Jeff7181

Lifer
Aug 21, 2002
18,368
11
81
:confused:

Hope he knows how to use it cause I'm looking at it and have no idea where to start even.
 

Jeff7181

Lifer
Aug 21, 2002
18,368
11
81
LOL... any other ideas? He took a look at it and said "WTF am I supposed to do with this?"
 

boran

Golden Member
Jun 17, 2001
1,526
0
76
if he hasnt got the dedication to understand nsis scripting, then he's SOL methinks.
 

Jeff7181

Lifer
Aug 21, 2002
18,368
11
81
Originally posted by: YaKuZa
Why not just make a shortcut to the add/remove programs in Windows.

Because some of the stuff he puts on doesn't create an entry in ad/remove programs.
 

igowerf

Diamond Member
Jun 27, 2000
7,697
1
76
On the download page, there's also a link to some scripting front ends. Those should help him generate the script to delete files.
 

Jeff7181

Lifer
Aug 21, 2002
18,368
11
81
The only problem is neither of us know anything about programming, writing scripts, or writing batch files.
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
Originally posted by: Jeff7181
The only problem is neither of us know anything about programming, writing scripts, or writing batch files.

batch file is as easy as it can get.

you either learn it or have somebody else do it