Remove files/directory before installation

Common questions about using Actual Installer.
Post Reply
eddywright
Posts: 2
Joined: Fri Oct 25, 2013 9:52 pm

Remove files/directory before installation

Post 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
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

Re: Remove files/directory before installation

Post 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
Leo,
Actual Installer Team
https://www.actualinstaller.com
eddywright
Posts: 2
Joined: Fri Oct 25, 2013 9:52 pm

Re: Remove files/directory before installation

Post 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
Post Reply