Delete temp file after installation with Inno-VBForums
Results 1 to 3 of 3

Thread: Delete temp file after installation with Inno

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    2

    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.

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    2

    Re: Delete temp file after installation with Inno

    That worked like a charm, thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.