Page 1 of 1
Remove files/directory before installation
Posted: Fri Oct 25, 2013 9:58 pm
by eddywright
Hello, I'm testing out your installer and would like to know if there is a way to check for files or directories in the destination folder and remove them prior to installation? Usually just overwriting will work but in this case, the files were consolidated into a single new file and the old files need to be deleted.
Thanks,
Eddy
Re: Remove files/directory before installation
Posted: Sat Oct 26, 2013 3:15 am
by Leo
Hello Eddy,
Yes, it is possible with Actual Installer.
Go to the System\Commands page and add:
Code: Select all
Command: <SystemDir>\cmd.exe
Parameters: /C IF EXIST "<InstallDir>\File.exe" del /Q "<InstallDir>\File.exe"
Launch on OS: All
Show: Normal
Launch: After Folder Select
Wait: No
Re: Remove files/directory before installation
Posted: Sun Oct 27, 2013 2:26 pm
by eddywright
Thanks, that's the tip I needed.
Just bought the Pro version, I'm sure I'll have a few more questions.
Eddy