Delete a file during installation of an MSI package
Posted on 2009-04-17
I would like to be able to delete an arbitrary file from the disk from within an MSI package. It needs to sequence *before* the uninstallation of the previous package.
As far as I understand at the moment, I would need to create a row in the *CustomAction* table, and the relevant entry in the *InstallExecute* table of the MSI.
In the *InstallExecute* table, I have sequenced this action just before the *RemoveExistingProducts* action.
In the *CustomAction* table, I have defined an action, but don't know what information to use for the 'Type', 'Source' and 'Target' columns.