Delete folder and files after installation has finished

Got a problem you cannot solve? Try here.
Post Reply
rlaemmler
Posts: 2
Joined: Tue Feb 19, 2008 9:25 am

Delete folder and files after installation has finished

Post by rlaemmler »

I temporarily need to deploy a tool and run it only during installation. After installation has finished I want to have that folder and all its files deleted.

If I call "Recursively Delete Files $TARGETDIR$\\SharpTouch\\MSAA20\\*" it removes all the files but the folder remains. Any idea how I can do that?

Reto
http://www.exor.ch
Roostar2004
Posts: 155
Joined: Mon Nov 12, 2007 11:59 am

Post by Roostar2004 »

I don't think you can do somthing like that in installaware (Seems like a missing peice that should be added) but if you create batch file that you place in

$TARGETDIR$\\SharpTouchthat deletes the folder you wish to be deleted and then from installaware call

Recursively Delete Files $TARGETDIR$\\SharpTouch\\BATCHFILE.bat

I think that should be a suitable workaround.
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

It really quite simple;
Use the File Bag or include your temporary tool in support files.
Both of these oiptions get cleaned up automagically when setup finishes.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Post Reply