Delete temp file after installation with Inno
Hi all, I'm distributing a program that also includes the Access runtimes. Currently the script puts the runtime .MSI into {app}\tmp folder on the target PC. Then runs the MSI after the main setup. I don't really want the runtime installation package to remain on the user's computer but I can't figure out how to get the script to delete the {app}\tmp folder.
I've googled the heck out of Inno & deltree but didn't find anything.
I've also tried the info in the help file & put the following in the [Code] section with no success:
[Code]
function DelTree(const Path: String; const IsDir, DeleteFiles, DeleteSubdirsAlso: Boolean) : Boolean;
begin
Deltree ('{app}\tmp', true, true, true)
end;
Any suggestions are appreciated.
Thanks.
Re: Delete temp file after installation with Inno
use the deleteafterinstall flag on the file in the Files section to delete files. Use the deleteafterinstall flag in the DIR section to delete the folder.
You should look in the Inno Help Documentation... That's what it's there for :p
Re: Delete temp file after installation with Inno
That worked like a charm, thanks!