Results 1 to 7 of 7

Thread: [RESOLVED] InnoSetup - Delete Files During Installation

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Resolved [RESOLVED] InnoSetup - Delete Files During Installation

    I have an app that was deployed as a standalone .EXE, it is located on the user's desktop and named in one of two conventions. Is it possible to delete this file during the installation of the update, or would I be better off creating a batch file and using that?

    Let me know if I didn't clarify this very well.
    CodeBank: Launch IE

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

    Re: InnoSetup - Delete Files During Installation

    bat711,

    Look in the help section of Inno Setup for InstallDelete. You will need to include the files/paths of the files you want to delete in that section.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: InnoSetup - Delete Files During Installation

    Thanks, I keep forgetting that I'm using ISTool as well and when I was looking around in the help documetation I wasn't finding anything.

    For the path can you use the script variables like (userdesktop)\filename.exe?

    Thanks...
    CodeBank: Launch IE

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

    Re: InnoSetup - Delete Files During Installation

    bat711,

    Yes you can.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: InnoSetup - Delete Files During Installation

    Thanks,

    When you are deleting a file it goes in the [InstallDelete] section, or does it not matter?
    CodeBank: Launch IE

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

    Re: InnoSetup - Delete Files During Installation

    bat711,

    Yes, it matters and it goes in the InstallDelete section to delete a file/folder before installation begins.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: InnoSetup - Delete Files During Installation

    Thanks, again.
    CodeBank: Launch IE

Posting Permissions

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



Click Here to Expand Forum to Full Width