[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.
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.
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. :blush: :thumb:
For the path can you use the script variables like (userdesktop)\filename.exe?
Thanks...
Re: InnoSetup - Delete Files During Installation
Re: InnoSetup - Delete Files During Installation
Thanks,
When you are deleting a file it goes in the [InstallDelete] section, or does it not matter?
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.
Re: InnoSetup - Delete Files During Installation