yohanc
Posts: 5
Joined: Tue Nov 15, 2016 7:23 pm

Delete installed files after the installation is finished

Hi Guys,
Do you guys, know how to Delete installed files after the installation is finished
for eg.
Image
how to remove that installed "Data" folder and files inside of it, after the installtion is finsihed (or after the user has pressed the "finish" button)
Any idea?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Delete installed files after the installation is finished

Hello and welcome to Advanced Installer forums,
Do you guys, know how to Delete installed files after the installation is finished
I'm not sure I fully understand your scenario. How to delete recently installed files? Is there any reason why do you install them at all? Please give me more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
yohanc
Posts: 5
Joined: Tue Nov 15, 2016 7:23 pm

Re: Delete installed files after the installation is finished

I made a simple exe to overwrite some old files from a software
but there is a file in the software, it has a huge size about 2 GB, that 2GB file basically is a package file in .img format (in that 2GB there are lots of files in it, and I just need to replace some files inside of that 2GB file)
since that file is 2GB is pretty huge in term of size, I can't put my newer version of that 2GB in my exe
So I make a simple bat file, that can add & overwrite some files (for eg. I will call it filea, fileb, filec) into that huge 2GB package .img file

here is how it works:
- User will run the exe
- the exe will paste this bat file & filea, fileb, filec into the target computer
- the exe will run the bat file so filea, fileb, filec will be added into the 2GB package .img file from the software
- the bat file & filea, fileb, filec is useless now, since the 2Gb package .img file has filea, fileb, filec inside of it already
- I want to remove bat file, & filea, fileb, filec
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Delete installed files after the installation is finished

Hello,

We apologize for our delayed reply.

The easier way to achieve what you need will be to add your BAT and filea, fileb, etc as temporary files into your setup project. This way the temporary files will be removed from target machine at installation end.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”