User Tag List

Results 1 to 4 of 4

Thread: Delete files after install

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Delete files after install

    Was wondering if there is a method to delete certain files after install. (example: by applying an update some old files not needed)

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    12,830
    Mentioned
    82 Post(s)
    Tagged
    2 Thread(s)

    Re: Delete files after install

    There is no option for that in Install Creator. Maybe you can make a little program that deletes the files and run it at the end of the install?

    BTW, for updates maybe you can use Patch Maker? It automatically removes the files that are not in the new version.

    Yves.

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Location
    Austin
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delete files after install

    hello,
    yes I have done something like that in ICPRO. with a small batch file.
    ie. mysetup creates a temporary directory like #installdir#\mytempdir
    I want to delete mytempdir and all temporary files in it, after mysetup runs.

    make a small(2line) batch file, sample: remove_tempdir.bat
    @echo off
    rmdir /s /q mytempdir

    put the batch file(remove_tempdir.bat) in the mytempdir sub-directory of you source directory
    ie. mysetup_sourcedir\mytempdir\remove_tempdir.bat

    in ICPRO:
    on the files tab, click to highlight remove_tempdir.bat

    on the windows tab, under File Options
    set "Install directory" to "Other"
    type: #installdir#
    this installs remove_tempdir.bat to ..\mytempdir

    on the View/Run tab, under File Options
    set "Run" to "when installer exits"
    under "Options" check the boxes
    "Wait for end before continuing the installation"
    "Delete file after program completed"

    test:
    open explorer to the install directory and run mysetup. can see create of mytempdir and remove_tempdir.bat mysetup ends. click exit. cmd prompt flashes briefly. can see delete of mytempdir and remove_tempdir.bat like magic nearly silent uninstall of tempdir. don't know how to make the cmd prompt invisible.

  4. #4
    No Products Registered

    Join Date
    Sep 2006
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delete files after install

    yeah thanks, but I arrived to this conclusion myself :P

    the batch file is the better way to do that

Similar Threads

  1. Delete all files with a particular extension
    By CBSection31 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 3rd June 2009, 02:25 PM
  2. Delete Files Example
    By Jaffob in forum File Archive
    Replies: 0
    Last Post: 2nd June 2009, 10:39 PM
  3. delete "old" files automatically
    By delta in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th August 2008, 03:11 PM
  4. How do i delete music files?
    By Thalamus in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th April 2008, 11:04 PM

Posting Permissions

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